-
Notifications
You must be signed in to change notification settings - Fork 25
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
Reference Tests and Breaking Change: Optional nullable fields are now null instead of undefined #114
Conversation
'float16_nonzeros_and_nans.parquet', // missing option: typeLength (required for FIXED_LEN_BYTE_ARRAY) | ||
'float16_zeros_and_nans.parquet', // missing option: typeLength (required for FIXED_LEN_BYTE_ARRAY) |
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.
These can be removed once #108 is rebased on it and will work as a test to prove it is working.
// This ensures that nulls are correctly processed | ||
record[node.name] = value; |
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.
This is the change that makes null values shred to null instead of undefined.
// If this exists and is greater than zero then we need to have an offset | ||
if (metadata.dictionary_page_offset && +metadata.dictionary_page_offset > 0) { | ||
const offset: number = +metadata.dictionary_page_offset; |
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.
Based in part around the information in https://issues.apache.org/jira/browse/PARQUET-1402
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.
Fixes for using null instead of undefined
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.
Fixes for using null instead of undefined
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.
Fixes for using null instead of undefined
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.
Works on my machine
Problem
We wanted to add tests for all the tests in https://github.com/apache/parquet-testing
Discovered Bugs
Solution
test/reference-test/read-all.test.ts
with @shannonwells
Steps to Verify: