Skip to main content

iceberg Table Function

Provides a read-only table-like interface to Apache Iceberg tables in Amazon S3.


iceberg(url [,aws_access_key_id, aws_secret_access_key] [,format] [,structure])


  • url — Bucket url with the path to an existing Iceberg table in S3.
  • aws_access_key_id, aws_secret_access_key - Long-term credentials for the AWS account user. You can use these to authenticate your requests. These parameters are optional. If credentials are not specified, they are used from the ClickHouse configuration. For more information see Using S3 for Data Storage.
  • format — The format of the file. By default Parquet is used.
  • structure — Structure of the table. Format 'column1_name column1_type, column2_name column2_type, ...'.

Engine parameters can be specified using Named Collections.

Returned value

A table with the specified structure for reading data in the specified Iceberg table in S3.


SELECT * FROM iceberg('', 'test', 'test')

ClickHouse currently supports reading v1 (v2 support is coming soon!) of the Iceberg format via the iceberg table function and Iceberg table engine.

Defining a named collection

Here is an example of configuring a named collection for storing the URL and credentials:

SELECT * FROM iceberg(iceberg_conf, filename = 'test_table')
DESCRIBE iceberg(iceberg_conf, filename = 'test_table')

See Also