Replies: 1 comment
-
Can you cast the type to Maybe @izveigor has some thoughts, given he has been working on structured type support recently |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How can I fix an error of this kind
Background, I have a UDF that mimics json_build_object from postgres. With a table like
I can build a json like this fine
But if I remove name or any other column that exist in the table, I get the error
A simple work around will be to always include a column from the table in the query, but unfortunately i cannot guarantee this. Especially when I have use case where json_build_object works on computed values or values created via other udfs.
How can I make my UDF not dependent on the present of a column? For example I can use the make_array function in this way. That is, I can use it without including a column from the table
Beta Was this translation helpful? Give feedback.
All reactions