Skip to content

Commit

Permalink
Update Dataflow Spanner ReadAll sample. (GoogleCloudPlatform#1403)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsimonweb authored May 3, 2019
1 parent 62006b7 commit 7fd4ef4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dataflow/spanner-io/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<java.version>1.8</java.version>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<apache_beam.version>2.3.0</apache_beam.version>
<apache_beam.version>2.5.0</apache_beam.version>
</properties>

<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public static void main(String[] args) {
// [START spanner_dataflow_readall]
PCollection<Struct> allRecords = p.apply(SpannerIO.read()
.withSpannerConfig(spannerConfig)
.withBatching(false)
.withQuery("SELECT t.table_name FROM information_schema.tables AS t WHERE t"
+ ".table_catalog = '' AND t.table_schema = ''")).apply(
MapElements.into(TypeDescriptor.of(ReadOperation.class))
Expand Down

0 comments on commit 7fd4ef4

Please sign in to comment.