beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Work logged] (BEAM-4061) Chaining SpannerIO#write() transforms
Date Tue, 01 May 2018 19:10:00 GMT


ASF GitHub Bot logged work on BEAM-4061:

                Author: ASF GitHub Bot
            Created on: 01/May/18 19:09
            Start Date: 01/May/18 19:09
    Worklog Time Spent: 10m 
      Work Description: mairbek commented on a change in pull request #4264: [BEAM-4061] Introduced

 File path: sdks/java/io/google-cloud-platform/src/test/java/org/apache/beam/sdk/io/gcp/spanner/
 @@ -128,19 +140,72 @@ public void testWrite() throws Exception {
-    DatabaseClient databaseClient =
-        spanner.getDatabaseClient(
-            DatabaseId.of(
-                project, options.getInstanceId(), databaseName));
+    PipelineResult result =;
+    result.waitUntilFinish();
+    assertThat(result.getState(), is(PipelineResult.State.DONE));
+    assertThat(countNumberOfRecords(), equalTo((long) numRecords));
 Review comment:
   Isn't it better for the test to compute that without going through beam? `testSequentialWrite`
already tests `Wait.on`.

This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

Issue Time Tracking

    Worklog Id:     (was: 97194)
    Time Spent: 1.5h  (was: 1h 20m)

> Chaining SpannerIO#write() transforms
> -------------------------------------
>                 Key: BEAM-4061
>                 URL:
>             Project: Beam
>          Issue Type: Bug
>          Components: io-java-gcp
>            Reporter: Mairbek Khadikov
>            Assignee: Mairbek Khadikov
>            Priority: Major
>             Fix For: 2.5.0
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
> It should be possible to chain several Cloud Spanner writes. In practice, we can leverage
Wait.on transform by returning a result object from SpannerIO#write.
> One particular example, when this feature is useful is full database import. When data
in parent tables should be injected before interleaved tables. See more about table hierarchies
in Spanner here

This message was sent by Atlassian JIRA

View raw message