From 0ffab18ae4dd1b0571e1060dc94fc190fbf1a499 Mon Sep 17 00:00:00 2001 From: Nick Larsen Date: Wed, 14 Oct 2026 15:16:17 +0200 Subject: [PATCH 1/2] fix(demo/end-to-end-security): Narrow the fields used in the union Since Trino 482, the `lower_bounds` and `upper_bounds` columns of the `$files` metadata table changed from `map(integer, varchar)` to typed `row` values. This broke the union which requires the fields from the first select to match names and types for any union selects. Co-authored-by: Techassi --- demos/end-to-end-security/create-trino-tables.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/demos/end-to-end-security/create-trino-tables.yaml b/demos/end-to-end-security/create-trino-tables.yaml index 72fac530..abb73ad7 100644 --- a/demos/end-to-end-security/create-trino-tables.yaml +++ b/demos/end-to-end-security/create-trino-tables.yaml @@ -167,11 +167,11 @@ data: min(file_size_in_bytes) as min_file_size, max(file_size_in_bytes) as max_file_size from ( - select 'customer' as "table", * from lakehouse.customer_analytics."customer$files" - union all select 'customer_address' as "table", * from lakehouse.customer_analytics."customer_address$files" - union all select 'customer_demographics' as "table", * from lakehouse.customer_analytics."customer_demographics$files" - union all select 'income_band' as "table", * from lakehouse.customer_analytics."income_band$files" - union all select 'household_demographics' as "table", * from lakehouse.customer_analytics."household_demographics$files" + select 'customer' as "table", file_size_in_bytes from lakehouse.customer_analytics."customer$files" + union all select 'customer_address' as "table", file_size_in_bytes from lakehouse.customer_analytics."customer_address$files" + union all select 'customer_demographics' as "table", file_size_in_bytes from lakehouse.customer_analytics."customer_demographics$files" + union all select 'income_band' as "table", file_size_in_bytes from lakehouse.customer_analytics."income_band$files" + union all select 'household_demographics' as "table", file_size_in_bytes from lakehouse.customer_analytics."household_demographics$files" ) group by 1 ) From edacf16893f87e293a80ef9a6ead70e7eff68438 Mon Sep 17 00:00:00 2001 From: Nick Larsen Date: Wed, 14 Oct 2026 15:22:14 +0200 Subject: [PATCH 2/2] docs(trino-iceberg): Narrow the fields used in the union Since Trino 482, the `lower_bounds` and `upper_bounds` columns of the `$files` metadata table changed from `map(integer, varchar)` to typed `row` values. This broke the union which requires the fields from the first select to match names and types for any union selects. Co-authored-by: Techassi --- docs/modules/demos/pages/trino-iceberg.adoc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/modules/demos/pages/trino-iceberg.adoc b/docs/modules/demos/pages/trino-iceberg.adoc index 13588f10..cd558cbc 100644 --- a/docs/modules/demos/pages/trino-iceberg.adoc +++ b/docs/modules/demos/pages/trino-iceberg.adoc @@ -208,14 +208,14 @@ with min(file_size_in_bytes) as min_file_size, max(file_size_in_bytes) as max_file_size from ( - select 'nation' as "table", * from "nation$files" - union all select 'region' as "table", * from "region$files" - union all select 'part' as "table", * from "part$files" - union all select 'partsupp' as "table", * from "partsupp$files" - union all select 'supplier' as "table", * from "supplier$files" - union all select 'customer' as "table", * from "customer$files" - union all select 'orders' as "table", * from "orders$files" - union all select 'lineitem' as "table", * from "lineitem$files" + select 'nation' as "table", file_size_in_bytes from "nation$files" + union all select 'region' as "table", file_size_in_bytes from "region$files" + union all select 'part' as "table", file_size_in_bytes from "part$files" + union all select 'partsupp' as "table", file_size_in_bytes from "partsupp$files" + union all select 'supplier' as "table", file_size_in_bytes from "supplier$files" + union all select 'customer' as "table", file_size_in_bytes from "customer$files" + union all select 'orders' as "table", file_size_in_bytes from "orders$files" + union all select 'lineitem' as "table", file_size_in_bytes from "lineitem$files" ) group by 1 )