-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-41862][SQL] Fix correctness bug related to DEFAULT values in Orc reader #39370
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
fetch latest from master
fetch latest from master
fetch latest from master
fetch latest from master
merge from master
fix the bug fix the bug fix the bug fix the bug
|
@gengliangwang and @dongjoon-hyun FYI, here is the Orc fix. |
dongjoon-hyun
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, @dtenedor . I'll verify the perf today from my side too.
| test("INSERT rows, ALTER TABLE ADD COLUMNS with DEFAULTs, then SELECT them") { | ||
| case class Config( | ||
| sqlConf: Option[(String, String)], | ||
| insertNullsToStorage: Boolean = true, |
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 clean up too.
I re-ran the Orc benchmark with this PR, here it is for reference: |
|
Merged to master. |
|
Thank you all. +1, late LGTM. |
|
late LGTM |
### What changes were proposed in this pull request? This PR is a follow-up of #39370 . ### Why are the changes needed? To sync the patch with the recovered perf result. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Manual review. - Java 8: https://github.com/dongjoon-hyun/spark/actions/runs/3834890434 - Java 11: https://github.com/dongjoon-hyun/spark/actions/runs/3834892478 - Java 17: https://github.com/dongjoon-hyun/spark/actions/runs/3834893844 Closes #39380 from dongjoon-hyun/SPARK-41862. Authored-by: Dongjoon Hyun <dongjoon@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
What changes were proposed in this pull request?
This PR fixes a correctness bug related to column DEFAULT values in Orc reader.
Why are the changes needed?
This PR fixes a correctness bug.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
This PR updates a unit test to exercise that the Orc scan functionality is correct.