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 may change. Only DuckLake catalogs hosted on PostgreSQL are supported.
To read the actual row data of a DuckLake table, use READ_DUCKLAKE.

Syntax

When you pass AWS_ROLE_ARN, set the optional AWS_ROLE_EXTERNAL_ID to add a customer-controlled condition to your role’s trust policy.
For role-based AWS access you can additionally set an external ID. An external ID is a value you choose and control that AWS checks when Firebolt assumes your role, adding a second condition on top of your account’s unique IAM principal. Configuring one is a recommended best practice. See IAM roles.
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.

Examples

Listing files using a LOCATION

Inspecting file sizes and record counts

Listing files using individual parameters

Limitations

  • 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.