-
Notifications
You must be signed in to change notification settings - Fork 838
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
Always validate the array data (except the Decimal
) when creating array in IPC reader
#2547
Always validate the array data (except the Decimal
) when creating array in IPC reader
#2547
Conversation
Signed-off-by: remzi <13716567376yh@gmail.com>
5 tests failures so far
|
|
For the following tests, there are some out of range decimal values for the given precision in older version of generated files. A known issue.
|
Is there any ticket to track this? |
I'd opened a ticket before to know why there are these values: https://issues.apache.org/jira/browse/ARROW-16696 BTW, I said "a known issue", not meaning it is some bug needed to fix. Just a known topic/problem if you try to validate these decimal values from the generated files. |
why the data in the ipc can't be trusted from this issue #2541 ? @HaoYang670 @tustvold |
The IPC APIs are safe, it therefore cannot be possible to create UB using them. Currently reading a file with invalid list offsets, for example, will result in UB |
At least, we should make the implementation consistent. It is weird for me that in |
Regarding the Decimal validation there is an open ticket regarding how we handle this #2387 Perhaps we could back out the change to validating DecimalArray with a TODO tied to that ticket, and get the rest of this PR in? |
Sounds great. I will update the code and add more docs. |
Signed-off-by: remzi <13716567376yh@gmail.com>
Decimal
) when creating array in IPC reader
Benchmark runs are scheduled for baseline = 7670c5f and contender = 3430537. 3430537 is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
Signed-off-by: remzi 13716567376yh@gmail.com
Which issue does this PR close?
Closes #2541.
Rationale for this change
What changes are included in this PR?
Are there any user-facing changes?