cloud-fan commented on code in PR #49107:
URL: https://github.com/apache/spark/pull/49107#discussion_r1942364924
##########
core/src/main/scala/org/apache/spark/deploy/PythonRunner.scala:
##########
@@ -52,9 +53,12 @@ object PythonRunner {
// Format python file paths before adding them to the PYTHONPATH
val formattedPythonFile = formatPath(pythonFile)
val formattedPyFiles = resolvePyFiles(formatPaths(pyFiles))
+ lazy val apiMode = sparkConf.get(SPARK_API_MODE).toLowerCase(Locale.ROOT)
+ lazy val isAPIModeClassic = apiMode == "classic"
+ lazy val isAPIModeConnect = apiMode == "connect"
Review Comment:
nit: simple computation doesn't warrant a lazy val, we can just use `def`
--
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]