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

Commit cce191a

Browse files
Fix JVM R2C operator metrics (#1067)
1 parent 6661b7b commit cce191a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arrow-data-source/common/src/main/scala/com/intel/oap/sql/execution/RowToArrowColumnarExec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,13 +279,13 @@ case class RowToArrowColumnarExec(child: SparkPlan) extends UnaryExecNode {
279279
val res = new Iterator[ColumnarBatch] {
280280
private val converters = new RowToColumnConverter(localSchema)
281281
private var last_cb: ColumnarBatch = null
282-
private var elapse: Long = 0
283282

284283
override def hasNext: Boolean = {
285284
rowIterator.hasNext
286285
}
287286

288287
override def next(): ColumnarBatch = {
288+
var elapse: Long = 0
289289
val vectors: Seq[WritableColumnVector] =
290290
ArrowWritableColumnVector.allocateColumns(numRows, schema)
291291
var rowCount = 0

0 commit comments

Comments
 (0)