stevenzwu commented on code in PR #6753: URL: https://github.com/apache/iceberg/pull/6753#discussion_r1119160571
########## flink/v1.16/flink/src/main/java/org/apache/iceberg/flink/sink/BaseDeltaTaskWriter.java: ########## @@ -94,7 +94,11 @@ public void write(RowData row) throws IOException { writer.delete(row); break; case DELETE: - writer.delete(row); + if (upsert) { + writer.deleteKey(keyProjection.wrap(row)); + } else { Review Comment: nit: for consistency with other case clauses. maybe no `else`? ``` if (upsert) { ... } ... break; ```` -- 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