[fix](mtmv) Fix that the storage medium specified for the mtmv is SSD, but the partition storage medium for the mtmv is still HDD (#35644) (#35955)

pick from master:#35644
This commit is contained in:
zhangdong
2024-06-06 15:36:49 +08:00
committed by GitHub
parent 104fcea725
commit cd808c3ea0
3 changed files with 88 additions and 3 deletions

View File

@ -1512,6 +1512,13 @@ public class InternalCatalog implements CatalogIf<Database> {
if (!properties.containsKey(PropertyAnalyzer.PROPERTIES_STORAGE_POLICY)) {
properties.put(PropertyAnalyzer.PROPERTIES_STORAGE_POLICY, olapTable.getStoragePolicy());
}
if (!properties.containsKey(PropertyAnalyzer.PROPERTIES_STORAGE_MEDIUM)) {
TStorageMedium tableStorageMedium = olapTable.getStorageMedium();
if (tableStorageMedium != null) {
properties.put(PropertyAnalyzer.PROPERTIES_STORAGE_MEDIUM,
tableStorageMedium.name().toLowerCase());
}
}
singlePartitionDesc.analyze(partitionInfo.getPartitionColumns().size(), properties);
partitionInfo.createAndCheckPartitionItem(singlePartitionDesc, isTempPartition);