Skip to content

Commit

Permalink
KYLIN-3929 Check satisfaction before execute cubeplanner algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
Wayne1c authored and shaofengshi committed Apr 3, 2019
1 parent 0daf07c commit 80c63f5
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ public Map<Long, Long> getRecommendCuboidList(CuboidStats cuboidStats, KylinConf
int allCuboidCount = cuboidStats.getAllCuboidsForMandatory().size()
+ cuboidStats.getAllCuboidsForSelection().size();

if (!ifForceRecommend && allCuboidCount <= threshold1) {
return null;
}

BenefitPolicy benefitPolicy = new PBPUSCalculator(cuboidStats);
CuboidRecommendAlgorithm algorithm = null;

Expand Down Expand Up @@ -157,9 +161,6 @@ public Map<Long, Long> getRecommendCuboidList(CuboidStats cuboidStats, KylinConf
}
}

if (!ifForceRecommend && allCuboidCount <= threshold1) {
return null;
}
return recommendCuboidsWithStats;
}

Expand Down

0 comments on commit 80c63f5

Please sign in to comment.