You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Yu Xu (Jira)" <ji...@apache.org> on 2026/03/13 03:03:00 UTC

[jira] [Comment Edited] (CALCITE-3366) RelDecorrelator supports Union

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

Yu Xu edited comment on CALCITE-3366 at 3/13/26 3:02 AM:
---------------------------------------------------------

Tests added in [288d490|https://github.com/apache/calcite/commit/288d490f122270121022387e84f0e549d51bda19]

Thank you for the tests [~jensen] 


was (Author: JIRAUSER307770):
Tests added in [288d490|https://github.com/apache/calcite/commit/288d490f122270121022387e84f0e549d51bda19]

Thank you for the tests [~jensen] 

 

 

> RelDecorrelator supports Union
> ------------------------------
>
>                 Key: CALCITE-3366
>                 URL: https://issues.apache.org/jira/browse/CALCITE-3366
>             Project: Calcite
>          Issue Type: Improvement
>            Reporter: Jin Xing
>            Assignee: Zhen Chen
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 5h 10m
>  Remaining Estimate: 0h
>
> This issue proposes to support decorrelation for below sql
> {code:java}
> SELECT deptno FROM dept where exists
> (SELECT 1 FROM emp where sal < 100 and emp.deptno=dept.deptno
> union all
> SELECT 1 FROM emp where sal > 200 and emp.deptno=dept.deptno){code}
> This issue was found when I resolve CALCITE-3363 in https://github.com/apache/calcite/pull/1466 
> I failed to construct an semi-join operator from SQL string.



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