Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-9828

Semantic analyzer does not capture view parent entity for tables referred in view with union all

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.0
    • Fix Version/s: 1.2.1
    • Component/s: Parser
    • Labels:
      None

      Description

      Hive compiler adds tables used in a view definition in the input entity list, with the view as parent entity for the table.
      In case of a view with union all query, this is not being done property. For example,

      create view view1 as select t.id from (select tab1.id from db.tab1 union all select tab2.id from db.tab2 ) t;
      

      This query will capture tab1 and tab2 as read entity without view1 as parent.

        Attachments

        1. HIVE-9828.1-npf.patch
          7 kB
          Prasad Suresh Mujumdar
        2. HIVE-9828.1-npf.patch
          7 kB
          Prasad Suresh Mujumdar
        3. HIVE-9828.2.patch
          7 kB
          Prasad Suresh Mujumdar

          Issue Links

            Activity

              People

              • Assignee:
                prasadm Prasad Suresh Mujumdar
                Reporter:
                prasadm Prasad Suresh Mujumdar
              • Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: