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

chore: add deprecation notices for commit logic on DeltaTable #1323

Merged
merged 2 commits into from
May 2, 2023

Conversation

roeap
Copy link
Collaborator

@roeap roeap commented May 1, 2023

Description

Now that we have a decent test coverage to the low-level commit logic in the transactions module, we should deprecate the commit logic exposed directly on DeltaTable.

In some places I also updated internal call sites, however did not go through all of them.

Related Issue(s)

Documentation

@github-actions github-actions bot added binding/rust Issues for the Rust crate rust labels May 1, 2023
@roeap roeap force-pushed the commit-deprecation branch 2 times, most recently from f1c28d4 to 174b6a7 Compare May 1, 2023 11:50
@github-actions github-actions bot added the binding/python Issues for the Python package label May 1, 2023
@roeap roeap marked this pull request as draft May 1, 2023 12:14
@roeap roeap marked this pull request as ready for review May 1, 2023 18:14
Comment on lines +756 to +766
let configuration = configuration
.unwrap_or_default()
.into_iter()
.filter_map(|(key, value)| {
if let Ok(key) = DeltaConfigKey::from_str(&key) {
Some((key, value))
} else {
None
}
})
.collect();
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not quite sure how we want to handle table configuration vs. metadata. With this change only known configuration can be passed to delta table, but as of right now there is no way to pass in metadata. First question would be how we want to deal with invalid config. While the code just silently ignores it, I am starting to lean towards raising an error instead. For metadata we would need to introduce a new parameter.

@rtyler rtyler merged commit edf1355 into delta-io:main May 2, 2023
@roeap roeap deleted the commit-deprecation branch May 2, 2023 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
binding/python Issues for the Python package binding/rust Issues for the Rust crate rust
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants