diqiu50 commented on code in PR #13919:
URL: https://github.com/apache/gravitino/pull/13919#discussion_r4311746924
##########
catalogs/catalog-jdbc-doris/src/main/java/org/apache/gravitino/catalog/doris/operation/DorisTableOperations.java:
##########
@@ -1017,6 +1017,15 @@ private String addColumnFieldDefinition(
throw new UnsupportedOperationException("Doris does not support nested
column names.");
}
String col = addColumn.fieldName()[0];
+ // Doris 2.1.5+ and 3.0.1+ reject ADD COLUMN ... AUTO_INCREMENT. Earlier
2.1.x and 3.0.0 accept
+ // it and record the flag, but never generate values for the added column.
+ if (addColumn.isAutoIncrement()) {
+ throw new IllegalArgumentException(
Review Comment:
the nested-column check above throws UnsupportedOperationException; should
this one use it too for consistency?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]