Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[SPARK-25144][SQL][TEST] Free aggregate map when task ends
  • Loading branch information
dongjoon-hyun committed Aug 20, 2018
commit 27497f5c92182df12e1f5750adf1384a4b7084d0
Original file line number Diff line number Diff line change
Expand Up @@ -2852,4 +2852,12 @@ class SQLQuerySuite extends QueryTest with SharedSQLContext {
spark.sql(s"select * from spark_25084 distribute by ($distributeExprs)").count === count)
}
}

test("SPARK-25144 'distinct' causes memory leak") {
val ds = List(Foo(Some("bar"))).toDS
val result = ds.flatMap(_.bar).distinct
result.rdd.isEmpty
}
}

case class Foo(bar: Option[String])