Skip to content

Commit 86ad402

Browse files
committed
[Docs]Improve documentation for histograms
1 parent 0374d22 commit 86ad402

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

presto-docs/src/main/sphinx/admin/properties.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,9 +1029,9 @@ The corresponding session property is :ref:`admin/properties-session:\`\`optimiz
10291029
* **Default Value:** ``false``
10301030

10311031
Enables the optimizer to use histograms when available to perform cost estimate calculations
1032-
during query optimization. When set to ``false``, this parameter does not prevent histograms
1033-
from being collected by ``ANALYZE``, but prevents them from being used during query
1034-
optimization. This behavior can be controlled on a per-query basis using the
1032+
during query optimization. When set to ``false``, this parameter prevents histograms from
1033+
being collected by ``ANALYZE``, and also prevents the existing histograms from being used
1034+
during query optimization. This behavior can be controlled on a per-query basis using the
10351035
``optimizer_use_histograms`` session property.
10361036

10371037
Planner Properties

presto-docs/src/main/sphinx/optimizer/statistics.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ The following statistics are available in Presto:
4646

4747
The set of statistics available for a particular query depends on the connector
4848
being used and can also vary by table or even by table layout. For example, the
49-
Hive connector does not currently provide statistics on data size.
49+
Hive connector does not currently provide statistics on data size or histograms,
50+
while the Iceberg connector provides both.
5051

51-
Table statistics can be can be fetched using the :doc:`/sql/show-stats` query.
52+
Table statistics can be fetched using the :doc:`/sql/show-stats` query.
5253
For the Hive connector, refer to the :ref:`Hive connector <hive_analyze>`
5354
documentation to learn how to update table statistics.

0 commit comments

Comments
 (0)