-
Notifications
You must be signed in to change notification settings - Fork 414
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: initial table features implementation #1796
Conversation
# Conflicts: # rust/src/operations/create.rs # rust/src/operations/restore.rs # rust/src/operations/transaction/test_utils.rs # rust/src/protocol/checkpoints.rs # rust/src/protocol/mod.rs # rust/src/protocol/parquet2_read/mod.rs # rust/src/protocol/parquet_read/mod.rs # rust/src/table/mod.rs # rust/src/table/state.rs
V2_CHECKPOINT, | ||
/// If we do not match any other reader features | ||
#[serde(other)] | ||
OTHER, |
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.
Should we capture this value using an untagged variant instead?
Something like this
#[derive(serde::Deserialize, serde::Serialize, Debug, Clone)]
pub enum Example {
Foo,
Bar,
#[serde(untagged)]
Unknown(String),
}
#[derive(serde::Deserialize, serde::Serialize, Debug, Clone)]
struct Features {
reader: Vec<Example>
}
fn main() {
let features = Features {
reader: vec![Example::Foo, Example::Bar, Example::Unknown("Hello".to_string())],
};
println!("{}", serde_json::to_string(&features).unwrap());
let features: Features = serde_json::from_str(r#"{"reader":["Foo","Bar","Hello"]}"#).unwrap();
println!("{:#?}", features);
}
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.
Actually read my mind, I like this more than other.
… copy simple table to not fail python tests
Head branch was pushed to by a user without write access
# Description Hi again, this is table features again, but albeit with less work done on the main branch like the smart guy I am. # Related Issue(s) delta-io#1755 prior review and information # Documentation https://delta.io/blog/2023-07-27-delta-lake-table-features/ https://github.com/delta-io/delta/blob/master/PROTOCOL.md#table-features --------- Co-authored-by: Stephen Carman <[email protected]>
Description
Hi again, this is table features again, but albeit with less work done on the main branch like the smart guy I am.
Related Issue(s)
#1755 prior review and information
Documentation
https://delta.io/blog/2023-07-27-delta-lake-table-features/
https://github.com/delta-io/delta/blob/master/PROTOCOL.md#table-features