[
https://issues.apache.org/jira/browse/CALCITE-2787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16779368#comment-16779368
]
Hongze Zhang edited comment on CALCITE-2787 at 2/27/19 4:14 PM:
----------------------------------------------------------------
Fixed in
[82ab280b492c737c1668360a4a434718465ad013|https://gitbox.apache.org/repos/asf?p=calcite.git;a=commit;h=82ab280b492c737c1668360a4a434718465ad013].
was (Author: zhztheplayer):
Fixed in
[5ada462e6f792deee7185ad2df8ec58380061d59|https://gitbox.apache.org/repos/asf?p=calcite.git;a=commit;h=5ada462e6f792deee7185ad2df8ec58380061d59].
> 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: Sub-task
> Components: core
> Affects Versions: 1.18.0
> Reporter: Hongze Zhang
> Assignee: Hongze Zhang
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.19.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> 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)