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

ConstantPropagateProcCtx.resolve() should verify internal names in addition to alias to match 2 columns from different row schemas

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • None
    • None

    Description

      Currently, it seems that we look to match the ColumnInfo between the parent and the child rowschemas by calling rci = rs.getColumnInfo(tblAlias, alias) which might be a bit aggressive. i.e. we will lose opportunity to constant propogate even if the columns are the same but the alias in the rowschemas do not match. We need to introduce additional checks to see if the columns can be mapped to constants from parents.

      Attachments

        1. HIVE-12645.1.patch
          2 kB
          Hari Sankar Sivarama Subramaniyan
        2. HIVE-12645.2.patch
          29 kB
          Hari Sankar Sivarama Subramaniyan
        3. HIVE-12645.3.patch
          23 kB
          Hari Sankar Sivarama Subramaniyan
        4. HIVE-12645.4.patch
          81 kB
          Hari Sankar Sivarama Subramaniyan

        Issue Links

          Activity

            People

              hsubramaniyan Hari Sankar Sivarama Subramaniyan
              hsubramaniyan Hari Sankar Sivarama Subramaniyan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: