morrySnow commented on code in PR #26105:
URL: https://github.com/apache/doris/pull/26105#discussion_r1375887224
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/types/DataType.java:
##########
@@ -350,7 +350,7 @@ public static DataType fromCatalogType(Type type) {
} else if (type.isStructType()) {
List<StructField> structFields =
((org.apache.doris.catalog.StructType) (type)).getFields().stream()
.map(cf -> new StructField(cf.getName(),
fromCatalogType(cf.getType()),
- cf.getContainsNull(), cf.getComment()))
+ cf.getContainsNull(), cf.getComment() == null ? ""
: cf.getComment()))
Review Comment:
in Nereids, we should not make any attr be null, it is hard to process and
debug
--
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]