# Apache Iceberg Table Statistics: NDV, Puffin and Query Plans

DevFeed: [Apache Iceberg Table Statistics: NDV, Puffin and Query Plans](<https://devfeed.tech/articles/apache-iceberg-table-statistics-ndv-puffin-and-query-plans-85690.md>)

Original publisher: [Read original article](<https://www.dremio.com/blog/apache-iceberg-table-statistics/>)

Author: Alex Merced

Published: 2026-10-12T19:28:22Z

Content type: tutorial

Language: en

Sources: [Dremio](<https://devfeed.tech/sources/dremio.md>)

Topics: [Apache Iceberg](<https://devfeed.tech/topics/apache-iceberg.md>), [table-partitioning](<https://devfeed.tech/topics/table-partitioning.md>), [Statistics](<https://devfeed.tech/topics/statistics.md>)

Tags: [analytics](<https://devfeed.tech/tags/analytics.md>), [apache-iceberg](<https://devfeed.tech/tags/apache-iceberg.md>), [count](<https://devfeed.tech/tags/count.md>), [data-lakehouse](<https://devfeed.tech/tags/data-lakehouse.md>), [datasketches](<https://devfeed.tech/tags/datasketches.md>), [distribution](<https://devfeed.tech/tags/distribution.md>), [dremio-blog-open-data-insights](<https://devfeed.tech/tags/dremio-blog-open-data-insights.md>), [query](<https://devfeed.tech/tags/query.md>), [statistics](<https://devfeed.tech/tags/statistics.md>)

## AI overview

The article explains how Apache Iceberg's automatically recorded per-file bounds help prune scans, while explicitly computed table-level NDV statistics in Puffin files help query optimizers estimate join sizes and choose join order. It outlines Spark procedures for computing table and partition statistics, recommends refreshing them as data distributions change, and advises checking whether the query engine uses them by comparing plans before and after computation.

## Source excerpt

Iceberg keeps per-file bounds automatically but table-level NDV statistics only when you compute them. Why that decides join order, and how to keep them fresh. The post Apache Iceberg Table Statistics: NDV, Puffin and Query Plans appeared first on Dremio.