Skip to main content
For an overview of querying, tuning, and exporting Iceberg tables, see the Iceberg guide.

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 the READ_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 the PARTITION BY clause of CREATE ICEBERG TABLE commands.
SELECT 
  iceberg_year('2025-12-15'::DATE) AS year_partition,
  iceberg_month('2025-12-15'::DATE) AS month_partition,
  iceberg_day('2025-12-15'::DATE) AS day_partition;
Returns:
year_partitionmonth_partitionday_partition
5567120437

Available functions

Table-valued functions: Partition transform functions: