-
Notifications
You must be signed in to change notification settings - Fork 406
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
feat(rust): advance state in post commit #2396
feat(rust): advance state in post commit #2396
Conversation
@ion-elgreco I've looked a this quick a bit and feel like a deep refactor is required for this. IMO if the commit logic is going to be responsible for providing the committed then it must return return a DeltaTableState / Snapshot. What are the expected scenarios where that struct will be |
@Blajda Yeah it felt a bit strange to not be able to take ownership of the snapshot. While working on it I didn't understand why the incoming snapshot could be None until I hit the create path, which obviously has no table snapshot. We should just return always a snapshot. If the incoming snapshot is None, we can just create a snapshot after committing and return that. Do you agree? |
52be0c2
to
8024cf8
Compare
7b4950e
to
be2a388
Compare
be2a388
to
4544772
Compare
4544772
to
32a62c2
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.
LGTM! Thanks for making the changes.
Description
We advance the state in the post commit now, so it's done in a single location as per suggestion from @Blajda here: #2391 (comment)
This PR also supersedes this one: #2280
Related Issue(s)