Skip to content

Commit 67062b0

Browse files
committed
add new delta lake to iceberg blueprint
1 parent 7676046 commit 67062b0

1 file changed

Lines changed: 71 additions & 0 deletions

File tree

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one or more
3+
# contributor license agreements. See the NOTICE file distributed with
4+
# this work for additional information regarding copyright ownership.
5+
# The ASF licenses this file to You under the Apache License, Version 2.0
6+
# (the "License"); you may not use this file except in compliance with
7+
# the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
18+
fixtures:
19+
- name: DELTA_TABLE
20+
type: "apache_beam.yaml.integration_tests.temp_delta_table"
21+
- name: ICEBERG_FIXTURE
22+
type: "apache_beam.yaml.integration_tests.temp_iceberg_table_with_pk"
23+
config:
24+
table_data:
25+
name: "delta_lake_migration"
26+
schema:
27+
type: "struct"
28+
schema-id: 0
29+
fields:
30+
- { id: 1, name: "name", required: true, type: "string" }
31+
identifier-field-ids: [1]
32+
33+
pipelines:
34+
# Pipeline 1: Read from Delta Lake and write to Iceberg
35+
- pipeline:
36+
type: chain
37+
transforms:
38+
- type: ReadFromDelta
39+
config:
40+
table: "{DELTA_TABLE}"
41+
- type: WriteToIceberg
42+
config:
43+
table: "{ICEBERG_FIXTURE[table]}"
44+
catalog_name: rest_catalog
45+
catalog_properties:
46+
type: rest
47+
uri: "{ICEBERG_FIXTURE[api_url]}"
48+
options:
49+
project: "apache-beam-testing"
50+
temp_location: "{ICEBERG_FIXTURE[temp_dir]}"
51+
52+
# Pipeline 2: Read from Iceberg and verify content
53+
- pipeline:
54+
type: chain
55+
transforms:
56+
- type: ReadFromIceberg
57+
config:
58+
table: "{ICEBERG_FIXTURE[table]}"
59+
catalog_name: rest_catalog
60+
catalog_properties:
61+
type: rest
62+
uri: "{ICEBERG_FIXTURE[api_url]}"
63+
- type: AssertEqual
64+
config:
65+
elements:
66+
- {name: "a"}
67+
- {name: "b"}
68+
- {name: "c"}
69+
options:
70+
project: "apache-beam-testing"
71+
temp_location: "{ICEBERG_FIXTURE[temp_dir]}"

0 commit comments

Comments
 (0)