This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-4.0 by this push:
new cadeb783ee1 branch-4.0: [Fix](p0) Remove dependency on pre-existing
doris_test database in binary digest test #58291 (#58503)
cadeb783ee1 is described below
commit cadeb783ee1cf2bfbdbc0b908c196378a0c12a16
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Fri Nov 28 21:08:33 2025 +0800
branch-4.0: [Fix](p0) Remove dependency on pre-existing doris_test database
in binary digest test #58291 (#58503)
Cherry-picked from #58291
Co-authored-by: linrrarity <[email protected]>
---
.../encryption_digest/test_binary_for_digest.groovy | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git
a/regression-test/suites/query_p0/sql_functions/encryption_digest/test_binary_for_digest.groovy
b/regression-test/suites/query_p0/sql_functions/encryption_digest/test_binary_for_digest.groovy
index b8c005db2cf..a7b87681efe 100644
---
a/regression-test/suites/query_p0/sql_functions/encryption_digest/test_binary_for_digest.groovy
+++
b/regression-test/suites/query_p0/sql_functions/encryption_digest/test_binary_for_digest.groovy
@@ -24,7 +24,7 @@ suite("test_binary_for_digest",
"p0,external,mysql,external_docker,external_dock
if (enabled != null && enabled.equalsIgnoreCase("true")) {
String catalog_name = "mysql_varbinary_hash_catalog";
- String ex_db_name = "doris_test";
+ String ex_db_name = "binary_for_digest_test";
String mysql_port = context.config.otherConfigs.get("mysql_57_port");
String test_table = "binary_test_digiest_function_table";
@@ -39,9 +39,11 @@ suite("test_binary_for_digest",
"p0,external,mysql,external_docker,external_dock
"driver_class" = "com.mysql.cj.jdbc.Driver"
);"""
- connect("root", "123456",
"jdbc:mysql://${externalEnvIp}:${mysql_port}/doris_test?useSSL=false") {
- try_sql """DROP TABLE IF EXISTS ${test_table}"""
-
+ connect("root", "123456",
"jdbc:mysql://${externalEnvIp}:${mysql_port}?useSSL=false") {
+ try_sql """DROP DATABASE IF EXISTS ${ex_db_name}"""
+ sql """CREATE DATABASE ${ex_db_name}"""
+ sql """USE ${ex_db_name}"""
+
sql """CREATE TABLE ${test_table} (
id int,
vb varbinary(100),
@@ -137,8 +139,8 @@ suite("test_binary_for_digest",
"p0,external,mysql,external_docker,external_dock
"Variadic xxHash64 should work with mixed VarBinary and
VARCHAR arguments for row ${variadic_xxhash64_result[i][0]}")
}
- connect("root", "123456",
"jdbc:mysql://${externalEnvIp}:${mysql_port}/doris_test?useSSL=false") {
- try_sql """DROP TABLE IF EXISTS ${test_table}"""
+ connect("root", "123456",
"jdbc:mysql://${externalEnvIp}:${mysql_port}?useSSL=false") {
+ try_sql """DROP DATABASE IF EXISTS ${ex_db_name}"""
}
sql """drop catalog if exists ${catalog_name}"""
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]