MartijnVisser commented on code in PR #29567:
URL: https://github.com/apache/flink/pull/29567#discussion_r4784914068
##########
flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/StreamingJoinOperator.java:
##########
@@ -399,6 +399,20 @@ protected void processElement(
}
}
+ /**
+ * Returns the full record of a retraction that is paired with an
accumulation in mini-batch
+ * mode, see {@link #retractedRecord}. It is looked up before the pair is
processed, while the
+ * accumulation has not replaced the stored record yet, and both records
of the pair use it.
+ */
+ protected RowData pairedRetraction(
Review Comment:
This conflicts with FLINK-41764, which moved the lookups into
`JoinInputLookups`. Calling `lookups.retractedRecord` here is enough. I tried
that locally: the three tests fail on master and pass with it.
##########
flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/StreamingJoinOperator.java:
##########
@@ -349,7 +349,7 @@ protected void processElement(
// skip when there is no matched rows on the other side
}
} else { // input record is retract
- // the retraction of a mini-batch pair is used as it is
+ // the retraction of a mini-batch pair is used as it is,
pairedRetraction() resolved it
Review Comment:
After the rebase this comment is the Javadoc of
`StreamingJoinLogic#lookUpRetractedRecord`, which needs the same update.
--
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]