You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by ma...@apache.org on 2015/12/29 02:49:54 UTC
kylin git commit: KYLIN-242 bug fix
Repository: kylin
Updated Branches:
refs/heads/2.x-staging 00df6cb9a -> 3abb061a0
KYLIN-242 bug fix
Project: http://git-wip-us.apache.org/repos/asf/kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/3abb061a
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/3abb061a
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/3abb061a
Branch: refs/heads/2.x-staging
Commit: 3abb061a023d65d9f6c656711ffa85bf679b7806
Parents: 00df6cb
Author: honma <ho...@ebay.com>
Authored: Tue Dec 29 09:49:44 2015 +0800
Committer: honma <ho...@ebay.com>
Committed: Tue Dec 29 09:49:44 2015 +0800
----------------------------------------------------------------------
.../src/main/java/org/apache/kylin/cube/cuboid/Cuboid.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/kylin/blob/3abb061a/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 d604612..5a28b00 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
@@ -171,10 +171,9 @@ public class Cuboid implements Comparable<Cuboid> {
} else {
//choose from a hierarchy that does not intersect with any joint dim, only check level 1
long allJointDims = agg.getJointDimsMask();
- int index = 0;
for (HierarchyMask hierarchyMask : agg.getHierarchyMasks()) {
- long dim = hierarchyMask.allMasks[index];
- if ((nonJointDims & allJointDims) == 0) {
+ long dim = hierarchyMask.allMasks[0];
+ if ((dim & allJointDims) == 0) {
return cuboidID | dim;
}
}