@@ -24,7 +24,7 @@ suite("test_binary_for_digest", "p0,external,mysql,external_docker,external_dock
2424
2525 if (enabled != null && enabled. equalsIgnoreCase(" true" )) {
2626 String catalog_name = " mysql_varbinary_hash_catalog" ;
27- String ex_db_name = " doris_test " ;
27+ String ex_db_name = " binary_for_digest_test " ;
2828 String mysql_port = context. config. otherConfigs. get(" mysql_57_port" );
2929 String test_table = " binary_test_digiest_function_table" ;
3030
@@ -39,9 +39,11 @@ suite("test_binary_for_digest", "p0,external,mysql,external_docker,external_dock
3939 "driver_class" = "com.mysql.cj.jdbc.Driver"
4040 );"""
4141
42- connect(" root" , " 123456" , " jdbc:mysql://${ externalEnvIp} :${ mysql_port} /doris_test?useSSL=false" ) {
43- try_sql """ DROP TABLE IF EXISTS ${ test_table} """
44-
42+ connect(" root" , " 123456" , " jdbc:mysql://${ externalEnvIp} :${ mysql_port} ?useSSL=false" ) {
43+ try_sql """ DROP DATABASE IF EXISTS ${ ex_db_name} """
44+ sql """ CREATE DATABASE ${ ex_db_name} """
45+ sql """ USE ${ ex_db_name} """
46+
4547 sql """ CREATE TABLE ${ test_table} (
4648 id int,
4749 vb varbinary(100),
@@ -137,8 +139,8 @@ suite("test_binary_for_digest", "p0,external,mysql,external_docker,external_dock
137139 " Variadic xxHash64 should work with mixed VarBinary and VARCHAR arguments for row ${ variadic_xxhash64_result[i][0]} " )
138140 }
139141
140- connect(" root" , " 123456" , " jdbc:mysql://${ externalEnvIp} :${ mysql_port} /doris_test ?useSSL=false" ) {
141- try_sql """ DROP TABLE IF EXISTS ${ test_table } """
142+ connect(" root" , " 123456" , " jdbc:mysql://${ externalEnvIp} :${ mysql_port} ?useSSL=false" ) {
143+ try_sql """ DROP DATABASE IF EXISTS ${ ex_db_name } """
142144 }
143145
144146 sql """ drop catalog if exists ${ catalog_name} """
0 commit comments