-
Notifications
You must be signed in to change notification settings - Fork 41
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
Fix broken sync json parsing and harmonize file reading #373
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #373 +/- ##
==========================================
+ Coverage 76.55% 76.83% +0.27%
==========================================
Files 45 47 +2
Lines 9375 9418 +43
Branches 9375 9418 +43
==========================================
+ Hits 7177 7236 +59
+ Misses 1799 1789 -10
+ Partials 399 393 -6 ☔ View full report in Codecov by Sentry. |
.iter() | ||
.map(|col| table_schema.field(col).cloned().unwrap()) | ||
.collect(); | ||
Arc::new(Schema::new(selected_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.
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.
LGMT
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, just had one small suggestion. thanks for the fixes!
Co-authored-by: Nick Lanham <[email protected]>
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.
ahh nick beat me lgtm haha
It turned out the sync reader was not being exercised by basic read tests. Enabling it exposed a broken json parsing algo that had already been fixed in the default reader.
Factor out the json parsing to a shared function that both engines can use.
While we're at it, factor out sync reader logic that both parquet and json readers can use.
Update the basic read unit tests to use both readers.
Fixes #372
Relevant upstream feature request: apache/arrow-rs#6522