Skip to main content
A table-valued function (TVF) that lists the data files that make up a DuckLake table at a given snapshot, along with per-file metadata such as record count, file size, and per-column min/max statistics. Unlike READ_DUCKLAKE, it does not read the row data itself — it returns one row per Parquet data file. LIST_DUCKLAKE_FILES is useful for inspecting a table’s physical layout, debugging pruning and partitioning, and understanding what Firebolt would scan for a query.
DuckLake support is experimental and disabled by default. Set enable_ducklake = true to use it, and expect the behavior to change. Only DuckLake catalogs hosted on PostgreSQL are supported.
Topics: To read the actual row data of a DuckLake table, use READ_DUCKLAKE.

Syntax

The parameters are identical to those of READ_DUCKLAKE.

Parameters

Using a LOCATION object

Using individual TVF parameters

Amazon S3 parameters

Use these parameters to authenticate to the object storage that holds the Parquet data files. They apply only to the individual-parameter call shape.

Return type

The result is a table with one row per Parquet data file in the requested snapshot. The leading columns are fixed; the trailing columns depend on the table’s schema and partitioning. Fixed columns: Per-column statistics columns: For every column in the table, two nullable columns are appended, holding the per-file minimum and maximum value:
  • min_<column_name>
  • max_<column_name>
Partition value columns: For every partition column, a partition_value_<column_name>_<field_id> column holds the file’s partition value.

Enabling DuckLake

DuckLake support is disabled by default. Enable it for your session before you query DuckLake tables:
LIST_DUCKLAKE_FILES runs on a user engine. It is not supported on the system engine.

Examples

Listing files using a LOCATION

Inspecting file sizes and record counts

Listing files using individual parameters

Limitations

  • DuckLake support is disabled by default. Set enable_ducklake = true to use it.
  • LIST_DUCKLAKE_FILES runs on a user engine; the system engine is not supported.
  • Only PostgreSQL DuckLake catalogs are supported. The data files must be Parquet.
  • The table’s column types must be readable by Firebolt. See Supported data types.