Open epinzur opened 1 year ago
I tried to implement json but ran into issues, because there was no way to work with the fenl jsonobject type in python.
json
I tried accessing accessing properties of the object using col("name"), .name, and ["name"]. None worked.
col("name")
.name
["name"]
json().col("a") gives TypeError: Cannot access column 'a' of non-record type 'None'
json().col("a")
TypeError: Cannot access column 'a' of non-record type 'None'
a = json_str.json()["a"] gives TypeError: Cannot index into None
a = json_str.json()["a"]
TypeError: Cannot index into None
I also tried implementing json_field() instead, but only got back null for objects.
json_field()
null
We should figure out how to implement a json handler in the new code. Or maybe doing it with a UDF is sufficient for now.
I tried to implement
json
but ran into issues, because there was no way to work with the fenljson
object type in python.I tried accessing accessing properties of the object using
col("name")
,.name
, and["name"]
. None worked.json().col("a")
givesTypeError: Cannot access column 'a' of non-record type 'None'
a = json_str.json()["a"]
givesTypeError: Cannot index into None
I also tried implementing
json_field()
instead, but only got backnull
for objects.We should figure out how to implement a
json
handler in the new code. Or maybe doing it with a UDF is sufficient for now.