kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mahong...@apache.org
Subject [1/5] kylin git commit: fix CI [Forced Update!]
Date Thu, 03 Nov 2016 11:28:31 GMT
Repository: kylin
Updated Branches:
  refs/heads/yang21-cdh5.7 37529c552 -> 7398d08b8 (forced update)


fix CI


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

Branch: refs/heads/yang21-cdh5.7
Commit: c55a6fbeaf2348ffc0e1a0dc6e514812ac0b54e1
Parents: cb0a1a3
Author: Hongbin Ma <mahongbin@apache.org>
Authored: Thu Nov 3 19:20:09 2016 +0800
Committer: Hongbin Ma <mahongbin@apache.org>
Committed: Thu Nov 3 19:20:09 2016 +0800

----------------------------------------------------------------------
 .../src/main/java/org/apache/kylin/cube/cuboid/Cuboid.java      | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/c55a6fbe/core-cube/src/main/java/org/apache/kylin/cube/cuboid/Cuboid.java
----------------------------------------------------------------------
diff --git a/core-cube/src/main/java/org/apache/kylin/cube/cuboid/Cuboid.java b/core-cube/src/main/java/org/apache/kylin/cube/cuboid/Cuboid.java
index 855aad6..48b9e77 100644
--- a/core-cube/src/main/java/org/apache/kylin/cube/cuboid/Cuboid.java
+++ b/core-cube/src/main/java/org/apache/kylin/cube/cuboid/Cuboid.java
@@ -89,6 +89,11 @@ public class Cuboid implements Comparable<Cuboid> {
     }
 
     public static boolean isValid(CubeDesc cube, long cuboidID) {
+        //base cuboid is always valid
+        if (cuboidID == getBaseCuboidId(agg.getCubeDesc())) {
+            return true;
+        }
+        
         for (AggregationGroup agg : cube.getAggregationGroups()) {
             if (isValid(agg, cuboidID)) {
                 return true;


Mime
View raw message