[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:
Pxl
2024-01-02 17:54:56 +08:00
committed by GitHub
parent b3f69211b7
commit d474d4e701
3 changed files with 78 additions and 2 deletions

View File

@ -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 {