hililiwei commented on code in PR #6222: URL: https://github.com/apache/iceberg/pull/6222#discussion_r1042019390
########## flink/v1.16/flink/src/main/java/org/apache/iceberg/flink/FlinkSchemaUtil.java: ########## @@ -104,11 +105,38 @@ public static Schema convert(Schema baseSchema, TableSchema flinkSchema) { Types.StructType struct = convert(flinkSchema).asStruct(); // reassign ids to match the base schema Schema schema = TypeUtil.reassignIds(new Schema(struct.fields()), baseSchema); + // reassign doc to match the base schema + schema = reassignDoc(schema, baseSchema); Review Comment: The reason I added this logic is: https://github.com/apache/iceberg/pull/5376/files#diff-db9787684ca50d6d4fdfe8ee927613d2e8e5c29eaa894535d39147b4f631cb17R152-R157 If the doc of the field is different, it will not pass the validation. -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org