HyukjinKwon commented on a change in pull request #30973:
URL: https://github.com/apache/spark/pull/30973#discussion_r550950842



##########
File path: 
sql/core/src/main/scala/org/apache/spark/sql/execution/BaseScriptTransformationExec.scala
##########
@@ -69,9 +75,19 @@ trait BaseScriptTransformationExec extends UnaryExecNode {
     }
   }
 
-  protected def initProc: (OutputStream, Process, InputStream, CircularBuffer) 
= {
-    val cmd = List("/bin/bash", "-c", script)

Review comment:
       Why is that? You can call it via `/bin/bash`:
   
   ```
   $ echo "#! /usr/bin/python\nprint('hello')" > test.py
   $ chmod 755 test.py
   $ PATH=PATH$:`pwd` /bin/bash -c "test.py"
   hello
   ```




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

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