-
Notifications
You must be signed in to change notification settings - Fork 237
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
Filter out the nulls after slicing the batches. #2447
Filter out the nulls after slicing the batches. #2447
Conversation
Signed-off-by: Firestarman <firestarmanllc@gmail.com>
sql-plugin/src/main/scala/com/nvidia/spark/rapids/GpuPartitioning.scala
Outdated
Show resolved
Hide resolved
build |
Signed-off-by: Firestarman <firestarmanllc@gmail.com>
build |
This reverts commit a63c85a.
Signed-off-by: Firestarman <firestarmanllc@gmail.com>
build |
I converted the PR to draft, because I am not sure whether the linked bug is reproduceable on branch-21.06 (it was 0.6 before), which is the base branch of the PR. I tried several times locally but can not get the NPE. |
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.
nit: if it is simple, and only if it is simple, can we get a test that causes this to happen more regularly?
Thanks @viadea for the verification on branch-21.06. |
* Filter out the nulls after slicing the batches. Signed-off-by: Firestarman <firestarmanllc@gmail.com>
* Filter out the nulls after slicing the batches. Signed-off-by: Firestarman <firestarmanllc@gmail.com>
This PR is to fix the NPE in
GpuShuffleExchange
by filtering out the nulls after slicing the batches forGpuRangePartitioner
andGpuSinglePartitioning
. Just like what theGpuHashPartitioning
does here.The root cause of this NPE is the batch array returned from the method sliceInternalGpuOrCpu may contain nulls that generated by the function 'sliceBatch' for the corner case of empty batch (row number is 0). So even a single batch is expected, we still need to filter out the null.
Closes #2421
Signed-off-by: Firestarman firestarmanllc@gmail.com