Skip to content
Discussion options

You must be logged in to vote

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

query ?
SELECT MAKE_MAP('POST', 41, 'HEAD', 33, 'PATCH', null);
----
{POST: 41, HEAD: 33, PATCH: NULL}

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_…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Jefffrey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants