Skip to content
This repository was archived by the owner on Sep 18, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ case class ArrowColumnarToRowExec(child: SparkPlan) extends ColumnarToRowTransit
arrowSchema, batch.numRows, bufAddrs.toArray, bufSizes.toArray,
SparkMemoryUtils.contextMemoryPool().getNativeInstanceId)

// Because nativeConvertColumnarToRow didn't need Buffers of batch anymore, so close immediately
// batch.close()

convertTime += NANOSECONDS.toMillis(System.nanoTime() - beforeConvert)

new Iterator[InternalRow] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,9 @@ arrow::Status ColumnarToRowConverter::Write() {
support_avx512_);
}

// Because didn't need rb_ anymore here, so reset immediately.
rb_.reset();

return arrow::Status::OK();
}

Expand Down