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


##########
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:
   This is a Scala limitation. `protected val` is compiled as a field, and 
Scala’s protected access is restricted to the same instance, so `super.val` may 
not be accessible. Using `def` or `lazy val` works since they are accessed via 
methods.



-- 
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