[fix](Nereids) query mv column directly (#30444)

This commit is contained in:
morrySnow
2024-01-29 17:27:03 +08:00
committed by yiguolei
parent a0d2aa3619
commit afab713048
2 changed files with 7 additions and 7 deletions

View File

@ -368,7 +368,7 @@ public class LogicalOlapScan extends LogicalCatalogRelation implements OlapScan
}
private Slot generateUniqueSlot(OlapTable table, Column column, boolean isBaseIndex, long indexId) {
String name = isBaseIndex ? column.getName()
String name = isBaseIndex || directMvScan ? column.getName()
: AbstractSelectMaterializedIndexRule.parseMvColumnToMvName(column.getName(),
column.isAggregated() ? Optional.of(column.getAggregationType().toSql()) : Optional.empty());
if (cacheSlotWithSlotName.containsKey(Pair.of(indexId, name))) {