Github user chenghao-intel commented on a diff in the pull request:

    https://github.com/apache/spark/pull/5625#discussion_r28970625
  
    --- Diff: 
sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/ScriptTransformation.scala
 ---
    @@ -145,20 +147,27 @@ case class ScriptTransformation(
           val dataOutputStream = new DataOutputStream(outputStream)
           val outputProjection = new InterpretedProjection(input, child.output)
     
    -      iter
    -        .map(outputProjection)
    -        .foreach { row =>
    +      // Put the write(output to the pipeline) into a single thread
    +      // and keep the collector as remain in the main thread.
    +      // otherwise it will causes deadlock if the data size greater than
    +      // the pipeline / buffer capacity.
    +      future {
    --- End diff --
    
    Thank you @rxin, I think you are right, updated!


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

Reply via email to