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
You can register an Iceberg table in Firebolt’s catalog usingCREATE ICEBERG TABLE and then query it like a regular table:
READ_ICEBERG table-valued function to query Iceberg tables ad hoc without registering them:
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