Github user rxin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/11342#discussion_r53905485
  
    --- Diff: core/src/main/scala/org/apache/spark/api/python/PythonRDD.scala 
---
    @@ -64,29 +58,37 @@ private[spark] class PythonRDD(
       val asJavaRDD: JavaRDD[Array[Byte]] = JavaRDD.fromRDD(this)
     
       override def compute(split: Partition, context: TaskContext): 
Iterator[Array[Byte]] = {
    -    val runner = new PythonRunner(
    -      command, envVars, pythonIncludes, pythonExec, pythonVer, 
broadcastVars, accumulator,
    -      bufferSize, reuse_worker)
    +    val runner = new PythonRunner(func, bufferSize, reuse_worker)
         runner.compute(firstParent.iterator(split, context), split.index, 
context)
       }
     }
     
    -
     /**
    - * A helper class to run Python UDFs in Spark.
    + * A wrapper for a Python function, contains all necessary context to run 
the function in Python
    + * runner.
      */
    -private[spark] class PythonRunner(
    +private[spark] case class PythonFunction(
    --- End diff --
    
    does this need to be a case class?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to