Skip to content

[core] fix that batch CompactAction makes no sense with all level-0 files #5790

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 7, 2025

Conversation

LsomeYeah
Copy link
Contributor

Purpose

Linked issue: close #xxx

If the table is dv enabled or using first-row as merge engine, and its writing job is write-only, compact action in batch mode for this table will generate 0 splits. This is because DataTableBatchScan will skip all level-0 files when dv enabled or with first-row merge engine while files written with write-only set to true are all in level-0.

This pr introduced a new option "batch-scan-mode" which should only be used internally, if batch-scan-mode = compact, the scan won't apply the level-0 filter.

Tests

CompactActionITCase#testCompactWhenSkipLevel0

API and Format

Documentation

@wwj6591812
Copy link
Contributor

+1

Copy link
Contributor

@JingsongLi JingsongLi left a comment

Choose a reason for hiding this comment

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

+1

@JingsongLi JingsongLi merged commit 7582dac into apache:master Jul 7, 2025
20 of 21 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.

3 participants