-
Notifications
You must be signed in to change notification settings - Fork 407
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: add nested struct supports #1519
Conversation
ACTION NEEDED delta-rs follows the Conventional Commits specification for release automation. The PR title and description are used as the merge commit message. Please update your PR title and description to match the specification. |
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 this mostly looks good and can be merged with some minor tweaks. If you don't happen to get to it, i'll knock it out tomorrow
rust/src/operations/write.rs
Outdated
fn can_cast_batch(from_schema: &ArrowSchema, to_schema: &ArrowSchema) -> bool { | ||
can_cast_batch_fields(from_schema.fields(), to_schema.fields()) | ||
} |
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.
fn can_cast_batch(from_schema: &ArrowSchema, to_schema: &ArrowSchema) -> bool { | |
can_cast_batch_fields(from_schema.fields(), to_schema.fields()) | |
} |
Since there is only one callsite of this method and it is not a public API, I figure it makes sense to just remove it
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 agree with you. I pushed new commit.
Thanks for the review.
This commit allows to check and cast record batches with column of type nested struct.
This test checks if a field in nested struct is casted.
Description
This PR adds nested struct supports.
Related Issue(s)
Documentation