Mihai Budiu created CALCITE-7962:
------------------------------------
Summary: 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
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)