You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by se...@apache.org on 2015/10/02 04:37:48 UTC

[13/22] hive git commit: HIVE-11982 : Some test cases for union all fail with recent changes (Yongzhi Chen via Szehon)

HIVE-11982 : Some test cases for union all fail with recent changes (Yongzhi Chen via Szehon)


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/522bb600
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/522bb600
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/522bb600

Branch: refs/heads/llap
Commit: 522bb600b54cf7667de7bfa75cb286e680018842
Parents: 7b1ed3d
Author: Szehon Ho <sz...@cloudera.com>
Authored: Thu Oct 1 11:33:39 2015 -0700
Committer: Szehon Ho <sz...@cloudera.com>
Committed: Thu Oct 1 11:33:39 2015 -0700

----------------------------------------------------------------------
 .../org/apache/hadoop/hive/ql/optimizer/ColumnPrunerProcCtx.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/522bb600/ql/src/java/org/apache/hadoop/hive/ql/optimizer/ColumnPrunerProcCtx.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/optimizer/ColumnPrunerProcCtx.java b/ql/src/java/org/apache/hadoop/hive/ql/optimizer/ColumnPrunerProcCtx.java
index 8bcb464..2207cfb 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/optimizer/ColumnPrunerProcCtx.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/optimizer/ColumnPrunerProcCtx.java
@@ -270,7 +270,7 @@ public class ColumnPrunerProcCtx implements NodeProcessorCtx {
 
     for (Operator<? extends OperatorDesc> child : curOp.getChildOperators()) {
       if (child instanceof UnionOperator) {
-        prunList = prunedColLists.get(child);
+        prunList = genColLists(curOp, child);
         if (prunList == null || prunList.size() == 0 || parentPrunList.size() == prunList.size()) {
           continue;
         }