AHeise commented on a change in pull request #11098: [FLINK-16060][task] 
Implement working StreamMultipleInputProcessor
URL: https://github.com/apache/flink/pull/11098#discussion_r383181941
 
 

 ##########
 File path: 
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/graph/StreamGraphGenerator.java
 ##########
 @@ -735,6 +739,56 @@ public StreamGraph generate() {
                return Collections.singleton(transform.getId());
        }
 
+       private <OUT> Collection<Integer> 
transformMultipleInputTransform(MultipleInputTransformation<OUT> transform) {
+               List<Collection<Integer>> allInputIds = new ArrayList<>();
+
+               for (Transformation<?> input : transform.getInputs()) {
+                       allInputIds.add(transform(input));
+               }
+
+               // the recursive call might have already transformed this
+               if (alreadyTransformed.containsKey(transform)) {
+                       return alreadyTransformed.get(transform);
+               }
+
 
 Review comment:
   Should be before transform() of inputs.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to