Skip to content

fix: allow missing sequence-number in v2 snapshots for v1-upgraded tables#2127

Open
jembishop wants to merge 1 commit intoapache:mainfrom
jembishop:fix/v2-snapshot-sequence-number
Open

fix: allow missing sequence-number in v2 snapshots for v1-upgraded tables#2127
jembishop wants to merge 1 commit intoapache:mainfrom
jembishop:fix/v2-snapshot-sequence-number

Conversation

@jembishop
Copy link
Contributor

Which issue does this PR close?

Didn't make an issue sorry. Very small change.

What changes are included in this PR?

After upgrading to v2 table I got complaints that this field does not exist, so
Added a default for sequence number for this struct.

I think this should be ok, as this is treated as 0 for iceberg v1 wrt to v2 compat in other contexts? But would like some confirmation.

Are these changes tested?

Tested that it fixes my problem, yes.

Copy link
Collaborator

@CTTY CTTY left a comment

Choose a reason for hiding this comment

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

This change makes sense to me, it actually follows the spec

@github-actions
Copy link
Contributor

This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the dev@iceberg.apache.org list. Thank you for your contributions.

@github-actions github-actions bot added the stale label Mar 22, 2026
@jembishop jembishop force-pushed the fix/v2-snapshot-sequence-number branch from 10eb184 to 734dc8f Compare March 23, 2026 09:50
@jembishop
Copy link
Contributor Author

@CTTY could I get a rereview on this please?

@CTTY
Copy link
Collaborator

CTTY commented Mar 23, 2026

cc @blackmwk to take a look

@github-actions github-actions bot removed the stale label Mar 24, 2026
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