[SPARK-34863][SQL][FOLLOW-UP] Handle IsAllNull in OffHeapColumnVector#36366
Closed
sadikovi wants to merge 2 commits intoapache:masterfrom
Closed
[SPARK-34863][SQL][FOLLOW-UP] Handle IsAllNull in OffHeapColumnVector#36366sadikovi wants to merge 2 commits intoapache:masterfrom
sadikovi wants to merge 2 commits intoapache:masterfrom
Conversation
Contributor
Author
|
cc @sunchao @cloud-fan. I am going to update the description and add a test but would like you to take a look. |
Contributor
Author
|
The implications of the bug are the following:
Examples of errors: |
cloud-fan
approved these changes
Apr 27, 2022
sunchao
pushed a commit
that referenced
this pull request
Apr 27, 2022
### What changes were proposed in this pull request? This PR fixes an issue of reading null columns with the vectorised Parquet reader when the entire column is null or does not exist. This is especially noticeable when performing a merge or schema evolution in Parquet. The issue is only exposed with the `OffHeapColumnVector` which does not handle `isAllNull` flag - `OnHeapColumnVector` already handles `isAllNull` so everything works fine there. ### Why are the changes needed? The change is needed to correctly read null columns using the vectorised reader in the off-heap mode. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? I updated the existing unit tests to ensure we cover off-heap mode. I confirmed that the tests pass with the fix and fail without. Closes #36366 from sadikovi/fix-off-heap-cv. Authored-by: Ivan Sadikov <ivan.sadikov@databricks.com> Signed-off-by: Chao Sun <sunchao@apple.com>
Member
|
Merged to master/3.3 |
Contributor
Author
|
Thank you! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
This PR fixes an issue of reading null columns with the vectorised Parquet reader when the entire column is null or does not exist. This is especially noticeable when performing a merge or schema evolution in Parquet.
The issue is only exposed with the
OffHeapColumnVectorwhich does not handleisAllNullflag -OnHeapColumnVectoralready handlesisAllNullso everything works fine there.Why are the changes needed?
The change is needed to correctly read null columns using the vectorised reader in the off-heap mode.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
I updated the existing unit tests to ensure we cover off-heap mode. I confirmed that the tests pass with the fix and fail without.