GitHub user Jefffrey closed the discussion with a comment: json_array_elements 
and json_build_object in Datafusion?

For `json_build_object` we do now have `make_map` which seems to achieve 
something similar:

https://github.com/apache/datafusion/blob/48cc4c8af3a5ad500a44c8625ea44d6b4827af1e/datafusion/sqllogictest/test_files/map.slt#L132-L135

- https://datafusion.apache.org/user-guide/sql/scalar_functions.html#map

For `json_array_elements`, I don't think we have anything similar in DataFusion 
at the moment. I guess it would be classified as a table function, and you can 
see an example of implementing a custom user defined table function here:

https://github.com/apache/datafusion/blob/main/datafusion-examples/examples/udf/simple_udtf.rs

GitHub link: 
https://github.com/apache/datafusion/discussions/6316#discussioncomment-15076486

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to