Details
-
Improvement
-
Status: Open
-
P2
-
Resolution: Unresolved
-
2.34.0, 2.35.0, 2.36.0, 2.37.0, 2.38.0
-
None
-
None
Description
WriteWithResult [1] in org.apache.beam.sdk.io.jdbc.JdbcIO [2] works in different way than expected. Difference lies in implementation of approach to row mappers in WriteFn and way how processRecord method works [3]. Current implementation left for developer responsibility for processing returned result set from write operation when result can be empty, one or many. Instead result should be iterated when next value is available, like for ReadFn [4]. Issue exists since improvement: https://issues.apache.org/jira/browse/BEAM-11873 
In the attachment diff with possible solution.