public void validateAggregationGroupsCombination() { int index = 1; for (AggregationGroup agg : getAggregationGroups()) { try { long combination = agg.calculateCuboidCombination(); if (combination > config.getCubeAggrGroupMaxCombination()) { String msg = "Aggregation group " + index + " of Cube Desc " + this.name + " has too many combinations: " + combination + ". Use 'mandatory'/'hierarchy'/'joint' to optimize; or update 'kylin.cube.aggrgroup.max-combination' to a bigger value."; throw new TooManyCuboidException(msg); } } catch (TooManyCuboidException e) { throw e; } catch (Exception e) { throw new IllegalStateException("Unknown error while calculating cuboid number for " + // "Aggregation group " + index + " of Cube Desc " + this.name, e); } index++; } }
combination = agg.calculateCuboidCombination(); } catch (Exception ex) { combination = getMaxCombinations(cube) + 1;
public void validateAggregationGroupsCombination() { int index = 1; for (AggregationGroup agg : getAggregationGroups()) { try { long combination = agg.calculateCuboidCombination(); if (combination > config.getCubeAggrGroupMaxCombination()) { String msg = "Aggregation group " + index + " of Cube Desc " + this.name + " has too many combinations: " + combination + ". Use 'mandatory'/'hierarchy'/'joint' to optimize; or update 'kylin.cube.aggrgroup.max-combination' to a bigger value."; throw new TooManyCuboidException(msg); } } catch (TooManyCuboidException e) { throw e; } catch (Exception e) { throw new IllegalStateException("Unknown error while calculating cuboid number for " + // "Aggregation group " + index + " of Cube Desc " + this.name, e); } index++; } }
combination = agg.calculateCuboidCombination(); } catch (Exception ex) { combination = getMaxCombinations(cube) + 1;