[ 
https://issues.apache.org/jira/browse/CALCITE-7490?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yu Xu resolved CALCITE-7490.
----------------------------
    Resolution: Fixed

Fixed in 
[e00c693|https://github.com/apache/calcite/commit/e00c69300e9944d95ac321e84a5bd529a8a99ad6]

Thank you for the review [~mbudiu] 

> PruneEmptyRules is ineffective for window statements
> ----------------------------------------------------
>
>                 Key: CALCITE-7490
>                 URL: https://issues.apache.org/jira/browse/CALCITE-7490
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.41.0
>            Reporter: Yu Xu
>            Assignee: Yu Xu
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.42.0
>
>
> PruneEmptyRules is ineffective for window statements.
> SQL:
> {code:java}
> select count(*) over () from emp where false {code}
> Current optimization is:
> {code:java}
> LogicalProject(EXPR$0=[$9])
>   LogicalWindow(window#0=[window(aggs [COUNT()])])
>     LogicalValues(tuples=[[]]) {code}
> The target execution plan should better to be:
> {code:java}
> LogicalValues(tuples=[[]]) {code}
> We maybe need to add support for Windows scenarios.



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

Reply via email to