This is an automated email from the ASF dual-hosted git repository.

dataroaring pushed a commit to branch branch-4.0-preview
in repository https://gitbox.apache.org/repos/asf/doris.git

commit 77c93faeaf78cec0836e3770a009b6536de94794
Author: AlexYue <yj976240...@gmail.com>
AuthorDate: Mon Apr 15 09:45:33 2024 +0800

    [feature](Cloud) Forbid alter table's storage vault related properties 
(#33620)
---
 .../java/org/apache/doris/analysis/ModifyTablePropertiesClause.java   | 4 ++++
 1 file changed, 4 insertions(+)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/analysis/ModifyTablePropertiesClause.java
 
b/fe/fe-core/src/main/java/org/apache/doris/analysis/ModifyTablePropertiesClause.java
index 8a3543d3d36..c5a4036f81f 100644
--- 
a/fe/fe-core/src/main/java/org/apache/doris/analysis/ModifyTablePropertiesClause.java
+++ 
b/fe/fe-core/src/main/java/org/apache/doris/analysis/ModifyTablePropertiesClause.java
@@ -302,6 +302,10 @@ public class ModifyTablePropertiesClause extends 
AlterTableClause {
         } else if 
(properties.containsKey(PropertyAnalyzer.PROPERTIES_FILE_CACHE_TTL_SECONDS)) {
             this.needTableStable = false;
             this.opType = AlterOpType.MODIFY_TABLE_PROPERTY_SYNC;
+        } else if 
(properties.containsKey(PropertyAnalyzer.PROPERTIES_STORAGE_VAULT_NAME)) {
+            throw new AnalysisException("You can not modify storage vault 
name");
+        } else if 
(properties.containsKey(PropertyAnalyzer.PROPERTIES_STORAGE_VAULT_ID)) {
+            throw new AnalysisException("You can not modify storage vault id");
         } else {
             throw new AnalysisException("Unknown table property: " + 
properties.keySet());
         }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to