Skip to content

Commit d24d27f

Browse files
LuciferYangHyukjinKwon
authored andcommitted
[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 apache#28838 from LuciferYang/drop-test-table. Authored-by: yangjie01 <[email protected]> Signed-off-by: HyukjinKwon <[email protected]>
1 parent f0e6d0e commit d24d27f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/HiveThriftServer2Suites.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@ class SingleSessionSuite extends HiveThriftJdbcTest {
883883
s"--conf ${HIVE_THRIFT_SERVER_SINGLESESSION.key}=true" :: Nil
884884

885885
test("share the temporary functions across JDBC connections") {
886-
withMultipleConnectionJdbcStatement()(
886+
withMultipleConnectionJdbcStatement("test_udtf")(
887887
{ statement =>
888888
val jarPath = "../hive/src/test/resources/TestUDTF.jar"
889889
val jarURL = s"file://${System.getProperty("user.dir")}/$jarPath"

0 commit comments

Comments
 (0)