snuyanzin commented on code in PR #26893:
URL: https://github.com/apache/flink/pull/26893#discussion_r2272472418
##########
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:
or we can set and unset it always...
--
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]