hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From harisan...@apache.org
Subject hive git commit: HIVE-12798 : CBO: Calcite Operator To Hive Operator (Calcite Return Path): MiniTezCliDriver.vector* queries failures due to NPE in Vectorizer.onExpressionHasNullSafes() (Hari Subramaniyan, reviewed by Matt McCline )
Date Tue, 19 Jan 2016 22:36:19 GMT
Repository: hive
Updated Branches:
  refs/heads/master c8f15f7b8 -> eb2b7b81f


HIVE-12798 : CBO: Calcite Operator To Hive Operator (Calcite Return Path): MiniTezCliDriver.vector*
queries failures due to NPE in Vectorizer.onExpressionHasNullSafes() (Hari Subramaniyan, reviewed
by Matt McCline )


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

Branch: refs/heads/master
Commit: eb2b7b81f815238cc2b67d701d45aa7618fc8d13
Parents: c8f15f7
Author: Hari Subramaniyan <harisankar@apache.org>
Authored: Tue Jan 19 14:35:51 2016 -0800
Committer: Hari Subramaniyan <harisankar@apache.org>
Committed: Tue Jan 19 14:35:51 2016 -0800

----------------------------------------------------------------------
 .../org/apache/hadoop/hive/ql/optimizer/physical/Vectorizer.java  | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/eb2b7b81/ql/src/java/org/apache/hadoop/hive/ql/optimizer/physical/Vectorizer.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/optimizer/physical/Vectorizer.java b/ql/src/java/org/apache/hadoop/hive/ql/optimizer/physical/Vectorizer.java
index f462bd6..ee080aa 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/optimizer/physical/Vectorizer.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/optimizer/physical/Vectorizer.java
@@ -1911,6 +1911,9 @@ public class Vectorizer implements PhysicalPlanResolver {
 
   private boolean onExpressionHasNullSafes(MapJoinDesc desc) {
     boolean[] nullSafes = desc.getNullSafes();
+    if (nullSafes == null) {
+	return false;
+    }
     for (boolean nullSafe : nullSafes) {
       if (nullSafe) {
         return true;


Mime
View raw message