aromanenko-dev commented on code in PR #24711:
URL: https://github.com/apache/beam/pull/24711#discussion_r1057785612


##########
runners/spark/3/src/main/java/org/apache/beam/runners/spark/structuredstreaming/translation/batch/DoFnPartitionIteratorFactory.java:
##########
@@ -147,7 +146,9 @@ DoFnRunners.OutputManager 
outputManager(Deque<WindowedValue<OutT>> buffer) {
       return new DoFnRunners.OutputManager() {
         @Override
         public <T> void output(TupleTag<T> tag, WindowedValue<T> output) {
-          buffer.add((WindowedValue<OutT>) output);
+          if (mainOutput.equals(tag)) {

Review Comment:
   Please, add a comment about this behaviour since it's not obvious.



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