Skip to content
Iceberg Specification, Schema & Internals Last updated: May 29, 2026

Iceberg Metadata Table Files

A virtual system table in Apache Iceberg that lists all active data and delete files, exposing their file paths, sizes, record counts, and column statistics.

iceberg files tablesystem metadata filesfile stats query

Iceberg Metadata Table Files

The Iceberg Metadata Table Files is a virtual system table exposed by query engines to describe the physical layout of a table. It lists all active data and delete files for the current table snapshot, exposing details like file paths, file sizes, column metrics, and min/max statistics. Querying this table allows data engineers to inspect file size distributions, identify small file issues, and verify metrics.

Querying the Files Table

To inspect the physical file metadata, append the .files suffix to the table name:

/* Query the virtual files metadata table in Spark SQL */
SELECT file_path, file_format, record_count, file_size_in_bytes
FROM prod.db.sales_table.files;

Table Schema and Fields

The files table returns the following schema:

Data teams use this metadata to calculate file size averages, identify partition distribution skews, and verify column-level statistics.

๐Ÿ“š Go Deeper on Apache Iceberg

Alex Merced has authored three hands-on books covering Apache Iceberg, the Agentic Lakehouse, and modern data architecture. Pick up a copy to master the full ecosystem.

โ† Back to Iceberg Knowledge Base