Skip to content

Commit

Permalink
Filter out the nulls after slicing the batches. (#2447)
Browse files Browse the repository at this point in the history
* Filter out the nulls after slicing the batches.

Signed-off-by: Firestarman <firestarmanllc@gmail.com>
  • Loading branch information
firestarman authored May 20, 2021
1 parent 6874645 commit 2b781d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ case class GpuRangePartitioner(
// slice will produce.
val sliced = sliceInternalGpuOrCpu(cb.numRows, Array(0),
GpuColumnVector.extractColumns(cb))
sliced.zipWithIndex
sliced.zipWithIndex.filter(_._1 != null)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ case object GpuSinglePartitioning extends GpuExpression with GpuPartitioning {
batch.numRows,
Array(0),
GpuColumnVector.extractColumns(batch))
sliced.zipWithIndex
sliced.zipWithIndex.filter(_._1 != null)
}
}
}
Expand Down

0 comments on commit 2b781d8

Please sign in to comment.