We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5697627 commit ac1eee8Copy full SHA for ac1eee8
sql/core/src/main/scala/org/apache/spark/sql/execution/ExistingRDD.scala
@@ -339,8 +339,9 @@ case class OneRowRelationExec() extends LeafExecNode
339
"numOutputRows" -> SQLMetrics.createMetric(sparkContext, "number of output rows"))
340
341
protected override def doExecute(): RDD[InternalRow] = {
342
- val outputRow = InternalRow.empty
343
val numOutputRows = longMetric("numOutputRows")
+ val proj = UnsafeProjection.create(schema)
344
+ val outputRow = proj(InternalRow.empty)
345
rdd.mapPartitionsWithIndexInternal { (index, iter) =>
346
iter.map { r =>
347
numOutputRows += 1
0 commit comments