You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/06/04 22:43:11 UTC

[GitHub] [beam] damccorm opened a new issue, #21329: Add "Write.withResults()" for all Java SDK IOs

damccorm opened a new issue, #21329:
URL: https://github.com/apache/beam/issues/21329

   Currently, by default, a "Write" transform is considered as a final `PTransform` in a pipeline and it returns `PDone` that can't be used later for next pipeline stages. 
   
   Though, sometimes it's needed to use the results of write operation as input `PCollection` downstream of pipeline and some IOs already support this. For example, `JdbcIO.Write` has the methods `withResults()` and `withWriteResults()` that returns a `PTransform` with output `PCollection<>` of write results and it can be used to analyse the results or, along with `Wait` transform, to write into the second database only if writes into the first one were finished, like this:
   
   ```
   
   PCollection<Void> firstWriteResults = data.apply(JdbcIO.write()
        .withDataSourceConfiguration(CONF_DB_1).withResults());
   data.apply(Wait.on(firstWriteResults))
   
       .apply(JdbcIO.write().withDataSourceConfiguration(CONF_DB_2));
   
   ```
   
   
   So, it would be useful to add a `WriteWithResults` transform for other IOs that can be used in the same way.
   
   Imported from Jira [BEAM-13584](https://issues.apache.org/jira/browse/BEAM-13584). Original Jira may contain additional context.
   Reported by: aromanenko.


-- 
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-unsubscribe@beam.apache.org.apache.org

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


[GitHub] [beam] damccorm commented on issue #21329: Add "Write.withResults()" for all Java SDK IOs

Posted by GitBox <gi...@apache.org>.
damccorm commented on issue #21329:
URL: https://github.com/apache/beam/issues/21329#issuecomment-1146696304

   The following subtask(s) are associated with this issue: #21330


-- 
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-unsubscribe@beam.apache.org

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