> ## 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_compaction_* session settings

> ClickHouse session settings in the iceberg_compaction_* 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\_compaction\_commit\_batch\_size

Type

UInt64

Default

100

Number of merged data files that background Iceberg compaction accumulates before publishing them in a new snapshot.

Compaction results are published in any case once there are no candidates left to compact, so this setting only bounds
how long already merged files stay unpublished while compaction keeps finding new work. `0` restores the old behaviour
of publishing only when compaction runs out of candidates - a state that is never reached while the table keeps
receiving new data files, so every merged output is then written to object storage and never referenced by a snapshot.

## iceberg\_compaction\_data\_cleanup

Type

Seconds

Default

10800

The time after which the data will be deleted.

## iceberg\_compaction\_delay\_bias

Type

Seconds

Default

10800

Minimum time of delay between 2 background compaction operations.

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

Type

UInt64

Default

536870912

Max bytes of an iceberg parquet data file produced by compaction.

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, the same measure as `iceberg_data_file_size_lower_threshold_compaction`,
so a file can exceed it by what the writer still buffers, such as incomplete Parquet row groups and the ones being
encoded. Keep it above
`iceberg_data_file_size_lower_threshold_compaction`, otherwise every output file stays below the lower threshold
and is selected for compaction again.

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

Type

UInt64

Default

18446744073709551615

Max rows of an iceberg parquet data file produced by compaction. Defaults to the maximum, so the size limit
`iceberg_compaction_max_bytes_in_data_file` alone decides how much data goes into an output file, the same way
Iceberg has no row-count counterpart of `write.target-file-size-bytes`.
