Skip to content

Commit

Permalink
Apply review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
abellina committed Feb 4, 2022
1 parent 9aefdaf commit 474aef3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ class GpuCoalesceIterator(iter: Iterator[ColumnarBatch],
spillCallback))

protected def popAll(): Array[ColumnarBatch] = {
closeOnExcept(batches.map(_.getColumnarBatch())) { wip =>
closeOnExcept(batches.safeMap(_.getColumnarBatch())) { wip =>
batches.safeClose()
batches.clear()
wip.toArray
Expand Down Expand Up @@ -536,7 +536,7 @@ class GpuCompressionAwareCoalesceIterator(
private[this] var codec: TableCompressionCodec = _

override protected def popAll(): Array[ColumnarBatch] = {
closeOnExcept(batches.map(_.getColumnarBatch())) { wip =>
closeOnExcept(batches.safeMap(_.getColumnarBatch())) { wip =>
batches.safeClose()
batches.clear()

Expand Down

0 comments on commit 474aef3

Please sign in to comment.