Skip to content

Commit 7b8be50

Browse files
docs(samples): Update Dataflow Iceberg samples for Beam 2.58.0 (GoogleCloudPlatform#9441)
1 parent 85b69f3 commit 7b8be50

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

dataflow/snippets/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<maven.compiler.source>11</maven.compiler.source>
3838
<maven.compiler.target>11</maven.compiler.target>
3939
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
40-
<apache_beam.version>2.57.0</apache_beam.version>
40+
<apache_beam.version>2.58.0</apache_beam.version>
4141
<slf4j.version>2.0.12</slf4j.version>
4242
<parquet.version>1.14.0</parquet.version>
4343
<iceberg.version>1.4.2</iceberg.version>

dataflow/snippets/src/main/java/com/example/dataflow/ApacheIcebergRead.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ public static void main(String[] args) {
6666

6767
// Configure the Iceberg source I/O
6868
Map catalogConfig = ImmutableMap.<String, Object>builder()
69-
.put("catalog_name", options.getCatalogName())
70-
.put("warehouse_location", options.getWarehouseLocation())
71-
.put("catalog_type", CATALOG_TYPE)
69+
.put("warehouse", options.getWarehouseLocation())
70+
.put("type", CATALOG_TYPE)
7271
.build();
7372

7473
ImmutableMap<String, Object> config = ImmutableMap.<String, Object>builder()
7574
.put("table", options.getTableName())
76-
.put("catalog_config", catalogConfig)
75+
.put("catalog_name", options.getCatalogName())
76+
.put("catalog_properties", catalogConfig)
7777
.build();
7878

7979
// Build the pipeline.

dataflow/snippets/src/main/java/com/example/dataflow/ApacheIcebergWrite.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,14 @@ public static void main(String[] args) {
7474

7575
// Configure the Iceberg source I/O
7676
Map catalogConfig = ImmutableMap.<String, Object>builder()
77-
.put("catalog_name", options.getCatalogName())
78-
.put("warehouse_location", options.getWarehouseLocation())
79-
.put("catalog_type", CATALOG_TYPE)
77+
.put("warehouse", options.getWarehouseLocation())
78+
.put("type", CATALOG_TYPE)
8079
.build();
8180

8281
ImmutableMap<String, Object> config = ImmutableMap.<String, Object>builder()
8382
.put("table", options.getTableName())
84-
.put("catalog_config", catalogConfig)
83+
.put("catalog_name", options.getCatalogName())
84+
.put("catalog_properties", catalogConfig)
8585
.build();
8686

8787
// Build the pipeline.

0 commit comments

Comments
 (0)