Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement json in new python client #768

Open
epinzur opened this issue Sep 22, 2023 · 0 comments
Open

Implement json in new python client #768

epinzur opened this issue Sep 22, 2023 · 0 comments

Comments

@epinzur
Copy link
Collaborator

epinzur commented Sep 22, 2023

I tried to implement json but ran into issues, because there was no way to work with the fenl jsonobject type in python.

I tried accessing accessing properties of the object using col("name"), .name, and ["name"]. None worked.

json().col("a") gives TypeError: Cannot access column 'a' of non-record type 'None'

a = json_str.json()["a"] gives TypeError: Cannot index into None

I also tried implementing json_field() instead, but only got back null 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant