From 1bdee364246fb57ac4035788bb785c27cc4d81db Mon Sep 17 00:00:00 2001 From: garima-uttam Date: Sat, 28 Feb 2026 14:55:11 +0530 Subject: [PATCH 1/3] fix(docs): add ANALYZE example to Iceberg connector documentation Adds a 'Collecting table and column statistics' section to the Iceberg connector documentation, showing how to use the ANALYZE statement to collect table and column statistics, including an example with the optional 'columns' property. Fixes #27065 --- presto-docs/src/main/sphinx/connector/iceberg.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/presto-docs/src/main/sphinx/connector/iceberg.rst b/presto-docs/src/main/sphinx/connector/iceberg.rst index 6ad5f5b6fa0c8..d72ae8d01983c 100644 --- a/presto-docs/src/main/sphinx/connector/iceberg.rst +++ b/presto-docs/src/main/sphinx/connector/iceberg.rst @@ -1922,6 +1922,21 @@ Iceberg tables do not support running multiple :doc:`../sql/merge` statements on Failed to commit Iceberg update to table: Found conflicting files that can contain records matching true +.. _iceberg_analyze: + +Collecting table and column statistics +-------------------------------------- + +The Iceberg connector supports collection of table and column statistics +via the :doc:`/sql/analyze` statement:: + + ANALYZE iceberg.tpch.orders; + +To additionally collect statistics for specific columns, use the optional +``columns`` property, which is an array of column names:: + + ANALYZE iceberg.tpch.orders WITH (columns = ARRAY['orderkey', 'totalprice']); + Schema Evolution ---------------- From faf294435ec3634977046616e2e02a66f59de231 Mon Sep 17 00:00:00 2001 From: garima-uttam Date: Sat, 28 Feb 2026 15:21:41 +0530 Subject: [PATCH 2/3] :ref: with the iceberg_analyz --- presto-docs/src/main/sphinx/sql/analyze.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/presto-docs/src/main/sphinx/sql/analyze.rst b/presto-docs/src/main/sphinx/sql/analyze.rst index e1369254aa099..bdcb793bc849c 100644 --- a/presto-docs/src/main/sphinx/sql/analyze.rst +++ b/presto-docs/src/main/sphinx/sql/analyze.rst @@ -22,7 +22,7 @@ connector-specific properties. To list all available properties, run the followi Currently, this statement is only supported by the :ref:`Hive connector ` and -:doc:`Iceberg connector <../connector/iceberg>`. +:ref:`Iceberg connector `. Examples -------- From e72c8eab6c7b0c9f57e71d7bccced58fc5211a73 Mon Sep 17 00:00:00 2001 From: garima-uttam Date: Tue, 3 Mar 2026 10:14:00 +0530 Subject: [PATCH 3/3] fix(docs): remove unsupported Iceberg ANALYZE columns example --- presto-docs/src/main/sphinx/connector/iceberg.rst | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/presto-docs/src/main/sphinx/connector/iceberg.rst b/presto-docs/src/main/sphinx/connector/iceberg.rst index d72ae8d01983c..e78805456ce30 100644 --- a/presto-docs/src/main/sphinx/connector/iceberg.rst +++ b/presto-docs/src/main/sphinx/connector/iceberg.rst @@ -1928,15 +1928,10 @@ Collecting table and column statistics -------------------------------------- The Iceberg connector supports collection of table and column statistics -via the :doc:`/sql/analyze` statement:: +with the :doc:`/sql/analyze` statement:: ANALYZE iceberg.tpch.orders; -To additionally collect statistics for specific columns, use the optional -``columns`` property, which is an array of column names:: - - ANALYZE iceberg.tpch.orders WITH (columns = ARRAY['orderkey', 'totalprice']); - Schema Evolution ----------------