HyukjinKwon commented on code in PR #37552:
URL: https://github.com/apache/spark/pull/37552#discussion_r947870830


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/python/EvalPythonExec.scala:
##########
@@ -116,6 +116,7 @@ trait EvalPythonExec extends UnaryExecNode {
         }.toArray
       }.toArray
       val projection = MutableProjection.create(allInputs.toSeq, child.output)
+      projection.initialize(context.partitionId())

Review Comment:
   The plan from the reproducer above is as follows:
   
   ```
   == Physical Plan ==
   *(2) Project [pythonUDF0#5 AS <lambda>(rand(2977274370236284247))#3]
   +- BatchEvalPython [<lambda>(rand(2977274370236284247))#2], [pythonUDF0#5]
      +- *(1) Project
         +- *(1) Range (0, 10, step=1, splits=16)
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to