[ https://issues.apache.org/jira/browse/CALCITE-2880?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16781571#comment-16781571 ]
Hongze Zhang commented on CALCITE-2880: --------------------------------------- Hi [~ritesh.kapoor], do you think it is a good idea to delete this issue? It seems to be duplicated with CALCITE-2881, and it makes the parent task CALCITE-2867's sub-task list not clear. If you are not able to delete a issue by yourself you can ask for help on the dev list. > Add the JSON_PRETTY function > ----------------------------- > > Key: CALCITE-2880 > URL: https://issues.apache.org/jira/browse/CALCITE-2880 > Project: Calcite > Issue Type: Sub-task > Reporter: Ritesh > Assignee: Forward Xu > Priority: Major > Labels: pull-request-available > > ``` > JSON_PRETTY(**json_string_doc**) > ``` > Returns the pretty formatted JSON document. Returns `NULL` if any argument is > `NULL` or if JSON document is invalid. > Example Sql: > ```sql > SELECT JSON_PRETTY(v) AS c1 > FROM (VALUES ('\{"a": [10, true],"b": [10, true]}')) as t(v) > limit 10 > ``` > Result: > |c1| > |----| > |{ > "a" : [ 10, true ], > "b" : [ 10, true ] > }| > -- This message was sent by Atlassian JIRA (v7.6.3#76005)