gustavodemorais commented on code in PR #30182:
URL: https://github.com/apache/flink/pull/30182#discussion_r4772524305
##########
flink-table/flink-table-planner/src/test/java/org/apache/flink/table/planner/plan/nodes/exec/stream/DeduplicateSemanticTests.java:
##########
@@ -33,6 +33,9 @@ public List<TableTestProgram> programs() {
DeduplicateTestPrograms.INSERT_ONLY_OUTPUT,
DeduplicateTestPrograms.ON_TIME,
DeduplicateTestPrograms.COMPOSITE_AND_NULL_KEY,
- DeduplicateTestPrograms.SEQUENCE_BY);
+ DeduplicateTestPrograms.SEQUENCE_BY,
+ DeduplicateTestPrograms.UPDATING_INPUT,
+ DeduplicateTestPrograms.RETRACT_INPUT,
+ DeduplicateTestPrograms.LIVE_ROWS);
Review Comment:
Two cases aren't covered yet, both outside this file:
- A restore program for `DeduplicateLiveRowsFunction` in
`DeduplicateRestoreTestPrograms`, since its state layout (`rows` + `currentRow`
with the arrivals) is new. E.g. keep last: before the restore `+I a1`, `+I a2`;
after it `+I a3` gives `+U a3`, `-D a3` gives `+U a2`, `-D a2` gives `+U a1`.
The other variants share the existing layouts or have no state.
- A plan test in `DeduplicateTableFunctionTest` with upsert input
partitioned by its primary key (CHANGELOG_MODE), showing there's no
ChangelogNormalize, no -U requested, and DELETE in the output. The semantic
output is the same either way, so only a plan test catches a regression there.
--
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]