Skip to content

Conversation

@brishi19791
Copy link
Contributor

Fixes #660

@brishi19791 brishi19791 changed the title Modified incremental safe check which does not depend on snapshots li… Modified incremental safe check which does not depend on snapshots list order Mar 10, 2025
@brishi19791
Copy link
Contributor Author

brishi19791 commented Mar 10, 2025

@the-other-tim-brown this PR will fix the isIncrementalSafe check if the snapshots() list is not in ascending order. For the iceberg tables I am working on, snapshots() list not returning in ascending order and this check is not working as expected. I sometimes see the current snapshot or snapshot with timestamp > last sync timestamp as the first entry in the snapshots() list and check is failing but I have snapshots with timestamp < last sync timestamp. I took inspiration from getCommitsBacklog() method and created this PR. Let me know if this fixes your issue too?

@the-other-tim-brown
Copy link
Contributor

@brishi19791 can you run mvn spotless:apply to fix the style issues?

@brishi19791 brishi19791 force-pushed the users/rbokka/incrementalSafeCheckFix branch from e57299f to 0070697 Compare March 10, 2025 23:49
@brishi19791
Copy link
Contributor Author

@the-other-tim-brown I have added the test changes from PR #663. let me know if I missed anything.

Copy link
Contributor

@ashvina ashvina left a comment

Choose a reason for hiding this comment

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

LGTM 👍
One minor suggestion

@brishi19791 brishi19791 force-pushed the users/rbokka/incrementalSafeCheckFix branch from f3900ab to 77d7e4c Compare March 11, 2025 16:39
@brishi19791 brishi19791 force-pushed the users/rbokka/incrementalSafeCheckFix branch from 77d7e4c to 75396f9 Compare March 11, 2025 16:44
Copy link
Contributor

@the-other-tim-brown the-other-tim-brown left a comment

Choose a reason for hiding this comment

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

Thanks for the fix! Can you squash down to 1 commit? Then we can merge it for you.

@ashvina ashvina merged commit 23d870e into apache:main Mar 11, 2025
2 checks passed
@vinishjail97 vinishjail97 mentioned this pull request Apr 7, 2025
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.

XTable is doing a full sync instead of incremental sync in certain cases

3 participants