hvanhovell commented on code in PR #50466:
URL: https://github.com/apache/spark/pull/50466#discussion_r2031455167
##########
core/src/main/scala/org/apache/spark/api/python/PythonRunner.scala:
##########
@@ -347,6 +348,8 @@ private[spark] abstract class BasePythonRunner[IN, OUT](
def writeNextInputToStream(dataOut: DataOutputStream): Boolean
def open(dataOut: DataOutputStream): Unit = Utils.logUncaughtExceptions {
+ val isUnixDomainSock =
authHelper.conf.get(PYTHON_UNIX_DOMAIN_SOCKET_ENABLED)
Review Comment:
Instead of if/else's everywhere you could consider using an interface with
two implementations. That improves readability of the code by a lot...
--
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]