Skip to content

[flink][spark] Fix conflict error for no-op file index rewrites#8596

Merged
JingsongLi merged 1 commit into
apache:masterfrom
tsreaper:index-rewrite-fix
Jul 13, 2026
Merged

[flink][spark] Fix conflict error for no-op file index rewrites#8596
JingsongLi merged 1 commit into
apache:masterfrom
tsreaper:index-rewrite-fix

Conversation

@tsreaper

Copy link
Copy Markdown
Contributor

Purpose

rewrite_file_index currently generates a compaction commit message even when file index processing does not change the data file metadata, for example when the table has no file index configured.

This produces identical compactBefore and compactAfter entries and incorrectly triggers file deletion conflict detection.

This PR skips unchanged files in both Flink and Spark.

Tests

  • RewriteFileIndexProcedureITCase
  • RewriteFileIndexProcedureTest

@tsreaper tsreaper requested a review from leaves12138 July 13, 2026 09:36
@JingsongLi

Copy link
Copy Markdown
Contributor

+1

@JingsongLi JingsongLi merged commit 0376c8b into apache:master Jul 13, 2026
12 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