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

inconsistence between colList and columnExprMap when ConstantPropagate is applied to subquery

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.14.0
    • Fix Version/s: 0.14.0
    • Component/s: Logical Optimizer
    • Labels:
      None

      Description

      Query like

      select * from (select a.key as ak, a.value as av, b.key as bk, b.value as bv from src a join src1 b where a.key = '428' ) c;

      will fail as

      FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask

        Attachments

        1. HIVE-8184.1.patch
          13 kB
          Pengcheng Xiong
        2. HIVE-8184.2.patch
          13 kB
          Pengcheng Xiong
        3. HIVE-8184.3.patch
          198 kB
          Pengcheng Xiong
        4. HIVE-8184.4.patch
          198 kB
          Pengcheng Xiong

          Issue Links

            Activity

              People

              • Assignee:
                pxiong Pengcheng Xiong
                Reporter:
                pxiong Pengcheng Xiong
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: