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

Etienne Pelissier commented on CALCITE-7687:
--------------------------------------------

I believe 
[splitFilter|https://github.com/apache/calcite/blob/3b0444d98ab2708a4de503f63ea70006b7efeb58/core/src/main/java/org/apache/calcite/plan/RelOptUtil.java#L3189]'s
 documentation is misleading because:
- _for each filter, if the filter only references the child inputs, then it can 
be pushed_ implies that column-reference containment establishes semantic 
pushability. That depends on the relational operator and its semantics (for 
instance, in a non-simple aggregate); this method only checks containment.

> Aggregate selectivity estimation uses incorrect column references
> -----------------------------------------------------------------
>
>                 Key: CALCITE-7687
>                 URL: https://issues.apache.org/jira/browse/CALCITE-7687
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>            Reporter: Etienne Pelissier
>            Assignee: Etienne Pelissier
>            Priority: Minor
>              Labels: in-progress
>
> Predicate pushability is assessed without taking into account column 
> remapping from the aggregate.
> Additionally, predicates are pushed without being rewritten as need be.



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

Reply via email to