snuyanzin commented on code in PR #26893: URL: https://github.com/apache/flink/pull/26893#discussion_r2276735629
########## flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/deduplicate/utils/DeduplicateFunctionHelper.java: ########## @@ -292,6 +292,19 @@ public static boolean shouldKeepCurrentRow( } } + private static boolean areRowsWithSameContent( + RecordEqualiser equaliser, RowData prevRow, RowData currentRow) { + final RowKind currentRowKind = currentRow.getRowKind(); + if (currentRowKind == RowKind.UPDATE_AFTER) { + // setting row kind to prevRowKind to check whether the row content is the same + currentRow.setRowKind(RowKind.INSERT); + final boolean result = equaliser.equals(prevRow, currentRow); + currentRow.setRowKind(currentRowKind); + return result; + } + return equaliser.equals(prevRow, currentRow); Review Comment: added javadoc for this -- 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...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org