[
https://issues.apache.org/jira/browse/FLINK-24387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17421294#comment-17421294
]
Francesco Guardiani commented on FLINK-24387:
---------------------------------------------
Perhaps the name should be just JSON or JSON_VALUE for consistency with
JSON_OBJECT and JSON_ARRAY?
For the particular case above of JSON_QUERY, could we just have another
JSON_QUERY that more than accepting string accepts every type which supports
json representation, that is MAP, ROW, ARRAY, etc?
> Support a "to JSON" function
> ----------------------------
>
> Key: FLINK-24387
> URL: https://issues.apache.org/jira/browse/FLINK-24387
> Project: Flink
> Issue Type: Sub-task
> Reporter: Ingo Bürk
> Priority: Major
>
> We should consider adding a TO_JSON function which can simply convert some
> (supported) type directly into a JSON representation, e.g. the equivalent of
> doing
> {code:java}
> JSON_QUERY(JSON_ARRAY(x), '$.[0]'){code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)