Skip to content

Commit 3e4438d

Browse files
committed
initial commit
1 parent cc00e99 commit 3e4438d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sql/core/src/test/scala/org/apache/spark/sql/DatasetCacheSuite.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ class DatasetCacheSuite extends QueryTest with SharedSQLContext {
4343
// joined Dataset should not be persisted
4444
val joined = ds1.joinWith(ds2, $"a.value" === $"b.value")
4545
assert(joined.storageLevel == StorageLevel.NONE)
46+
ds1.unpersist()
47+
ds2.unpersist()
4648
}
4749

4850
test("persist and unpersist") {
@@ -59,6 +61,7 @@ class DatasetCacheSuite extends QueryTest with SharedSQLContext {
5961
// Drop the cache.
6062
cached.unpersist()
6163
assert(cached.storageLevel == StorageLevel.NONE, "The Dataset should not be cached.")
64+
ds.unpersist()
6265
}
6366

6467
test("persist and then rebind right encoder when join 2 datasets") {

0 commit comments

Comments
 (0)