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

Julian Hyde resolved CALCITE-6003.
----------------------------------
    Fix Version/s: 1.36.0
       Resolution: Fixed

Fixed in 
[509e8c17|https://github.com/apache/calcite/commit/509e8c171268a0599d2612b74c608989cb1bc2ab];
 thanks for the PR, [~mbudiu]!

> JSON_ARRAY() with no arguments does not unparse correctly
> ---------------------------------------------------------
>
>                 Key: CALCITE-6003
>                 URL: https://issues.apache.org/jira/browse/CALCITE-6003
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.35.0
>            Reporter: Mihai Budiu
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.36.0
>
>
> The following expression "json_array()" is compiled by the SqlOperatorTest 
> into the following query:
> {code:sql}
> select json_array() from (values (1)) as t(p0)
> {code}
> Parsing and unparsing this query generates the following incorrect SQL:
> {code:sql}
> SELECT JSON_ARRAY(ABSENT ON NULL)
> FROM (VALUES ROW(1)) AS "T" ("P0")
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to