zhuangchong commented on code in PR #1547:
URL: https://github.com/apache/incubator-paimon/pull/1547#discussion_r1265007810
##########
paimon-core/src/main/java/org/apache/paimon/schema/Schema.java:
##########
@@ -243,6 +243,10 @@ public Builder column(String columnName, DataType
dataType, @Nullable String des
Preconditions.checkNotNull(columnName, "Column name must not be
null.");
Preconditions.checkNotNull(dataType, "Data type must not be
null.");
columns.add(new DataField(++highestFieldId, columnName, dataType,
description));
+
+ Set<Integer> structuredFieldIds = new HashSet<>();
+ dataType.collectFieldIds(structuredFieldIds);
+ highestFieldId += structuredFieldIds.size();
Review Comment:
I understand it is needed and I am modifying the `RowType.collectFieldIds`
method.
--
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]