Github user advancedxy commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21397#discussion_r189973566
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/python/ArrowPythonRunner.scala
 ---
    @@ -94,8 +88,18 @@ class ArrowPythonRunner(
                 writer.writeBatch()
                 arrowWriter.reset()
               }
    -        } {
               writer.end()
    --- End diff --
    
    So basically your change makes sure that `root` and `allocator` is safely 
closed in the final block and hence we don't need the safe belt in 
`TaskCompletionListener`?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to