jonathansudhakar1 commented on issue #22480: URL: https://github.com/apache/beam/issues/22480#issuecomment-7240483790
@stankiewicz, a polite follow-up on the plan in [my comment above](https://github.com/apache/beam/issues/22480#issuecomment-7016218533). I'm asking you since you added `withWriteResults()` to `SpannerIO.Write` (#40480), and I haven't heard back yet. In short, Python users of the cross-language Spanner writes (`SpannerInsert` and friends) can't get the failed mutations when they set `failure_mode=REPORT_FAILURES`, because `SpannerTransformRegistrar.WriteBuilder` returns `PDone`. They also can't set several of the Java write options. Nothing in `io/gcp/spanner.py` or the registrar has changed since I wrote the plan (re-checked on 1c20e381bc8). The main question is how failed rows should reach Python: a `PCollection<Row>` from the existing `WriteBuilder`, using the same error schema as `spanner_write:v1`, or moving the Python wrappers onto `spanner_write:v1`. If it's easier to review in steps, I can start with the additive options PR, which doesn't change any existing behavior. -- 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]
