From 5bf210ffa476541e4b3a7cc54280037123d63a4d Mon Sep 17 00:00:00 2001 From: zhangdong <493738387@qq.com> Date: Wed, 25 Sep 2024 14:15:24 +0800 Subject: [PATCH] =?UTF-8?q?[revert](storage)=20storage=20medium=20of=20par?= =?UTF-8?q?tition=20should=20not=20inherit=20from=E2=80=A6=20(#41212)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … table (#41192) pick: https://github.com/apache/doris/pull/41192 --- .../java/org/apache/doris/datasource/InternalCatalog.java | 7 ------- .../suites/mtmv_p0/test_storage_medium_mtmv.groovy | 3 +++ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java b/fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java index e5131b1dd3..51ca2817fc 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java +++ b/fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java @@ -1591,13 +1591,6 @@ public class InternalCatalog implements CatalogIf { 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); diff --git a/regression-test/suites/mtmv_p0/test_storage_medium_mtmv.groovy b/regression-test/suites/mtmv_p0/test_storage_medium_mtmv.groovy index 947ee72b08..efaff9aff5 100644 --- a/regression-test/suites/mtmv_p0/test_storage_medium_mtmv.groovy +++ b/regression-test/suites/mtmv_p0/test_storage_medium_mtmv.groovy @@ -18,6 +18,9 @@ import org.junit.Assert; suite("test_storage_medium_mtmv","mtmv") { + + // current, can not support extend storage medium from table + return; String suiteName = "test_storage_medium_mtmv" String tableName = "${suiteName}_table" String mvName = "${suiteName}_mv"