gustavodemorais commented on code in PR #28120:
URL: https://github.com/apache/flink/pull/28120#discussion_r3196472000


##########
flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/ptf/ToChangelogFunction.java:
##########
@@ -70,6 +75,14 @@ public ToChangelogFunction(final SpecializedContext context) 
{
         final Map<String, String> opMapping =
                 callContext.getArgumentValue(2, Map.class).orElse(null);
         this.rawOpMap = buildOpMap(opMapping);
+
+        // Drop partition keys when set semantics: the framework prepends them 
automatically.
+        // For row semantics, partitionByColumns is empty and this is a no-op 
identity projection.
+        final TableSemantics tableSemantics =
+                callContext
+                        .getTableSemantics(0)
+                        .orElseThrow(() -> new IllegalStateException("Table 
argument expected."));

Review Comment:
   removed + comment



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