Github user icexelloss commented on a diff in the pull request:
https://github.com/apache/spark/pull/21397#discussion_r189942402
--- 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 --
This is moved out of the finally block because this function will throw
exception if the thread is interrupted. writer.end() also doesn't do any clean
up - it just writes some final bits to the output channel so we don't need to
call it in clean up.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]