npaincomplet opened a new pull request, #5267: URL: https://github.com/apache/calcite/pull/5267
## Jira Link [CALCITE-7687](https://issues.apache.org/jira/browse/CALCITE-7687) ## Changes Proposed Take into account column remapping from the aggregate to assess predicate pushability. When pushing, rewrite predicate's references as needed. See [FilterAggregateTransposeRule](https://github.com/apache/calcite/blob/3b0444d98ab2708a4de503f63ea70006b7efeb58/core/src/main/java/org/apache/calcite/rel/rules/FilterAggregateTransposeRule.java#L89) + [pushPastProject](https://github.com/apache/calcite/blob/3b0444d98ab2708a4de503f63ea70006b7efeb58/core/src/main/java/org/apache/calcite/plan/RelOptUtil.java#L3356) and [pushPastCalc](https://github.com/apache/calcite/blob/3b0444d98ab2708a4de503f63ea70006b7efeb58/core/src/main/java/org/apache/calcite/plan/RelOptUtil.java#L3384). This diagram explains the current **bug in the Quidem test**. <img width="1469" height="984" alt="Quidem_repro" src="https://github.com/user-attachments/assets/cf2b2895-c92d-496a-90d3-10541225ad67" /> I can do a similar diagram to explain the Java test, if needed. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
