tvalentyn commented on PR #35647:
URL: https://github.com/apache/beam/pull/35647#issuecomment-3113335491

   (the fix was to spit the processing and logging into two statements, since 
logging doesn't return an element)
    
   ```
   
       PCollection<String> processed = main.apply("WaitOnSignal", 
Wait.on(signal))
           .apply("ProcessAfterWait", 
MapElements.into(TypeDescriptors.strings())
               .via(item -> "Processed: " + item));
   
       processed.apply("LogResults", ParDo.of(new DoFn<String, Void>() {
           @ProcessElement
           public void processElement(ProcessContext c) {
               System.out.println(c.element());
           }
       }));
   ```


-- 
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: github-unsubscr...@beam.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to