This is an automated email from the ASF dual-hosted git repository.

gurwls223 pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-3.0 by this push:
     new e1f9d92  [SPARK-31997][SQL][TESTS] Drop test_udtf table when 
SingleSessionSuite test completed
e1f9d92 is described below

commit e1f9d9252920da1f37deace401bf762e68230d7b
Author: yangjie01 <yangji...@baidu.com>
AuthorDate: Tue Jun 16 19:20:44 2020 +0900

    [SPARK-31997][SQL][TESTS] Drop test_udtf table when SingleSessionSuite test 
completed
    
    ### What changes were proposed in this pull request?
    `SingleSessionSuite` not do `DROP TABLE IF EXISTS test_udtf` when test 
completed, then if we do mvn test `HiveThriftBinaryServerSuite`, the test case 
named `SPARK-11595 ADD JAR with input path having URL scheme` will FAILED 
because it want to re-create an exists table test_udtf.
    
    ### Why are the changes needed?
    test suite shouldn't rely on their execution order
    
    ### Does this PR introduce _any_ user-facing change?
    no
    
    ### How was this patch tested?
    Manual test,mvn test SingleSessionSuite and HiveThriftBinaryServerSuite in 
order
    
    Closes #28838 from LuciferYang/drop-test-table.
    
    Authored-by: yangjie01 <yangji...@baidu.com>
    Signed-off-by: HyukjinKwon <gurwls...@apache.org>
    (cherry picked from commit d24d27f1bc39e915df23d65f8fda0d83e716b308)
    Signed-off-by: HyukjinKwon <gurwls...@apache.org>
---
 .../apache/spark/sql/hive/thriftserver/HiveThriftServer2Suites.scala    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/HiveThriftServer2Suites.scala
 
b/sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/HiveThriftServer2Suites.scala
index 4e6d4e1..396e7f9 100644
--- 
a/sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/HiveThriftServer2Suites.scala
+++ 
b/sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/HiveThriftServer2Suites.scala
@@ -871,7 +871,7 @@ class SingleSessionSuite extends HiveThriftJdbcTest {
     s"--conf ${HIVE_THRIFT_SERVER_SINGLESESSION.key}=true" :: Nil
 
   test("share the temporary functions across JDBC connections") {
-    withMultipleConnectionJdbcStatement()(
+    withMultipleConnectionJdbcStatement("test_udtf")(
       { statement =>
         val jarPath = "../hive/src/test/resources/TestUDTF.jar"
         val jarURL = s"file://${System.getProperty("user.dir")}/$jarPath"


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to