From d6ce464c9bee3ffe0d7ceae5bf7cbbd44490febd Mon Sep 17 00:00:00 2001 From: Yuya Ebihara Date: Tue, 12 Nov 2024 13:36:46 +0900 Subject: [PATCH] Rename partitions to partition_summaries in Iceberg manifests table --- docs/src/main/sphinx/connector/iceberg.md | 4 ++-- .../main/java/io/trino/plugin/iceberg/ManifestsTable.java | 2 +- .../io/trino/plugin/iceberg/BaseIcebergSystemTables.java | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/src/main/sphinx/connector/iceberg.md b/docs/src/main/sphinx/connector/iceberg.md index 505050c7854..e0343aa453a 100644 --- a/docs/src/main/sphinx/connector/iceberg.md +++ b/docs/src/main/sphinx/connector/iceberg.md @@ -1118,7 +1118,7 @@ SELECT * FROM "test_table$manifests" ``` ```text - path | length | partition_spec_id | added_snapshot_id | added_data_files_count | added_rows_count | existing_data_files_count | existing_rows_count | deleted_data_files_count | deleted_rows_count | partitions + path | length | partition_spec_id | added_snapshot_id | added_data_files_count | added_rows_count | existing_data_files_count | existing_rows_count | deleted_data_files_count | deleted_rows_count | partition_summaries ----------------------------------------------------------------------------------------------------------------+-----------------+----------------------+-----------------------+-------------------------+------------------+-----------------------------+---------------------+-----------------------------+--------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------- hdfs://hadoop-master:9000/user/hive/warehouse/test_table/metadata/faa19903-1455-4bb8-855a-61a1bbafbaa7-m0.avro | 6277 | 0 | 7860805980949777961 | 1 | 100 | 0 | 0 | 0 | 0 | {{contains_null=false, contains_nan= false, lower_bound=1, upper_bound=1},{contains_null=false, contains_nan= false, lower_bound=2021-01-12, upper_bound=2021-01-12}} ``` @@ -1167,7 +1167,7 @@ The output of the query has the following columns: - `BIGINT` - The total number of rows in all data files with status `DELETED` in the manifest file. -* - `partitions` +* - `partition_summaries` - `ARRAY(row(contains_null BOOLEAN, contains_nan BOOLEAN, lower_bound VARCHAR, upper_bound VARCHAR))` - Partition range metadata. ::: diff --git a/plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/ManifestsTable.java b/plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/ManifestsTable.java index 7b8da9a4baf..2aa95e8778d 100644 --- a/plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/ManifestsTable.java +++ b/plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/ManifestsTable.java @@ -75,7 +75,7 @@ public ManifestsTable(SchemaTableName tableName, Table icebergTable, Optional