We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4355bf7 commit 5f7f446Copy full SHA for 5f7f446
sql/core/src/test/scala/org/apache/spark/sql/SQLQuerySuite.scala
@@ -2818,4 +2818,12 @@ class SQLQuerySuite extends QueryTest with SharedSQLContext {
2818
spark.sql(s"select * from spark_25084 distribute by ($distributeExprs)").count === count)
2819
}
2820
2821
+
2822
+ test("SPARK-25144 'distinct' causes memory leak") {
2823
+ val ds = List(Foo(Some("bar"))).toDS
2824
+ val result = ds.flatMap(_.bar).distinct
2825
+ result.rdd.isEmpty
2826
+ }
2827
2828
2829
+case class Foo(bar: Option[String])
0 commit comments