[ 
https://issues.apache.org/jira/browse/FLINK-24387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17421448#comment-17421448
 ] 

Francesco Guardiani commented on FLINK-24387:
---------------------------------------------

> TO_JSON could once again be problematic if we had a separate JSON data type.

Agree

> JSON_STRINGIFY or TO_JSON_STRING

I think they both fit, although IMO I think it's more appropriate to use 
TO_JSON_STRING, because afaik no json function uses the -IFY postfix in a 
function name to specify a conversion function. Also, wdyt about JSON_STRING, 
so it's consistent with JSON_OBJECT and JSON_ARRAY? 



> 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)

Reply via email to