Skip to content

Commit 5e55bf6

Browse files
committed
copy
1 parent 8d3c495 commit 5e55bf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/core/src/main/scala/org/apache/spark/sql/execution/pythonUDFs.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ case class BatchPythonEvaluation(udf: PythonUDF, output: Seq[Attribute], child:
348348
override def canProcessSafeRows: Boolean = true
349349

350350
protected override def doExecute(): RDD[InternalRow] = {
351-
val inputRDD = child.execute()
351+
val inputRDD = child.execute().map(_.copy())
352352
val bufferSize = inputRDD.conf.getInt("spark.buffer.size", 65536)
353353
val reuseWorker = inputRDD.conf.getBoolean("spark.python.worker.reuse", defaultValue = true)
354354

0 commit comments

Comments
 (0)