Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

Commit

Permalink
[NSE-436] Fix for Arrow Data Source test suite (#437)
Browse files Browse the repository at this point in the history
Closes #436
  • Loading branch information
zhztheplayer authored Jul 28, 2021
1 parent 5bcd805 commit 0b9626e
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,10 @@ class ArrowDataSourceTest extends QueryTest with SharedSparkSession {

test("file descriptor leak - v1") {
val path = ArrowDataSourceTest.locateResourcePath(parquetFile1)
spark.catalog.createTable("ptab2", path, "arrow")
val frame = spark.read
.option(ArrowOptions.KEY_ORIGINAL_FORMAT, "parquet")
.arrow(path)
frame.createOrReplaceTempView("ptab2")

def getFdCount: Long = {
ManagementFactory.getOperatingSystemMXBean
Expand Down

0 comments on commit 0b9626e

Please sign in to comment.