|
9 | 9 | (and (= id 1) (= region "us-east") (= amount 100.0)) |
10 | 10 | (and (= id 2) (= region "eu-west") (= amount 250.5)))))))) |
11 | 11 | (reads |
12 | | - ;; Minimal export |
| 12 | + ;; Minimal export with gnf defs as column source |
13 | 13 | (export_iceberg |
14 | 14 | (export_iceberg_config |
15 | 15 | (iceberg_locator |
|
21 | 21 | (properties) |
22 | 22 | (auth_properties)) |
23 | 23 | (columns |
24 | | - (iceberg_column "id" :id INT false) |
25 | | - (iceberg_column "region" :region STRING false) |
26 | | - (iceberg_column "amount" :amount FLOAT false)) |
27 | | - (create_table_properties))) |
| 24 | + (source_gnf_defs :id :region :amount) |
| 25 | + (target_columns |
| 26 | + (iceberg_column "id" INT false) |
| 27 | + (iceberg_column "region" STRING false) |
| 28 | + (iceberg_column "amount" FLOAT false))) |
| 29 | + (table_properties))) |
28 | 30 |
|
29 | | - ;; Full export with scope, property maps, and trailing export options |
| 31 | + ;; Full export with scope, property maps, table source, and trailing export options |
30 | 32 | (export_iceberg |
31 | 33 | (export_iceberg_config |
32 | 34 | (iceberg_locator |
|
41 | 43 | (prop "credential" "my-credential") |
42 | 44 | (prop "token" "secret-token-123"))) |
43 | 45 | (columns |
44 | | - (iceberg_column "id" :id INT false) |
45 | | - (iceberg_column "region" :region STRING false) |
46 | | - (iceberg_column "amount" :amount FLOAT false)) |
47 | | - (create_table_properties (prop "write.format.default" "parquet")) |
| 46 | + (source_table_def :sales) |
| 47 | + (target_columns |
| 48 | + (iceberg_column "id" INT false) |
| 49 | + (iceberg_column "region" STRING false) |
| 50 | + (iceberg_column "amount" FLOAT false))) |
| 51 | + (table_properties (prop "write.format.default" "parquet")) |
48 | 52 | {:prefix "part" :target_file_size_bytes 268435456 :compression "SNAPPY"})) |
49 | 53 |
|
50 | 54 | ;; Empty namespace on the locator |
|
59 | 63 | (properties) |
60 | 64 | (auth_properties)) |
61 | 65 | (columns |
62 | | - (iceberg_column "id" :id INT false)) |
63 | | - (create_table_properties)))))) |
| 66 | + (source_gnf_defs :id) |
| 67 | + (target_columns |
| 68 | + (iceberg_column "id" INT false))) |
| 69 | + (table_properties)))))) |
0 commit comments