You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Hongze Zhang (JIRA)" <ji...@apache.org> on 2019/01/16 07:10:00 UTC
[jira] [Updated] (CALCITE-2787) Json aggregate calls with different
null clause get incorrectly merged during converting from SQL to
relational algebra
[ https://issues.apache.org/jira/browse/CALCITE-2787?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hongze Zhang updated CALCITE-2787:
----------------------------------
Summary: Json aggregate calls with different null clause get incorrectly merged during converting from SQL to relational algebra (was: Json aggregate calls with different null clause get incorrectly merged during converting from sql to rel)
> Json aggregate calls with different null clause get incorrectly merged during converting from SQL to relational algebra
> ------------------------------------------------------------------------------------------------------------------------
>
> Key: CALCITE-2787
> URL: https://issues.apache.org/jira/browse/CALCITE-2787
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.18.0
> Reporter: Hongze Zhang
> Assignee: Julian Hyde
> Priority: Major
>
> SQL:
>
> {code:sql}
> WITH tab(x) AS (VALUES 1, 2, 1, CAST(NULL AS INTEGER))
> SELECT JSON_ARRAYAGG(x), JSON_ARRAYAGG(x NULL ON NULl) FROM tab
> {code}
> Produces:
> {code}
> EXPR$0 |EXPR$1 |
> --------|--------|
> [1,2,1] |[1,2,1] |
> {code}
> Should be:
> {code}
> EXPR$0 |EXPR$1 |
> --------|--------|
> [1,2,1] |[1,2,1,null] |
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)