This is an automated email from the ASF dual-hosted git repository.
kxiao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new 26789f1afa6 [chore](dynamic schema) throw exception when property
contains dynamic schema (#29030)
26789f1afa6 is described below
commit 26789f1afa61f8df2e32480c0f83b382cf4aa898
Author: lihangyu <[email protected]>
AuthorDate: Tue Dec 26 12:29:45 2023 +0800
[chore](dynamic schema) throw exception when property contains dynamic
schema (#29030)
---
.../src/main/java/org/apache/doris/datasource/InternalCatalog.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
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 9fb391b0e80..925c7d39f6e 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
@@ -2225,7 +2225,10 @@ public class InternalCatalog implements
CatalogIf<Database> {
// set dynamic schema
boolean isDynamicSchema =
PropertyAnalyzer.analyzeBooleanProp(properties,
PropertyAnalyzer.PROPERTIES_DYNAMIC_SCHEMA, false);
- olapTable.setIsDynamicSchema(isDynamicSchema);
+ if (isDynamicSchema) {
+ throw new DdlException(
+ "Dynamic schema is deprecated, do not allow to create
table");
+ }
boolean isMutable = PropertyAnalyzer.analyzeBooleanProp(properties,
PropertyAnalyzer.PROPERTIES_MUTABLE, true);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]