You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "xiong duan (Jira)" <ji...@apache.org> on 2025/04/17 02:39:00 UTC
[jira] [Commented] (CALCITE-6955) PruneEmptyRules does not handle the all attribute of SetOp correctly
[ https://issues.apache.org/jira/browse/CALCITE-6955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17945212#comment-17945212 ]
xiong duan commented on CALCITE-6955:
-------------------------------------
Fixed in [7563e44|https://github.com/apache/calcite/commit/7563e44b2320ef2d90ca4284ea668ea13836abc7]. Thanks for the contribution [~jensen]. Thanks for the review [~mbudiu] .
> PruneEmptyRules does not handle the all attribute of SetOp correctly
> --------------------------------------------------------------------
>
> Key: CALCITE-6955
> URL: https://issues.apache.org/jira/browse/CALCITE-6955
> Project: Calcite
> Issue Type: Bug
> Reporter: Zhen Chen
> Assignee: Zhen Chen
> Priority: Major
> Labels: pull-request-available
>
> {code:java}
> select * from emp where deptno = 10
> union
> select * from emp where 1=0{code}
> should be optimized to :
> {code:java}
> select distinct * from emp where deptno = 10 {code}
> but now is:
> {code:java}
> select * from emp where deptno = 10 {code}
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)