Skip to content

Commit 7fd4ef4

Browse files
authored
Update Dataflow Spanner ReadAll sample. (GoogleCloudPlatform#1403)
1 parent 62006b7 commit 7fd4ef4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

dataflow/spanner-io/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<java.version>1.8</java.version>
3939
<maven.compiler.source>1.8</maven.compiler.source>
4040
<maven.compiler.target>1.8</maven.compiler.target>
41-
<apache_beam.version>2.3.0</apache_beam.version>
41+
<apache_beam.version>2.5.0</apache_beam.version>
4242
</properties>
4343

4444
<build>

dataflow/spanner-io/src/main/java/com/example/dataflow/SpannerReadAll.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ public static void main(String[] args) {
6969
// [START spanner_dataflow_readall]
7070
PCollection<Struct> allRecords = p.apply(SpannerIO.read()
7171
.withSpannerConfig(spannerConfig)
72+
.withBatching(false)
7273
.withQuery("SELECT t.table_name FROM information_schema.tables AS t WHERE t"
7374
+ ".table_catalog = '' AND t.table_schema = ''")).apply(
7475
MapElements.into(TypeDescriptor.of(ReadOperation.class))

0 commit comments

Comments
 (0)