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

    https://github.com/apache/spark/pull/21977#discussion_r212499194
  
    --- Diff: 
core/src/main/scala/org/apache/spark/api/python/PythonRunner.scala ---
    @@ -60,14 +61,20 @@ private[spark] object PythonEvalType {
      */
     private[spark] abstract class BasePythonRunner[IN, OUT](
         funcs: Seq[ChainedPythonFunctions],
    -    bufferSize: Int,
    -    reuseWorker: Boolean,
         evalType: Int,
    -    argOffsets: Array[Array[Int]])
    +    argOffsets: Array[Array[Int]],
    +    conf: SparkConf)
       extends Logging {
     
       require(funcs.length == argOffsets.length, "argOffsets should have the 
same length as funcs")
     
    +  private val bufferSize = conf.getInt("spark.buffer.size", 65536)
    +  private val reuseWorker = conf.getBoolean("spark.python.worker.reuse", 
true)
    +  // each python worker gets an equal part of the allocation. the worker 
pool will grow to the
    +  // number of concurrent tasks, which is determined by the number of 
cores in this executor.
    +  private val memoryMb = conf.get(PYSPARK_EXECUTOR_MEMORY)
    +      .map(_ / conf.getInt("spark.executor.cores", 1))
    --- End diff --
    
    > I don't think that the DataBricks style guide applies to Apache projects.
    
    I sent an email to dev mailing list - 
http://apache-spark-developers-list.1001551.n3.nabble.com/Porting-or-explicitly-linking-project-style-in-Apache-Spark-based-on-https-github-com-databricks-scae-td24790.html
    
    I was thinking 2 indents for continuation lines are more common in the 
codebase and thought better follow this.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to