How ClickHouse accesses Iceberg tables
| Access method | Read | Write | Notes |
|---|---|---|---|
iceberg table functions | ✅ | ✅ | icebergS3 (alias iceberg, also used for GCS and other S3-compatible storage), icebergAzure, icebergHDFS, icebergLocal |
icebergCluster table functions | ✅ | — | Distributed reads across the nodes of a cluster: icebergS3Cluster, icebergAzureCluster, icebergHDFSCluster, icebergLocalCluster |
Iceberg table engine | ✅ | ✅ | IcebergS3, IcebergAzure, IcebergHDFS, IcebergLocal; can read over parallel replicas |
DataLakeCatalog database engine | ✅ | ✅ | Exposes the tables of an Iceberg catalog as a ClickHouse database. See Catalogs. |
| Named collections | ✅ | ✅ | Connection parameters can be stored in a named collection |
INSERT, ALTER TABLE, DELETE, UPDATE, DROP PARTITION, maintenance commands) requires the setting allow_insert_into_iceberg = 1. In the tables below, ”✅” in the Write column means the operation is available under this setting. Operations that need an additional experimental setting are marked “⚠️” with the setting named in the notes.
Format versions
| Feature | Read | Write | Notes |
|---|---|---|---|
| Format version 1 | ✅ | ⚠️ | Tables can be created with the table setting iceberg_format_version = 1 and appended to. DELETE, UPDATE, DROP PARTITION, compaction and maintenance commands require version 2 or later. |
| Format version 2 | ✅ | ✅ | Default version for tables created by ClickHouse. All write operations are supported. |
| Format version 3 | ✅ | ⚠️ | Read support covers deletion vectors, row lineage, default values and the new data types. Tables can be created with iceberg_format_version = 3, and INSERT assigns row IDs. ALTER TABLE ... DELETE, ALTER TABLE ... UPDATE, DROP PARTITION, compaction and manifest compaction aren’t yet supported for version 3. |
| Format version 4 | ❌ | ❌ | Not supported: the specification isn’t finalized. |
Data types
In this table, Write shows whether ClickHouse can create columns of the type, withCREATE TABLE or ALTER TABLE, and write their values.
| Iceberg type | Spec | ClickHouse type on read | Read | Write | Notes |
|---|---|---|---|---|---|
boolean | v1 | Bool | ✅ | ✅ | |
int | v1 | Int32 | ✅ | ✅ | When writing, Int8, Int16, UInt8 and UInt16 columns are widened to int. |
long | v1 | Int64 | ✅ | ✅ | When writing, UInt32 columns are widened to long. UInt64 can’t be written. |
float, double | v1 | Float32, Float64 | ✅ | ✅ | |
decimal(P, S) | v1 | Decimal(P, S) | ✅ | ✅ | |
date | v1 | Date32 | ✅ | ✅ | Written from Date and Date32. |
time | v1 | Int64 (microseconds since midnight) | ✅ | ❌ | Columns of type Time and Time64 can’t be created in Iceberg tables. |
timestamp | v1 | DateTime64(6) | ✅ | ✅ | Written from DateTime and DateTime64 with microsecond precision. |
timestamptz | v1 | DateTime64(6, tz) | ✅ | ❌ | The time zone is set by the table setting iceberg_timezone_for_timestamptz (default UTC). DateTime64 columns with a time zone are created as timestamp. |
timestamp_ns, timestamptz_ns | v3 | DateTime64(9), DateTime64(9, tz) | ✅ | ❌ | DateTime64(9) columns are created as timestamp with microsecond precision. |
string | v1 | String | ✅ | ✅ | |
uuid | v1 | UUID | ✅ | ✅ | |
fixed(L) | v1 | FixedString(L) | ✅ | ❌ | FixedString columns can’t be created in Iceberg tables. |
binary | v1 | String | ✅ | ❌ | String columns are always created as string. |
variant | v3 | Dynamic | ✅ | ✅ | Unshredded variants in Parquet and Avro data files are read; shredded variants (typed_value) aren’t supported. Written from Dynamic and Variant columns into version 3 tables (since 26.11). |
geometry, geography | v3 | Geometry | ✅ | ⚠️ | Requires allow_geo_types_in_iceberg = 1. Geometry columns are written as geometry; geography can’t be written. |
unknown | v3 | Nullable(Nothing) | ✅ | ❌ | Always NULL. Can be promoted to any primitive type (since 26.11). |
struct | v1 | Tuple | ✅ | ✅ | Named tuples. |
list | v1 | Array | ✅ | ✅ | |
map | v1 | Map | ✅ | ✅ | |
| Required and optional fields | v1 | Nullable for optional primitives | ✅ | ✅ | Nullable columns are written as optional fields, other columns as required fields. |
Schema
| Feature | Spec | Read | Write | Notes |
|---|---|---|---|---|
| Column projection by field ID | v1 | ✅ | ✅ | Parquet, ORC and Avro data files are matched to the schema by field ID; data files written by ClickHouse carry field IDs. Files without field IDs are matched by column name. |
Name mapping (schema.name-mapping.default) | v1 | ❌ | ❌ | |
| Add, drop, rename and reorder columns | v1 | ✅ | ⚠️ | Read: any change, including nested fields of structs, lists and maps. Write: ALTER TABLE ... ADD COLUMN (the new column must be Nullable, Nullable(Tuple), Variant or Dynamic), DROP COLUMN and RENAME COLUMN on top-level columns. Changing nested fields isn’t supported for writes. |
Type promotion: int → long, float → double, wider decimal precision | v1 | ✅ | ✅ | Written with ALTER TABLE ... MODIFY COLUMN on top-level columns. |
| Type promotion: required → optional | v1 | ✅ | ✅ | Optional → required is refused, as the specification requires. |
Type promotion: unknown → any primitive type | v3 | ✅ | — | Since 26.11. |
Type promotion: date → timestamp, timestamp_ns | v3 | ❌ | ❌ | |
Default values: initial-default | v3 | ✅ | ❌ | Missing columns of older data files are filled with the field’s initial-default, also in filters. |
Default values: write-default | v3 | — | ❌ | |
Identifier fields (identifier-field-ids) | v2 | ✅ | ⚠️ | Validated on read. ClickHouse refuses to drop an identifier column or make it Nullable, but doesn’t define identifier fields. |
Column comments (doc) | v1 | ❌ | ❌ | |
| Validation of metadata against the specification | v1 | ✅ | — | Metadata that violates the specification is rejected with ICEBERG_SPECIFICATION_VIOLATION. |
Partitioning
| Feature | Spec | Read | Write | Notes |
|---|---|---|---|---|
identity transform | v1 | ✅ | ✅ | |
year, month, day, hour transforms | v1 | ✅ | ✅ | Implemented by the functions icebergYear, icebergMonth, icebergDay and icebergHour. |
bucket[N] transform | v1 | ✅ | ✅ | Implemented by the functions icebergBucket and icebergHash. |
truncate[W] transform | v1 | ✅ | ✅ | Implemented by the function icebergTruncate. |
void transform | v1 | ✅ | ⚠️ | Tables with void partition fields can be written to, but CREATE TABLE ... PARTITION BY can’t declare them. |
Multi-argument transforms (source-ids) | v3 | ❌ | ❌ | |
| Hidden partitioning | v1 | ✅ | ✅ | Filters on source columns prune partitions. |
| Partitioned table creation | v1 | — | ✅ | CREATE TABLE ... PARTITION BY with transforms, one source column per field. |
| Writing partitioned data | v1 | — | ✅ | ClickHouse computes the partition values. A single INSERT writes at most iceberg_insert_max_partitions partitions (default 100). |
| Partition evolution | v1 | ✅ | ⚠️ | Read: tables with several partition specs. Write: inserts use the current default spec. Changing the partition spec from ClickHouse isn’t supported. |
| Partition pruning | v1 | ✅ | — | Enabled by default (use_iceberg_partition_pruning). |
| Manifest list pruning with partition summaries | v1 | ✅ | ✅ | Enabled by default (use_iceberg_manifest_list_partition_pruning); ClickHouse writes partition summaries. |
ALTER TABLE ... DROP PARTITION | — | — | ✅ | Version 2 tables with a single partition spec. See DROP PARTITION. |
Sort orders
| Feature | Spec | Read | Write | Notes |
|---|---|---|---|---|
| Sort order metadata | v1 | ✅ | ✅ | The table’s sort order becomes the sorting key of the ClickHouse table. CREATE TABLE ... ORDER BY defines the sort order, including transforms. |
| Reading in order | v1 | ✅ | — | optimize_read_in_order uses the sort order of Parquet data files that carry the current sort_order_id. |
| Writing sorted data files | v1 | — | ✅ | INSERT sorts data files by the table’s sort order and tags them with its sort_order_id, within the memory limit iceberg_insert_max_sort_buffer_bytes (since 26.12). |
Row-level deletes and updates
| Feature | Spec | Read | Write | Notes |
|---|---|---|---|---|
| Position delete files | v2 | ✅ | ✅ | ALTER TABLE ... DELETE, ALTER TABLE ... UPDATE and DELETE FROM write position delete files. |
| Equality delete files | v2 | ✅ | ❌ | |
Deletion vectors (Puffin deletion-vector-v1) | v3 | ✅ | ❌ | ClickHouse doesn’t modify version 3 tables with DELETE or UPDATE. |
| Merge-on-read | v2 | ✅ | ✅ | The only write mode used by ClickHouse. |
| Copy-on-write | v2 | ✅ | ❌ | Tables written in copy-on-write mode by other engines are read normally. The table properties write.delete.mode, write.update.mode and write.merge.mode are not honored. |
ALTER TABLE ... DELETE, DELETE FROM | — | — | ✅ | Version 2 tables with Parquet data files. See Deleting data. |
ALTER TABLE ... UPDATE | — | — | ✅ | Version 2 tables with Parquet data files. |
MERGE, upserts | — | — | ❌ | |
INSERT OVERWRITE, TRUNCATE | — | — | ❌ |
Row lineage
| Feature | Spec | Read | Write | Notes |
|---|---|---|---|---|
_row_id | v3 | ✅ | ✅ | Exposed as a virtual column. INSERT assigns first-row-id to new data files and advances the table’s next-row-id, also for files written before the table was upgraded to version 3. |
_last_updated_sequence_number | v3 | ✅ | ✅ | Exposed as a virtual column. |
Writes
| Feature | Read | Write | Notes |
|---|---|---|---|
| Create an empty table | — | ✅ | CREATE TABLE with a column list and optional PARTITION BY and ORDER BY. See Creating a table. |
INSERT (append) | — | ✅ | Beta since 26.2. See Inserting data. |
| Data file formats | ✅ | ⚠️ | Parquet, ORC and Avro data files are read and can be written by INSERT. DELETE and UPDATE require all data files to be Parquet. The write format is taken from the table engine arguments; the table property write.format.default isn’t honored. |
| Optimistic concurrency | — | ✅ | Commits use a conditional write of the next metadata file or a catalog commit. A conflicting INSERT is rebased on the new snapshot and retried with exponential backoff, reusing the files it has already written. |
| Multi-table transactions | — | ❌ | |
DROP TABLE | — | ✅ | Data files are kept unless iceberg_delete_data_on_drop = 1. |
| Materialized views writing into Iceberg tables | — | ✅ | Including refreshable materialized views with incremental refresh. |
Snapshots and time travel
| Feature | Spec | Read | Write | Notes |
|---|---|---|---|---|
| Time travel by snapshot ID | v1 | ✅ | — | Setting iceberg_snapshot_id. See Time travel. |
| Time travel by timestamp | v1 | ✅ | — | Setting iceberg_timestamp_ms. |
| Branches and tags | v2 | ⚠️ | ❌ | Reading a branch or a tag by name isn’t supported; a reference can be read through its snapshot ID with iceberg_snapshot_id. ClickHouse commits only to the main branch. |
| Snapshot summaries | v1 | ✅ | ✅ | ClickHouse writes the standard summary fields (added-records, total-records, added-data-files, and others). Summaries are shown in system.iceberg_history. |
Metadata log and write.metadata.previous-versions-max | v1 | ✅ | ✅ | The length of the metadata log is limited by the table property or the setting iceberg_metadata_previous_versions_max (since 26.12). |
| Compressed metadata files | v1 | ✅ | ⚠️ | Compressed metadata.json files are read. Writing gzip-compressed metadata is experimental (iceberg_metadata_compression_method). |
Table maintenance
| Feature | Read | Write | Notes |
|---|---|---|---|
| Expire snapshots | — | ⚠️ | Experimental: ALTER TABLE ... EXECUTE expire_snapshots(...) with allow_expire_snapshots = 1. Honors the retention of branches and tags and the history.expire.* table properties. See Expire snapshots. |
| Remove orphan files | — | ⚠️ | Experimental: ALTER TABLE ... EXECUTE remove_orphan_files(...) with allow_iceberg_remove_orphan_files = 1. See Remove orphan files. |
| Rewrite manifests | — | ⚠️ | Experimental: OPTIMIZE TABLE ... MANIFEST with allow_experimental_iceberg_compaction = 1. Version 2 tables. See Manifest file compaction. |
| Rewrite data files (compaction) | — | ⚠️ | Experimental: OPTIMIZE TABLE with allow_experimental_iceberg_compaction = 1 applies position deletes to the data files. Version 2 tables, not available for tables in a catalog. See Compaction. |
| Table properties | ⚠️ | ❌ | ClickHouse honors history.expire.*, write.data.path, write.metadata.previous-versions-max and write.metadata.compression-codec, but doesn’t change Iceberg table properties. write.target-file-size-bytes, write.parquet.compression-codec, write.metadata.metrics.* and write.metadata.delete-after-commit.enabled are not honored. |
Statistics and query optimization
| Feature | Spec | Read | Write | Notes |
|---|---|---|---|---|
Column bounds (lower_bounds, upper_bounds) | v1 | ✅ | ✅ | Used to skip data files. |
| Null and NaN counts | v1 | ✅ | ✅ | |
value_counts | v1 | ✅ | ❌ | |
split_offsets | v1 | ✅ | ✅ | Used to split data files between readers without reading Parquet footers. |
| Table statistics: NDV from Puffin theta sketches | v2 | ✅ | ⚠️ | Read with use_iceberg_table_statistics_ndv = 1 together with use_datalake_metadata_statistics = 1. Writing is experimental (iceberg_write_table_statistics_ndv, since 26.12). |
| Puffin Bloom filters | v2 | ❌ | ❌ | Bloom filters inside Parquet data files are used and written. |
| Partition statistics files | v2 | ❌ | ❌ | |
| Statistics for the query optimizer | v1 | ✅ | — | Row counts, distinct values, bounds and null fractions from manifests are used for join reordering with use_datalake_metadata_statistics = 1 (since 26.11). |
count() from metadata | v1 | ✅ | — | Answered from snapshot summaries and manifests when no delete files apply. |
| Parquet row group, page and Bloom filter pruning | — | ✅ | ✅ | ClickHouse writes page indexes and Bloom filters into Parquet data files. |
| Pruning with join runtime filters | — | ✅ | — | Skips data files, row groups and pages that can’t match the join (since 26.11). |
ORDER BY ... LIMIT optimizations | — | ✅ | — | Top-N dynamic filtering, lazy materialization and the query condition cache. |
| Distributed reading | — | ✅ | — | With icebergCluster table functions and parallel replicas, also splitting files by row groups. |
| Caching | — | ✅ | — | Metadata cache, filesystem cache, userspace page cache, and the experimental columns cache. See Metadata cache and Data cache. |
Encryption and views
| Feature | Spec | Read | Write | Notes |
|---|---|---|---|---|
Table encryption (encryption-keys, key_metadata) | v3 | ❌ | ❌ | |
| Iceberg views | view spec | ❌ | ❌ |
Metadata introspection
| Feature | Notes |
|---|---|
system.iceberg_history | Snapshot history with operations and summaries. |
system.iceberg_files | Data and delete files of the current snapshot with their statistics. |
system.iceberg_metadata_log_entries | Metadata files of a table with the snapshot, schema and sequence number of each (since 26.11). |
system.iceberg_metadata_log | Log of the metadata and manifest entries read by queries, enabled with iceberg_metadata_log_level. |
| Virtual columns | _path, _file, _size, _time, _etag, _row_number, _data_lake_snapshot_version, _iceberg_metadata_file_path, _row_id, _last_updated_sequence_number. |
Metadata tables (snapshots, manifests, partitions, refs) | Not supported as table suffixes; use the system tables above. |
Catalogs
TheDataLakeCatalog database engine connects to Iceberg catalogs. Writes through a catalog require allow_insert_into_iceberg = 1 in addition to the setting that enables the catalog type.
| Catalog | catalog_type | Read | Create, insert, alter, drop | Notes |
|---|---|---|---|---|
| Iceberg REST | rest | ✅ | ✅ | Beta (allow_database_iceberg). Works with Polaris, Lakekeeper, Nessie and other implementations of the REST specification. |
| AWS Glue | glue | ✅ | ✅ | Beta (allow_database_glue_catalog). |
| Databricks Unity Catalog | unity | ✅ | ✅ | Beta (allow_database_unity_catalog). Serves Delta Lake and Iceberg tables. |
| Microsoft OneLake | onelake | ✅ | ✅ | Beta (allow_database_iceberg). |
| BigLake Metastore | biglake | ✅ | ✅ | Beta (allow_database_iceberg). |
| Snowflake Horizon | horizon | ✅ | ✅ | Beta (allow_database_iceberg). Snowflake-managed Iceberg tables. |
| Amazon S3 Tables | s3tables | ✅ | ✅ | Beta (allow_database_iceberg). Authenticates with AWS SigV4. |
| SeaweedFS | rest | ✅ | ✅ | S3 Table Buckets through the built-in REST catalog of SeaweedFS. |
| Delta Sharing | delta_sharing | ✅ | ❌ | Beta (allow_database_iceberg). Iceberg tables in flat namespaces. |
| Hive Metastore | hive | ✅ | ❌ | Experimental (enable_database_hms_catalog). |
| REST catalog feature | Supported | Notes |
|---|---|---|
| OAuth2 client credentials | ✅ | Settings catalog_credential, auth_scope and oauth_server_uri. |
| Static bearer token | ✅ | Setting auth_header. |
| Vended credentials | ✅ | X-Iceberg-Access-Delegation: vended-credentials for S3, GCS and Azure. |
| Multi-level namespaces | ✅ | Use flat_namespaces for catalogs with a single level. |
| Pagination | ✅ | |
| Loading only referenced snapshots | ✅ | Database setting snapshot_loading_mode = 'refs' (since 26.11). |
| Remote signing, register table, credentials refresh endpoint | ❌ | |
AWS SigV4 for the rest catalog type | ❌ | SigV4 is used for the s3tables catalog type. |
Built-in Iceberg REST catalog server
ClickHouse can itself act as an Iceberg REST catalog for other engines such as Spark, Trino and PyIceberg. This is an experimental feature, enabled with the server settingenable_iceberg_rest_catalog and the configuration keys iceberg_rest_catalog.port or iceberg_rest_catalog.secure_port (since 26.10).
| Feature | Supported | Notes |
|---|---|---|
| Configuration, namespaces and namespace properties | ✅ | Listing, creation, loading and property updates. |
| Tables | ✅ | Listing, creation (including staged creation), loading, commits, renaming and dropping (since 26.11). |
| Multi-table commits | ✅ | Since 26.11. |
| Warehouses | ✅ | Since 26.11. |
| Schema and partition spec evolution in commits | ❌ | |
| Dropping namespaces, registering tables, credential vending, remote signing, scan planning, views | ❌ |