Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-3990

Issues with nested correlated references

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 9.0, 8.12.5, 8.13.2
    • 8.4
    • Query Engine
    • None

      There are several issues with nested correlated reference handling generally around having the same table name/alias in several levels of the query. For example with a having c1, c2 columns, b having c3, c4, and c having c5, c6:

      SELECT (select c2 from b where c3 = (select c5 from c as x where c6 = c1)) FROM a as x group by c1, c2

      Results in an exception since the inner most reference to c1 is seen as actually resolving to c as x - rather than the outer a as x.

              rhn-engineering-shawkins Steven Hawkins
              rhn-engineering-shawkins Steven Hawkins
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: