-
Notifications
You must be signed in to change notification settings - Fork 270
fix: Fix shuffle writing rows containing null struct fields #1845
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1845 +/- ##
============================================
+ Coverage 56.12% 59.40% +3.28%
- Complexity 976 1151 +175
============================================
Files 119 130 +11
Lines 11743 12663 +920
Branches 2251 2374 +123
============================================
+ Hits 6591 7523 +932
+ Misses 4012 3930 -82
- Partials 1140 1210 +70 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| } | ||
|
|
||
| #[test] | ||
| #[cfg_attr(miri, ignore)] // Unaligned memory access in SparkUnsafeRow |
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.
Do we want to file a follow-on issue to remove the unaligned memory access?
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.
Logged #1849
andygrove
left a comment
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.
Thank you @Kontinuation
|
I confirmed that this does also close #1823 |
Which issue does this PR close?
Closes #1844 and probably #1823.
Rationale for this change
Loading data with custom schema may produce rows containing null struct fields. Shuffling such null struct fields throws exceptions mentioned in the linked issues.
What changes are included in this PR?
Fixes appending null rows to
StructBuilderby making children field builders always in sync with the parent struct builder.How are these changes tested?
append_fieldin native code