Github user srowen commented on a diff in the pull request:
https://github.com/apache/spark/pull/22337#discussion_r216130925
--- Diff:
sql/core/src/test/scala/org/apache/spark/sql/execution/benchmark/WideSchemaBenchmark.scala
---
@@ -54,8 +54,11 @@ class WideSchemaBenchmark extends SparkFunSuite with
BeforeAndAfterEach {
}
override def afterAll() {
- super.afterAll()
- out.close()
+ try {
+ super.afterAll()
+ } finally {
+ out.close()
--- End diff --
IMHO this is clearly an error and we should swap it
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]