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

TJ Banghart commented on CALCITE-5846:
--------------------------------------

Thanks for the test case [~jingda]! Opened 
https://github.com/apache/calcite/pull/3515.

> Preserve filters on non-distinct aggCalls in AggregateExpandWithinDistinctRule
> ------------------------------------------------------------------------------
>
>                 Key: CALCITE-5846
>                 URL: https://issues.apache.org/jira/browse/CALCITE-5846
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: Steven Talbot
>            Assignee: TJ Banghart
>            Priority: Major
>              Labels: pull-request-available
>
> This line 
> [https://github.com/apache/calcite/blob/2dba40e7a0a5651eac5a30d9e0a72f178bd9bff2/core/src/main/java/org/apache/calcite/rel/rules/AggregateExpandWithinDistinctRule.java#L346-L348]
>  drops any such filterArg.
> Related to  CALCITE-4726. When the rule was first introduced any such 
> aggregates were blocked, but that change lets them through.



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

Reply via email to