You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "HyukjinKwon (via GitHub)" <gi...@apache.org> on 2025/12/19 08:32:07 UTC

Re: [PR] [SPARK-54701][PYTHON] Improve the runnerConf chain for Python workers [spark]

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


##########
core/src/main/scala/org/apache/spark/api/python/PythonRunner.scala:
##########
@@ -214,7 +214,7 @@ private[spark] abstract class BasePythonRunner[IN, OUT](
   protected val hideTraceback: Boolean = false
   protected val simplifiedTraceback: Boolean = false
 
-  protected val runnerConf: Map[String, String] = Map.empty
+  protected def runnerConf: Map[String, String] = Map.empty

Review Comment:
   Hm, it's better be a val to avoid recompuation though I know it's currently being called once. Should it be `def`? if that's the case `lazy val` should work too



-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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