You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Mihai Budiu (Jira)" <ji...@apache.org> on 2023/09/12 23:36:00 UTC
[jira] [Updated] (CALCITE-6003) JSON_ARRAY() with no arguments does not unparse correctly
[ https://issues.apache.org/jira/browse/CALCITE-6003?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mihai Budiu updated CALCITE-6003:
---------------------------------
Summary: JSON_ARRAY() with no arguments does not unparse correctly (was: json_array() with no arguments does not unparse correctly)
> 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
>
> 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)