> ## Documentation Index
> Fetch the complete documentation index at: https://clickhouse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# iceberg_insert_* session settings

> ClickHouse session settings in the iceberg_insert_* generated group.

These settings are available in [system.settings](https://clickhouse.com/docs/reference/system-tables/settings.md) and are autogenerated from [source](https://github.com/ClickHouse/ClickHouse/blob/master/src/Core/Settings.cpp).

## iceberg\_insert\_max\_bytes\_in\_data\_file

Type

UInt64

Default

536870912

Max bytes of iceberg parquet data file on insert operation.

The default mirrors the documented default of the Iceberg table property `write.target-file-size-bytes` (512 MiB),
see [https://iceberg.apache.org/docs/1.5.2/configuration/](https://iceberg.apache.org/docs/1.5.2/configuration/). The limit is compared against the size of the file
written so far, that is, the compressed size, so a file can exceed it by what the writer still buffers, such as
incomplete Parquet row groups and the ones being encoded. `iceberg_insert_max_rows_in_data_file` caps the file
independently of its size.

## iceberg\_insert\_max\_partitions

Type

UInt64

Default

100

Max allowed partitions count per one insert operation for Iceberg table engine.

## iceberg\_insert\_max\_rows\_in\_data\_file

Type

UInt64

Default

1000000

Max rows of iceberg parquet data file on insert operation.

## iceberg\_insert\_single\_manifest\_for\_all\_partitions

Type

Bool

Default

0

An `INSERT` into a partitioned Iceberg table writes one manifest file for all the partitions it touches, like Spark
and PyIceberg, instead of one manifest file per partition. This holds per insert stream: every stream commits its own
snapshot with its own manifest, so an `INSERT` writes exactly one manifest only with `max_insert_threads = 1`.
`OPTIMIZE TABLE ... MANIFEST` then also merges manifests of different partitions into one.
`ALTER TABLE ... DROP PARTITION` cannot drop a partition whose manifest is shared with other partitions.
