morrySnow commented on code in PR #53376:
URL: https://github.com/apache/doris/pull/53376#discussion_r2209704706


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/info/AddColumnOp.java:
##########
@@ -131,6 +131,10 @@ public static void validateColumnDef(TableNameInfo 
tableName, ColumnDefinition c
         if (columnDef == null) {
             throw new AnalysisException("No column definition in add column 
clause.");
         }
+        if (columnDef.getName().startsWith("__DORIS_")) {

Review Comment:
   refactor code of hidden column's name to avoid use the magic string. use a 
static variable instead



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to