[jira] [Updated] (CALCITE-2881) Add the JSON_PRETTY function

2019-02-28 Thread ASF GitHub Bot (JIRA)


 [ 
https://issues.apache.org/jira/browse/CALCITE-2881?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated CALCITE-2881:

Labels: pull-request-available  (was: )

> Add the JSON_PRETTY function
> 
>
> Key: CALCITE-2881
> URL: https://issues.apache.org/jira/browse/CALCITE-2881
> Project: Calcite
>  Issue Type: Sub-task
>Reporter: Ritesh
>Priority: Major
>  Labels: pull-request-available
>
> ```
>  JSON_PRETTY(*json_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)


[jira] [Updated] (CALCITE-2881) Add the JSON_PRETTY function

2019-02-27 Thread Ritesh (JIRA)


 [ 
https://issues.apache.org/jira/browse/CALCITE-2881?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ritesh updated CALCITE-2881:

Description: 
```
 JSON_PRETTY(*json_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 ] }

  was:
```
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 ] }


> Add the JSON_PRETTY function
> 
>
> Key: CALCITE-2881
> URL: https://issues.apache.org/jira/browse/CALCITE-2881
> Project: Calcite
>  Issue Type: Sub-task
>Reporter: Ritesh
>Priority: Major
>
> ```
>  JSON_PRETTY(*json_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)