Skip to content

[core] Fix incorrect sequenceNumber in manifest after row-tracking compaction#7409

Open
juntaozhang wants to merge 3 commits intoapache:masterfrom
juntaozhang:fix-row-tracking-seq-num
Open

[core] Fix incorrect sequenceNumber in manifest after row-tracking compaction#7409
juntaozhang wants to merge 3 commits intoapache:masterfrom
juntaozhang:fix-row-tracking-seq-num

Conversation

@juntaozhang
Copy link
Contributor

Purpose

Linked issue: close #7408

Tests

API and Format

Documentation

Generative AI tooling


public AppendCompactTask(BinaryRow partition, List<DataFileMeta> files) {
Preconditions.checkArgument(files != null);
files.sort(Comparator.comparingLong(DataFileMeta::minSequenceNumber));
Copy link
Contributor

Choose a reason for hiding this comment

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

Should do this sort in Data Evolution class.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @JingsongLi , sorry for the late reply.

This fix is mainly targeted at the row-tracking scenario. Given that sequenceNumber may not be continuous and can even be null, I’ve revised the original implementation to manage this logic within RowDataFileWriter.

Thanks for your time and help. Could you please take another look for this PR?

@juntaozhang juntaozhang force-pushed the fix-row-tracking-seq-num branch from 6a5fa6d to 2a9efdf Compare March 13, 2026 00:56
@juntaozhang juntaozhang marked this pull request as draft March 13, 2026 09:19
@juntaozhang juntaozhang force-pushed the fix-row-tracking-seq-num branch from 650f0dc to 21c5c71 Compare March 14, 2026 09:14
@juntaozhang juntaozhang force-pushed the fix-row-tracking-seq-num branch from 21c5c71 to 0e957d8 Compare March 14, 2026 11:42
@juntaozhang juntaozhang marked this pull request as ready for review March 14, 2026 13:36
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.

[Bug] Incorrect sequenceNumber in manifest after row-tracking compaction

2 participants