lvyanquan commented on code in PR #4639:
URL: https://github.com/apache/flink-cdc/pull/4639#discussion_r4780674549


##########
flink-cdc-connect/flink-cdc-pipeline-connectors/flink-cdc-pipeline-connector-iceberg/src/main/java/org/apache/flink/cdc/connectors/iceberg/sink/IcebergMetadataApplier.java:
##########
@@ -336,6 +336,18 @@ private void applyAlterColumnType(AlterColumnTypeEvent 
event) {
                                                                 
.getLogicalType())
                                                 .asPrimitiveType();
                                 updateSchema.updateColumn(name, type);
+                                // Relaxing NOT NULL to NULL is always safe; 
otherwise writing a
+                                // null value into the still-required Iceberg 
field fails.
+                                // Identifier fields must stay required in 
Iceberg.

Review Comment:
   The inline comments here don't seem necessary — the rationale is already 
covered in the PR description.



-- 
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]

Reply via email to