[
https://issues.apache.org/jira/browse/CALCITE-7962?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated CALCITE-7962:
------------------------------------
Labels: pull-request-available (was: )
> RelDecorrelator removes the variablesSet of a Filter whose input it
> decorrelates
> --------------------------------------------------------------------------------
>
> Key: CALCITE-7962
> URL: https://issues.apache.org/jira/browse/CALCITE-7962
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.42.0
> Reporter: Mihai Budiu
> Assignee: Mihai Budiu
> Priority: Minor
> Labels: pull-request-available
>
> This quidem test fails:
> {code:sql}
> select d.deptno, x.m
> from dept d, lateral (select max(sal) as m from emp e where e.deptno =
> d.deptno) x
> where exists (select 1 from emp e2 where e2.deptno = d.deptno and e2.sal >
> 2900)
> order by d.deptno;
> {code}
> {code}
> java.lang.AssertionError: Correlation variable $cor1 should be defined
> at
> org.apache.calcite.adapter.enumerable.EnumerableRelImplementor.getCorrelVariableGetter(EnumerableRelImplementor.java:479)
> {code}
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)