morningman commented on code in PR #57401:
URL: https://github.com/apache/doris/pull/57401#discussion_r2493792846


##########
fe/fe-core/src/main/java/org/apache/doris/catalog/Column.java:
##########
@@ -259,16 +257,17 @@ public Column(String name, Type type, boolean isKey, 
AggregateType aggregateType
         this.defaultValue = defaultValue;
         this.realDefaultValue = realDefaultValue;
         this.defaultValueExprDef = defaultValueExprDef;
-        this.comment = comment;
-        this.stats = new ColumnStats();
+        this.comment = StringUtils.isBlank(comment) ? null : comment;

Review Comment:
   Can use `Strings.emptyToNull`



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