From 9a6b51c5dce1358ffa9b57061e71a28a9b603e8b Mon Sep 17 00:00:00 2001 From: Alfonso Roa Date: Fri, 6 Sep 2024 12:33:11 +0200 Subject: [PATCH] Avoid making an execution not used later. --- .../com/github/mrpowers/spark/fast/tests/DatasetComparer.scala | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/scala/com/github/mrpowers/spark/fast/tests/DatasetComparer.scala b/src/main/scala/com/github/mrpowers/spark/fast/tests/DatasetComparer.scala index f2a1a49..e742d99 100644 --- a/src/main/scala/com/github/mrpowers/spark/fast/tests/DatasetComparer.scala +++ b/src/main/scala/com/github/mrpowers/spark/fast/tests/DatasetComparer.scala @@ -139,7 +139,6 @@ Expected DataFrame Row Count: '$expectedCount' unequalRDDMessage(unequalRDD, maxUnequalRowsToShow) ) } - unequalRDD.take(maxUnequalRowsToShow) } finally { ds1.rdd.unpersist() @@ -173,4 +172,4 @@ Expected DataFrame Row Count: '$expectedCount' object DatasetComparer { val maxUnequalRowsToShow = 10 -} \ No newline at end of file +}