This is an automated email from the ASF dual-hosted git repository.
morrysnow pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new f70dfe27d0d [fix](Nereids) init comment as null when create struct
field from catalog type (#26105)
f70dfe27d0d is described below
commit f70dfe27d0d63b8ced2a8b539f217b2bfa808a84
Author: morrySnow <[email protected]>
AuthorDate: Mon Oct 30 19:26:09 2023 +0800
[fix](Nereids) init comment as null when create struct field from catalog
type (#26105)
---
fe/fe-core/src/main/java/org/apache/doris/nereids/types/DataType.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/nereids/types/DataType.java
b/fe/fe-core/src/main/java/org/apache/doris/nereids/types/DataType.java
index c939786237a..8f887326216 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/nereids/types/DataType.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/types/DataType.java
@@ -350,7 +350,7 @@ public abstract class DataType {
} 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()))
.collect(ImmutableList.toImmutableList());
return new StructType(structFields);
} else if (type.isMapType()) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]