You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by li...@apache.org on 2017/08/14 16:33:26 UTC
spark git commit: [MINOR][SQL][TEST] no uncache table in joinsuite
test
Repository: spark
Updated Branches:
refs/heads/master 0fcde87aa -> 0326b69c9
[MINOR][SQL][TEST] no uncache table in joinsuite test
## What changes were proposed in this pull request?
At present, in test("broadcasted hash outer join operator selection") case, set the testData2 to _CACHE TABLE_, but no _uncache table_ testData2. It can make people confused.
In addition, in the joinsuite test cases, clear the cache table of work by SharedSQLContext _spark.sharedState.cacheManager.clearCache_ to do, so we do not need to uncache table
let's fix it. thanks.
## How was this patch tested?
Existing test cases.
Author: caoxuewen <ca...@zte.com.cn>
Closes #18914 from heary-cao/uncache_table.
Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/0326b69c
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/0326b69c
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/0326b69c
Branch: refs/heads/master
Commit: 0326b69c98a4f8995bb1532b7635108d53703d53
Parents: 0fcde87
Author: caoxuewen <ca...@zte.com.cn>
Authored: Mon Aug 14 09:33:22 2017 -0700
Committer: gatorsmile <ga...@gmail.com>
Committed: Mon Aug 14 09:33:22 2017 -0700
----------------------------------------------------------------------
sql/core/src/test/scala/org/apache/spark/sql/JoinSuite.scala | 4 ----
1 file changed, 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/spark/blob/0326b69c/sql/core/src/test/scala/org/apache/spark/sql/JoinSuite.scala
----------------------------------------------------------------------
diff --git a/sql/core/src/test/scala/org/apache/spark/sql/JoinSuite.scala b/sql/core/src/test/scala/org/apache/spark/sql/JoinSuite.scala
index 3f0c864..720f040 100644
--- a/sql/core/src/test/scala/org/apache/spark/sql/JoinSuite.scala
+++ b/sql/core/src/test/scala/org/apache/spark/sql/JoinSuite.scala
@@ -126,7 +126,6 @@ class JoinSuite extends QueryTest with SharedSQLContext {
("SELECT * FROM testData join testData2 ON key = a where key = 2",
classOf[BroadcastHashJoinExec])
).foreach(assertJoin)
- sql("UNCACHE TABLE testData")
}
test("broadcasted hash outer join operator selection") {
@@ -141,7 +140,6 @@ class JoinSuite extends QueryTest with SharedSQLContext {
("SELECT * FROM testData right join testData2 ON key = a and key = 2",
classOf[BroadcastHashJoinExec])
).foreach(assertJoin)
- sql("UNCACHE TABLE testData")
}
test("multiple-key equi-join is hash-join") {
@@ -476,7 +474,6 @@ class JoinSuite extends QueryTest with SharedSQLContext {
).foreach(assertJoin)
}
- sql("UNCACHE TABLE testData")
}
test("cross join with broadcast") {
@@ -565,7 +562,6 @@ class JoinSuite extends QueryTest with SharedSQLContext {
Row("2", 3, 2) :: Nil)
}
- sql("UNCACHE TABLE testData")
}
test("left semi join") {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org