Skip to content
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

Add new module for DeltaTableState #464

Merged
merged 2 commits into from
Oct 17, 2021
Merged

Add new module for DeltaTableState #464

merged 2 commits into from
Oct 17, 2021

Conversation

viirya
Copy link
Contributor

@viirya viirya commented Oct 17, 2021

Description

This change tries to add a new module for DeltaTableState. process_action which updates state from given action is hidden in this module.

Other codes can only construct a DeltaTableState from a commit by from_commit, or a checkpoint by from_checkpoint.

This is to make sure users cannot construct table states from actions across commit boundaries that could cause unexpected and incorrect states.

Related Issue(s)

closes #461

Documentation

houqp
houqp previously approved these changes Oct 17, 2021
Copy link
Member

@houqp houqp left a comment

Choose a reason for hiding this comment

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

Looks great @viirya !

rust/src/delta.rs Outdated Show resolved Hide resolved
@houqp
Copy link
Member

houqp commented Oct 17, 2021

FYI @dispanser

@houqp houqp merged commit fc9513c into delta-io:main Oct 17, 2021
@houqp
Copy link
Member

houqp commented Oct 17, 2021

Thanks @viirya !

@viirya
Copy link
Contributor Author

viirya commented Oct 17, 2021

Thanks @houqp @dispanser !

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.

Safe guard DeltaTableState using Rust's type system
3 participants