rionmonster commented on code in PR #29583:
URL: https://github.com/apache/flink/pull/29583#discussion_r4486646106


##########
flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/StreamingMultiJoinOperator.java:
##########
@@ -980,4 +1201,24 @@ private void initializeJoinConditions() throws Exception {
             }
         }
     }
+
+    /** Returns whether the input may update a record without retracting it 
first. */
+    private static boolean isUpsertOrUnknown(@Nullable RuntimeChangelogMode 
inputChangelogMode) {
+        // compiled plans before Flink 2.4 do not contain the changelog mode, 
and handling
+        // their inputs as upsert is always correct
+        if (inputChangelogMode == null) {

Review Comment:
   Good call here. I'm good with returning false for modes that we don't 
recognize in both of the existing helpers. This _should_ force the plans to 
behave in alignment with the version that compiled them (and we'll be able to 
drop the pre-2.4 restoration test too).



-- 
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]

Reply via email to