[revert](storage) storage medium of partition should not inherit from… (#41212)

… table (#41192)
pick: https://github.com/apache/doris/pull/41192
This commit is contained in:
zhangdong
2024-09-25 14:15:24 +08:00
committed by GitHub
parent 11bad4cbc9
commit 5bf210ffa4
2 changed files with 3 additions and 7 deletions

View File

@ -1591,13 +1591,6 @@ 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);