calcite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jcama...@apache.org
Subject incubator-calcite git commit: [CALCITE-929] Calls to AbstractRelNode may result in NPE
Date Wed, 21 Oct 2015 21:07:53 GMT
Repository: incubator-calcite
Updated Branches:
  refs/heads/master a6f65dc97 -> ee0e824d1


[CALCITE-929] Calls to AbstractRelNode may result in NPE

Close apache/incubator-calcite#158


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

Branch: refs/heads/master
Commit: ee0e824d1246bb3ac4da3bfd2757d390f8ca6583
Parents: a6f65dc
Author: Jesus Camacho Rodriguez <jcamacho@apache.org>
Authored: Wed Oct 21 13:04:38 2015 -0700
Committer: Jesus Camacho Rodriguez <jcamacho@apache.org>
Committed: Wed Oct 21 14:06:26 2015 -0700

----------------------------------------------------------------------
 core/src/main/java/org/apache/calcite/rel/AbstractRelNode.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-calcite/blob/ee0e824d/core/src/main/java/org/apache/calcite/rel/AbstractRelNode.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/calcite/rel/AbstractRelNode.java b/core/src/main/java/org/apache/calcite/rel/AbstractRelNode.java
index 4223a88..0e7facd 100644
--- a/core/src/main/java/org/apache/calcite/rel/AbstractRelNode.java
+++ b/core/src/main/java/org/apache/calcite/rel/AbstractRelNode.java
@@ -159,11 +159,11 @@ public abstract class AbstractRelNode implements RelNode {
   }
 
   public boolean isDistinct() {
-    return RelMetadataQuery.areRowsUnique(this);
+    return Boolean.TRUE.equals(RelMetadataQuery.areRowsUnique(this));
   }
 
   public boolean isKey(ImmutableBitSet columns) {
-    return RelMetadataQuery.areColumnsUnique(this, columns);
+    return Boolean.TRUE.equals(RelMetadataQuery.areColumnsUnique(this, columns));
   }
 
   public int getId() {


Mime
View raw message