This is an automated email from the ASF dual-hosted git repository. xxyu pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/kylin.git
The following commit(s) were added to refs/heads/main by this push: new 72c7665 minor fix for KYLIN-5071 72c7665 is described below commit 72c76651d573635fb74c66f79bebb81d52c2a1be Author: Mukvin <boyboys...@163.com> AuthorDate: Thu Dec 2 17:04:55 2021 +0800 minor fix for KYLIN-5071 --- core-cube/src/main/java/org/apache/kylin/cube/CubeInstance.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/core-cube/src/main/java/org/apache/kylin/cube/CubeInstance.java b/core-cube/src/main/java/org/apache/kylin/cube/CubeInstance.java index cc9b0b0..1fb6f07 100644 --- a/core-cube/src/main/java/org/apache/kylin/cube/CubeInstance.java +++ b/core-cube/src/main/java/org/apache/kylin/cube/CubeInstance.java @@ -460,13 +460,10 @@ public class CubeInstance extends RootPersistentEntity implements IRealization, public Set<Long> getCuboidsByMode(CuboidModeEnum cuboidMode) { Set<Long> currentCuboid = getCuboidScheduler().getAllCuboidIds(); - if (cuboidMode == null || cuboidMode == CURRENT) { - return currentCuboid; - } - if (cuboidMode == CURRENT_WITH_BASE) { - currentCuboid.add(getCuboidScheduler().getBaseCuboidId()); + if (cuboidMode == null || cuboidMode == CURRENT || cuboidMode == CURRENT_WITH_BASE) { return currentCuboid; } + Set<Long> cuboidsRecommend = getCuboidsRecommend(); if (cuboidsRecommend == null || cuboidMode == RECOMMEND) { return cuboidsRecommend;