[Bug](rollup) fallback and disable tulpe when rollup select failed on old planner (#29226)
* fallback and disable tulpe when rollup select failed on old planner * add case
This commit is contained in:
@ -1363,18 +1363,18 @@ public class SingleNodePlanner {
|
||||
if (olapScanNode.getSelectedPartitionIds().size() == 0 && !FeConstants.runningUnitTest) {
|
||||
continue;
|
||||
}
|
||||
boolean tupleSelectFailed = false;
|
||||
|
||||
try {
|
||||
// select index by the old Rollup selector
|
||||
olapScanNode.selectBestRollupByRollupSelector(analyzer);
|
||||
} catch (UserException e) {
|
||||
LOG.debug("May no rollup index matched");
|
||||
tupleSelectFailed = true;
|
||||
}
|
||||
|
||||
// select index by the new Materialized selector
|
||||
MaterializedViewSelector.BestIndexInfo bestIndexInfo = materializedViewSelector
|
||||
.selectBestMV(olapScanNode);
|
||||
boolean tupleSelectFailed = false;
|
||||
if (bestIndexInfo == null) {
|
||||
tupleSelectFailed = true;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user