result.incapableCause = CapabilityResult.IncapableCause.unmatchedDimensions(unmatchedDimensions); return result; result.incapableCause = CapabilityResult.IncapableCause.unmatchedAggregations(unmatchedAggregations); return result; "Exclude cube " + cube.getName() + " because only v2 storage + v2 query engine supports massin"); result.incapableCause = CapabilityResult.IncapableCause .create(CapabilityResult.IncapableType.UNSUPPORT_MASSIN); return result; logger.info("Exclude cube " + cube.getName() + " because there's limit preceding aggregation"); result.incapableCause = CapabilityResult.IncapableCause .create(CapabilityResult.IncapableType.LIMIT_PRECEDE_AGGR); return result; if (cube.getConfig().isDisableCubeNoAggSQL()) { result.incapableCause = CapabilityResult.IncapableCause .create(CapabilityResult.IncapableType.UNSUPPORT_RAWQUERY); return result; } else {
result.incapableCause = CapabilityResult.IncapableCause.unmatchedDimensions(unmatchedDimensions); return result; result.incapableCause = CapabilityResult.IncapableCause.unmatchedAggregations(unmatchedAggregations); return result; "Exclude cube " + cube.getName() + " because only v2 storage + v2 query engine supports massin"); result.incapableCause = CapabilityResult.IncapableCause .create(CapabilityResult.IncapableType.UNSUPPORT_MASSIN); return result; logger.info("Exclude cube " + cube.getName() + " because there's limit preceding aggregation"); result.incapableCause = CapabilityResult.IncapableCause .create(CapabilityResult.IncapableType.LIMIT_PRECEDE_AGGR); return result; if (cube.getConfig().isDisableCubeNoAggSQL()) { result.incapableCause = CapabilityResult.IncapableCause .create(CapabilityResult.IncapableType.UNSUPPORT_RAWQUERY); return result; } else {
switch (incapableCause.getIncapableType()) { case UNSUPPORT_MASSIN: incapableType = IncapableType.CUBE_UN_SUPPORT_MASSIN; incapableReason.setUnmatchedDimensions(incapableCause.getUnmatchedDimensions()); incapableReason.setUnmatchedAggregations(incapableCause.getUnmatchedAggregations()); return incapableReason;
public static IncapableCause unmatchedAggregations(Collection<FunctionDesc> unmatchedAggregations) { IncapableCause incapableCause = new IncapableCause(); incapableCause.setIncapableType(IncapableType.UNMATCHED_AGGREGATION); incapableCause.setUnmatchedAggregations(unmatchedAggregations); return incapableCause; }
public static IncapableCause create(IncapableType incapableType) { IncapableCause incapableCause = new IncapableCause(); incapableCause.setIncapableType(incapableType); return incapableCause; }
public static IncapableCause unmatchedDimensions(Collection<TblColRef> unmatchedDimensions) { IncapableCause incapableCause = new IncapableCause(); incapableCause.setIncapableType(IncapableType.UNMATCHED_DIMENSION); incapableCause.setUnmatchedDimensions(unmatchedDimensions); return incapableCause; }
switch (incapableCause.getIncapableType()) { case UNSUPPORT_MASSIN: incapableType = IncapableType.CUBE_UN_SUPPORT_MASSIN; incapableReason.setUnmatchedDimensions(incapableCause.getUnmatchedDimensions()); incapableReason.setUnmatchedAggregations(incapableCause.getUnmatchedAggregations()); return incapableReason;
public static IncapableCause create(IncapableType incapableType) { IncapableCause incapableCause = new IncapableCause(); incapableCause.setIncapableType(incapableType); return incapableCause; }
public static IncapableCause unmatchedAggregations(Collection<FunctionDesc> unmatchedAggregations) { IncapableCause incapableCause = new IncapableCause(); incapableCause.setIncapableType(IncapableType.UNMATCHED_AGGREGATION); incapableCause.setUnmatchedAggregations(unmatchedAggregations); return incapableCause; }
public static IncapableCause unmatchedDimensions(Collection<TblColRef> unmatchedDimensions) { IncapableCause incapableCause = new IncapableCause(); incapableCause.setIncapableType(IncapableType.UNMATCHED_DIMENSION); incapableCause.setUnmatchedDimensions(unmatchedDimensions); return incapableCause; }