Skip to content

Commit

Permalink
[chore](dynamic schema) throw exception when property contains dynami…
Browse files Browse the repository at this point in the history
…c schema (#29030)
  • Loading branch information
eldenmoon authored Dec 26, 2023
1 parent bd4d1f4 commit 26789f1
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2225,7 +2225,10 @@ private void createOlapTable(Database db, CreateTableStmt stmt) throws UserExcep
// 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);

Expand Down

0 comments on commit 26789f1

Please sign in to comment.