-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
ARROW-10656: [Rust] Allow schema validation to ignore field names and only check data types on new batch #8988
Conversation
Hi @ch-sc , please have a look at the approach that I've taken, and let me know if it meets your use-case. If you're happy with the PR, I can then document the new functions, and add unit tests, then get it reviewed. Thanks |
Codecov Report
@@ Coverage Diff @@
## master #8988 +/- ##
==========================================
- Coverage 82.61% 82.56% -0.06%
==========================================
Files 202 202
Lines 50048 50087 +39
==========================================
+ Hits 41347 41353 +6
- Misses 8701 8734 +33
Continue to review full report at Codecov.
|
Looks good to me @nevi-me. Thank you! |
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.
Nice work @nevi-me ! I went through this and it looks good. I also merged the this code into apache/master
locally and re-ran all tests. I think this is good to go.
The full set of Rust CI tests did not run on this PR :( Can you please rebase this PR against apache/master to pick up the changes in #9056 so that they do? I apologize for the inconvenience. |
Done rebasing @alamb |
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.
LGTM.
Ok(RecordBatch { schema, columns }) | ||
} | ||
|
||
pub fn try_new_with_options( |
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.
@alamb @jorgecarleitao I must have done something wrong on the rebase, I had added doc comments for this function, and added tests :(
… only check data types on new batch This adds the option to create a new record batch with less strict validation for list field names. The default behaviour is preserved. Closes apache#8988 from nevi-me/ARROW-10656 Authored-by: Neville Dipale <nevilledips@gmail.com> Signed-off-by: Andrew Lamb <andrew@nerdnetworks.org>
This adds the option to create a new record batch with less strict validation for list field names.
The default behaviour is preserved.