]
RH Bugzilla Integration commented on TEIID-4015:
------------------------------------------------
Juraj DurĂ¡ni <jdurani(a)redhat.com> changed the Status of [bug
Error or incorrect value when there is a conflict between local and
correlated names
------------------------------------------------------------------------------------
Key: TEIID-4015
URL:
https://issues.jboss.org/browse/TEIID-4015
Project: Teiid
Issue Type: Bug
Components: Query Engine
Reporter: Steven Hawkins
Assignee: Steven Hawkins
Priority: Critical
Fix For: 9.0, 8.12.5, 8.13.2, 8.7.5.6_2
With a query such as:
select e1, (select e1 from (select t1.e1 from pm1.g1 as t1) as t2 where t2.e1 = t1.e1)
from pm2.g1 as t1
The correlated reference to t1.e1 will get evaulated as if it were a local value from
pm1.g1 as t1 instead. This is because the evaluator doesn't immediately look for the
context value, but rather calls to internalEvaluate.