Replies: 1 comment 1 reply
-
can you create this as an issue? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It's very convenient to cast json to structs
Of course structs require values for all fields, so casting an incomplete json object to a struct fails
To work around this you can create a macro that checks for the presence of each struct key and when present cast the field to the right type or use null.
Could this kind loose cast operator be created generically? Is there a way in SQL to access the fields and types of a struct?
Beta Was this translation helpful? Give feedback.
All reactions