Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

[NSE-1]fix columnar wscg on empty recordbatch #36

Merged
merged 1 commit into from
Jan 14, 2021
Merged
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 @@ -344,6 +344,7 @@ case class ColumnarWholeStageCodegenExec(child: SparkPlan)(val codegenStageId: I
var build_elapse_internal: Long = 0
while (depIter.hasNext) {
val dep_cb = depIter.next()
if (dep_cb.numRows > 0) {
(0 until dep_cb.numCols).toList.foreach(i =>
dep_cb.column(i).asInstanceOf[ArrowWritableColumnVector].retain())
buildRelationBatchHolder += dep_cb
Expand All @@ -353,6 +354,7 @@ case class ColumnarWholeStageCodegenExec(child: SparkPlan)(val codegenStageId: I
ConverterUtils.releaseArrowRecordBatch(dep_rb)
build_elapse += System.nanoTime() - beforeEval
build_elapse_internal += System.nanoTime() - beforeEval
}
}
buildTime += (build_elapse_internal / 1000000)
dependentKernels += hashRelationKernel
Expand Down