Skip to content

[core] Enable clustering before write phase for incremental clustering table#7331

Merged
JingsongLi merged 3 commits intoapache:masterfrom
LsomeYeah:iceberg-rest-pt
Mar 3, 2026
Merged

[core] Enable clustering before write phase for incremental clustering table#7331
JingsongLi merged 3 commits intoapache:masterfrom
LsomeYeah:iceberg-rest-pt

Conversation

@LsomeYeah
Copy link
Contributor

Purpose

Linked issue: close #xxx

For Append -1 tables, clustering data before batch write and incremental clustering are mutually exclusive. This PR introduces a parameter 'clustering.pre-write.enabled' to enable clustering of data before write when incremental clustering is enabled.

Tests

API and Format

Documentation

Generative AI tooling

+ "Historical partitions will be automatically fully clustered during the cluster operation.");

public static final ConfigOption<Boolean> CLUSTERING_PRE_WRITE_ENABLED =
key("clustering.pre-write.enabled")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clustering.incremental.optimize-write

@JingsongLi
Copy link
Contributor

+1

@JingsongLi JingsongLi merged commit 24ff421 into apache:master Mar 3, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants