-
Notifications
You must be signed in to change notification settings - Fork 211
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
name mapping serde #740
name mapping serde #740
Conversation
#[serde(rename_all = "kebab-case")] | ||
pub struct MappedField { | ||
#[serde(skip_serializing_if = "Option::is_none")] | ||
pub field_id: Option<i32>, |
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.
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.
Good catch, I noticed that field-id
is optional in Java as well. Created an issue on PyIceberg: apache/iceberg-python#1420
@@ -20,6 +20,7 @@ | |||
mod datatypes; | |||
mod manifest; | |||
mod manifest_list; | |||
mod name_mapping; |
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.
Please let me know if I should also expose the name mapping in TableMetadata
and Table
(as pyiceberg does).
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.
I think we can add them later on 👍
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.
Looks good, thanks @barronw for working on this, and sorry for the late reply.
Closes #723.