[ 
https://issues.apache.org/jira/browse/CALCITE-7832?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18121363#comment-18121363
 ] 

Mihai Budiu commented on CALCITE-7832:
--------------------------------------

The Calcite Runtime actually drops NULL values from ARRAY_AGG. If this is the 
intended semantics, this issue is invalid. The documentation does not specify 
the semantics, but neither Postgres nor BigQuery drop NULLs.

> AggregateCaseToFilterRule should not be applied to ARRAY_AGG
> ------------------------------------------------------------
>
>                 Key: CALCITE-7832
>                 URL: https://issues.apache.org/jira/browse/CALCITE-7832
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.42.0
>            Reporter: Mihai Budiu
>            Assignee: Mihai Budiu
>            Priority: Minor
>
>  CALCITE-7330 handles this for user-defined aggregates. But the same 
> reasoning is valid for ARRAY_AGG, which does *not* ignore NULLs.



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

Reply via email to