You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by de...@apache.org on 2026/07/29 17:49:36 UTC

(beam) 02/02: add new delta lake to iceberg blueprint

This is an automated email from the ASF dual-hosted git repository.

derrickaw pushed a commit to branch 20260729_addDL2IceIT
in repository https://gitbox.apache.org/repos/asf/beam.git

commit 67062b09ff1d7d6091b29fceea35f23c14ccecfa
Author: Derrick Williams <de...@google.com>
AuthorDate: Wed Jul 29 17:49:05 2026 +0000

    add new delta lake to iceberg blueprint
---
 .../blueprints/delta_lake_to_iceberg.yaml          | 71 ++++++++++++++++++++++
 1 file changed, 71 insertions(+)

diff --git a/sdks/python/apache_beam/yaml/extended_tests/blueprints/delta_lake_to_iceberg.yaml b/sdks/python/apache_beam/yaml/extended_tests/blueprints/delta_lake_to_iceberg.yaml
new file mode 100644
index 00000000000..ae54d0d8d8b
--- /dev/null
+++ b/sdks/python/apache_beam/yaml/extended_tests/blueprints/delta_lake_to_iceberg.yaml
@@ -0,0 +1,71 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+fixtures:
+  - name: DELTA_TABLE
+    type: "apache_beam.yaml.integration_tests.temp_delta_table"
+  - name: ICEBERG_FIXTURE
+    type: "apache_beam.yaml.integration_tests.temp_iceberg_table_with_pk"
+    config:
+      table_data:
+        name: "delta_lake_migration"
+        schema:
+          type: "struct"
+          schema-id: 0
+          fields:
+            - { id: 1, name: "name", required: true, type: "string" }
+          identifier-field-ids: [1]
+
+pipelines:
+  # Pipeline 1: Read from Delta Lake and write to Iceberg
+  - pipeline:
+      type: chain
+      transforms:
+        - type: ReadFromDelta
+          config:
+            table: "{DELTA_TABLE}"
+        - type: WriteToIceberg
+          config:
+            table: "{ICEBERG_FIXTURE[table]}"
+            catalog_name: rest_catalog
+            catalog_properties:
+              type: rest
+              uri: "{ICEBERG_FIXTURE[api_url]}"
+    options:
+      project: "apache-beam-testing"
+      temp_location: "{ICEBERG_FIXTURE[temp_dir]}"
+
+  # Pipeline 2: Read from Iceberg and verify content
+  - pipeline:
+      type: chain
+      transforms:
+        - type: ReadFromIceberg
+          config:
+            table: "{ICEBERG_FIXTURE[table]}"
+            catalog_name: rest_catalog
+            catalog_properties:
+              type: rest
+              uri: "{ICEBERG_FIXTURE[api_url]}"
+        - type: AssertEqual
+          config:
+            elements:
+              - {name: "a"}
+              - {name: "b"}
+              - {name: "c"}
+    options:
+      project: "apache-beam-testing"
+      temp_location: "{ICEBERG_FIXTURE[temp_dir]}"