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

 ##########
 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:
   I'm not sure. I was mostly copying the logic from 
`transformTwoInputTransform` (and also the same pattern is in 
`transformOneInputTransform` as well).
   
   However it looks like this might be because of cyclic dependencies. 
   
   Do you think this is a bug in all of those places?

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