1616#
1717
1818fixtures :
19- - name : TEMP_DIR
20- type : " tempfile.TemporaryDirectory"
19+ - name : ICEBERG_FIXTURE
20+ type : " apache_beam.yaml.integration_tests.temp_iceberg_table_with_pk"
21+ config :
22+ table_data :
23+ name : " labels"
24+ schema :
25+ type : " struct"
26+ schema-id : 0
27+ fields :
28+ - { id: 1, name: "label", required: true, type: "string" }
29+ - { id: 2, name: "rank", required: true, type: "long" }
30+ identifier-field-ids : [1]
2131
2232pipelines :
2333 - name : write
@@ -32,26 +42,26 @@ pipelines:
3242 - {label: "389a", rank: 2}
3343 - type : WriteToIceberg
3444 config :
35- table : db.labels
36- catalog_name : hadoop_catalog
45+ table : " {ICEBERG_FIXTURE[table]} "
46+ catalog_name : rest_catalog
3747 catalog_properties :
38- type : hadoop
39- warehouse : " {TEMP_DIR }"
48+ type : rest
49+ uri : " {ICEBERG_FIXTURE[api_url] }"
4050 options :
4151 project : " apache-beam-testing"
42- temp_location : " {TEMP_DIR }"
52+ temp_location : " {ICEBERG_FIXTURE[temp_dir] }"
4353
4454 - name : read
4555 pipeline :
4656 type : chain
4757 transforms :
4858 - type : ReadFromIceberg
4959 config :
50- table : db.labels
51- catalog_name : hadoop_catalog
60+ table : " {ICEBERG_FIXTURE[table]} "
61+ catalog_name : rest_catalog
5262 catalog_properties :
53- type : hadoop
54- warehouse : " {TEMP_DIR }"
63+ type : rest
64+ uri : " {ICEBERG_FIXTURE[api_url] }"
5565 - type : AssertEqual
5666 config :
5767 elements :
@@ -60,19 +70,19 @@ pipelines:
6070 - {label: "389a", rank: 2}
6171 options :
6272 project : " apache-beam-testing"
63- temp_location : " {TEMP_DIR }"
73+ temp_location : " {ICEBERG_FIXTURE[temp_dir] }"
6474
6575 - name : read_cdc_batch
6676 pipeline :
6777 type : chain
6878 transforms :
6979 - type : ReadFromIcebergCDC
7080 config :
71- table : db.labels
72- catalog_name : hadoop_catalog
81+ table : " {ICEBERG_FIXTURE[table]} "
82+ catalog_name : rest_catalog
7383 catalog_properties :
74- type : hadoop
75- warehouse : " {TEMP_DIR }"
84+ type : rest
85+ uri : " {ICEBERG_FIXTURE[api_url] }"
7686 from_timestamp : 1762819200000
7787 to_timestamp : 2078352000000
7888 filter : ' "label" = '' 11a'' or "rank" = 1'
@@ -86,19 +96,19 @@ pipelines:
8696 - {label: "37a", rank: 1}
8797 options :
8898 project : " apache-beam-testing"
89- temp_location : " {TEMP_DIR }"
99+ temp_location : " {ICEBERG_FIXTURE[temp_dir] }"
90100
91101 - name : read_cdc_streaming
92102 pipeline :
93103 type : chain
94104 transforms :
95105 - type : ReadFromIcebergCDC
96106 config :
97- table : db.labels
98- catalog_name : hadoop_catalog
107+ table : " {ICEBERG_FIXTURE[table]} "
108+ catalog_name : rest_catalog
99109 catalog_properties :
100- type : hadoop
101- warehouse : " {TEMP_DIR }"
110+ type : rest
111+ uri : " {ICEBERG_FIXTURE[api_url] }"
102112 streaming : True
103113 to_timestamp : 2078352000000
104114 filter : ' "label" = '' 11a'' or "rank" = 1'
@@ -112,4 +122,4 @@ pipelines:
112122 - {label: "37a", rank: 1}
113123 options :
114124 project : " apache-beam-testing"
115- temp_location : " {TEMP_DIR }"
125+ temp_location : " {ICEBERG_FIXTURE[temp_dir] }"
0 commit comments