Github user zhichao-li commented on a diff in the pull request:
https://github.com/apache/spark/pull/6404#discussion_r31406980
--- Diff:
sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/ScriptTransformation.scala
---
@@ -58,6 +59,7 @@ case class ScriptTransformation(
child.execute().mapPartitions { iter =>
val cmd = List("/bin/bash", "-c", script)
val builder = new ProcessBuilder(cmd)
+ builder.redirectError(Redirect.INHERIT)
--- End diff --
`builder.redirectError(Redirect.INHERIT)` would consuming the error output
from buffer and then print it to stderr (inherit the target from the current
Scala process).
If without this there would be 2 issues:
1) The error msg generated by the script process would be hidden.
2) If the error msg is too big to be hold by the buffer, the input logic
would be hang (There's are simple steps on jira to reproduce this behavior).
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]