File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
paimon-spark/paimon-spark-ut/src/test/scala/org/apache/paimon/spark Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,7 @@ import org.apache.spark.SparkConf
2626import org .apache .spark .sql .paimon .Utils
2727
2828import java .io .File
29- import java .util .concurrent .{ThreadLocalRandom , TimeUnit }
30- import java .util .concurrent .locks .ReentrantLock
29+ import java .util .concurrent .ThreadLocalRandom
3130
3231class PaimonHiveTestBase extends PaimonSparkTestBase {
3332
@@ -61,22 +60,22 @@ class PaimonHiveTestBase extends PaimonSparkTestBase {
6160 }
6261
6362 override protected def beforeAll (): Unit = {
64- lock.tryLock(10 , TimeUnit .MINUTES )
6563 testHiveMetastore.start(hivePort)
6664 super .beforeAll()
6765 spark.sql(s " USE $sparkCatalogName" )
6866 spark.sql(s " CREATE DATABASE IF NOT EXISTS $hiveDbName" )
67+ println(s " CREATE DATABASE IF NOT EXISTS $hiveDbName" )
6968 }
7069
7170 override protected def afterAll (): Unit = {
7271 try {
7372 spark.sql(s " USE $sparkCatalogName" )
7473 spark.sql(" USE default" )
7574 spark.sql(s " DROP DATABASE $hiveDbName CASCADE " )
75+ println(s " DROP DATABASE $hiveDbName CASCADE " )
7676 } finally {
7777 super .afterAll()
7878 testHiveMetastore.stop()
79- lock.unlock()
8079 }
8180 }
8281
@@ -100,6 +99,4 @@ object PaimonHiveTestBase {
10099 }
101100
102101 val hivePort : Int = hiveUri.split(" :" )(2 ).toInt
103-
104- val lock = new ReentrantLock
105102}
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ class PaimonFunctionTest extends PaimonHiveTestBase {
104104 sql(" CREATE FUNCTION myIntSum AS 'org.apache.paimon.spark.sql.MyIntSum'" )
105105 checkAnswer(
106106 sql(s " SHOW FUNCTIONS FROM $hiveDbName LIKE 'myIntSum' " ),
107- Row (" spark_catalog.test_hive .myintsum" ))
107+ Row (s " spark_catalog. $hiveDbName .myintsum " ))
108108
109109 withTable(" t" ) {
110110 sql(" CREATE TABLE t (id INT) USING paimon" )
You can’t perform that action at this time.
0 commit comments