JingsongLi commented on code in PR #964:
URL: https://github.com/apache/incubator-paimon/pull/964#discussion_r1173237827
##########
paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/DataCatalogTable.java:
##########
@@ -50,6 +54,17 @@ public Table table() {
return table;
}
+ @Override
+ public Schema getUnresolvedSchema() {
+ // add physical column comments
+ Map<String, String> columnComments =
+ table.rowType().getFields().stream()
+ .filter(dataField -> dataField.description() != null)
+ .collect(Collectors.toMap(DataField::name,
DataField::description));
+
+ return FlinkTableSchemaUtils.toSchema(getSchema(), columnComments);
Review Comment:
Put `FlinkTableSchemaUtils.toSchema` to `DataCatalogTable.toSchema`? No
other use it.
--
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]