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.
Topics:
To read the actual row data of a DuckLake table, use READ_DUCKLAKE.
Syntax
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.
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 = trueto use it. LIST_DUCKLAKE_FILESruns 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.
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.