Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-2677

QGen: Allow references to ancestor aliases in inline views

    XMLWordPrintableJSON

Details

    Description

      SELECT
        ...
      FROM 
        customer t1
        INNER JOIN (
          SELECT 
            1
          FROM
            t1.c_orders t2 INNER JOIN customer t10 ON (...)
            INNER JOIN (
              SELECT
                1
              FROM 
                t2.o_lineitems t5 INNER JOIN t1.c_orders t6 ON (...)
             ) as INLINE_VIEW_A
        ) as INLINE_VIEW_B
      

      The elements in the from clause of INLINE_VIEW_A can either be all uncorrelated collections or tables (like customer.c_orders, or part). or they call all be correlated collections from the parent's from clause (like t2.lineitems, or t10.orders). However, elements from ancestor's from clauses (like t1.orders) would never be referenced.

      Attachments

        Activity

          People

            Unassigned Unassigned
            tarasbob Taras Bobrovytsky
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: