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

turn table state version into a private field #772

Merged
merged 1 commit into from
Aug 29, 2022
Merged

Conversation

houqp
Copy link
Member

@houqp houqp commented Aug 29, 2022

Description

Semantically, table version is specific to a particular table state, so it doesn't make much sense to let delta-rs users change it from outside. In general, if fields should be declared as private when there are invariants that need to be maintained between them. In this case, version is dependent on the rest of the table state, so mutations need to go through methods to make sure are they always in sync.

@houqp houqp requested review from roeap and wjones127 August 29, 2022 01:54
@houqp houqp enabled auto-merge (squash) August 29, 2022 02:45
@houqp houqp requested a review from fvaleye August 29, 2022 02:45
Copy link
Collaborator

@fvaleye fvaleye left a comment

Choose a reason for hiding this comment

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

Good catch!

@houqp houqp merged commit 1477198 into main Aug 29, 2022
@houqp houqp deleted the qp_state_version branch August 29, 2022 06:27
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