Iceberg functions
Iceberg functions provide utilities for working with Apache Iceberg tables. These functions include table-valued functions for reading Iceberg data and partition transform functions that implement the Iceberg partition transforms specification.Reading Iceberg data
Read Iceberg tables ad hoc with theREAD_ICEBERG table-valued function, register them in Firebolt’s catalog with CREATE ICEBERG TABLE, or mount an entire catalog with CREATE ICEBERG DATABASE. For how to choose between these approaches and tune them, see the Iceberg guide.
Partition transform functions
Iceberg partition transform functions compute partition values according to the Iceberg specification. These functions can be used in thePARTITION BY clause of CREATE ICEBERG TABLE commands.
| year_partition | month_partition | day_partition |
|---|---|---|
| 55 | 671 | 20437 |
Available functions
Table-valued functions:READ_ICEBERG- Read data from Iceberg tables
ICEBERG_YEAR- Extract year as years from 1970ICEBERG_MONTH- Extract month as months from 1970-01-01ICEBERG_DAY- Extract day as days from 1970-01-01ICEBERG_HOUR- Extract hour as hours from 1970-01-01 00:00:00ICEBERG_BUCKET- Hash value into a bucketICEBERG_TRUNCATE- Truncate value to a width