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

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.1.0
    • 1.2.1
    • Parser
    • 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.2.patch
          7 kB
          Prasad Suresh Mujumdar
        2. HIVE-9828.1-npf.patch
          7 kB
          Prasad Suresh Mujumdar
        3. HIVE-9828.1-npf.patch
          7 kB
          Prasad Suresh Mujumdar

        Issue Links

          Activity

            People

              prasadm Prasad Suresh Mujumdar
              prasadm Prasad Suresh Mujumdar
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: