Repository: hive
Updated Branches:
  refs/heads/master 28f7d19af -> 7fb088b7a


HIVE-19202 : CBO failed due to NullPointerException in 
HiveAggregate.isBucketedInput() (Zhuwei via Ashutosh Chauhan)

Signed-off-by: Ashutosh Chauhan <hashut...@apache.org>


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

Branch: refs/heads/master
Commit: 7fb088b7ae874365d658a6300a35a7f987d26ba1
Parents: 28f7d19
Author: zhuwei <qun...@youzan.com>
Authored: Mon Apr 16 21:34:16 2018 -0700
Committer: Ashutosh Chauhan <hashut...@apache.org>
Committed: Mon Apr 16 21:34:16 2018 -0700

----------------------------------------------------------------------
 .../hive/ql/optimizer/calcite/reloperators/HiveAggregate.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/7fb088b7/ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/reloperators/HiveAggregate.java
----------------------------------------------------------------------
diff --git 
a/ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/reloperators/HiveAggregate.java
 
b/ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/reloperators/HiveAggregate.java
index 3378c05..50466e0 100644
--- 
a/ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/reloperators/HiveAggregate.java
+++ 
b/ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/reloperators/HiveAggregate.java
@@ -75,7 +75,7 @@ public class HiveAggregate extends Aggregate implements 
HiveRelNode {
 
   public boolean isBucketedInput() {
     final RelMetadataQuery mq = 
this.getInput().getCluster().getMetadataQuery();
-    return mq.distribution(this.getInput()).getKeys().
+    return mq.distribution(this).getKeys().
             containsAll(groupSet.asList());
   }
 

Reply via email to