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.
To read the actual row data of a DuckLake table, use READ_DUCKLAKE.
Syntax
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.
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_<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.
Related
- READ_DUCKLAKE — Read the row data of a DuckLake table.
- CREATE LOCATION (DuckLake) — Store the catalog connection string and credentials in a reusable location object instead of passing them on every call.
- DuckLake functions overview — All DuckLake functions in one place.
- Query DuckLake tables with Firebolt Core — A step-by-step guide to setting up a DuckLake catalog and reading it from Firebolt.