-
Notifications
You must be signed in to change notification settings - Fork 291
Support getting snapshot at or right before the given timestamp #748
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
Support getting snapshot at or right before the given timestamp #748
Conversation
Hello @chinmay-bhat, I noticed that you are implementing the I believe that we need to discuss and choose which one we want to have in the codebase. |
Hi @ndrluis thank you for flagging this! That PR went under my radar, and I'm excited to see a incremental scanning feature being implemented already on PyIceberg. As for the question on the output type, I'm +1 for using Iterable[Snapshot] because I have a preference for using a class with set attributes than using a tuple. Im also +1 for introducing the feature in this separate PR, since it's a much simpler feature in itself we can introduce quickly. WDYT? |
Happy to update the output type to Iterable[Snapshot]! Also I really like how concise the ancestors_of function is in the other PR. |
89f2cc8
to
3288d92
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chinmay-bhat Thanks for working on this! I left some comments. Love to see more snapshot utils being added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating! I think this is good to go when the lint issue is fixed.
b6b24d7
to
287b386
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking great @chinmay-bhat and thanks for the review @HonahX 🙌
Merged! Thanks @chinmay-bhat for the great work! Thanks @Fokko @syun64 @ndrluis for the review and discussions! |
Congrats on your first PR @chinmay-bhat ! |
Bring support to retrieve a snapshot before a particular timestamp, which is needed to perform Spark procedure like rollback_to_timestamp.
See comment in issue