linrrzqqq opened a new pull request, #58291:
URL: https://github.com/apache/doris/pull/58291
### What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
The test `test_binary_for_digest` was failing when running Regression
External tests because it depended on a pre-existing `doris_test` database in
the external MySQL instance. This database is only created during query_p0 test
suite execution, which will cause error:
```text
Exception in
query_p0/sql_functions/encryption_digest/test_binary_for_digest.groovy(line 51):
connect("root", "123456",
"jdbc:mysql://${externalEnvIp}:${mysql_port}/doris_test?useSSL=false") {
try_sql """DROP TABLE IF EXISTS ${test_table}"""
sql """CREATE TABLE ${test_table} (
id int,
vb varbinary(100),
vc VARCHAR(100)
)"""
sql """INSERT INTO ${test_table} VALUES
^^^^^^^^^^^^^^^^^^^^^^^^^^ERROR LINE^^^^^^^^^^^^^^^^^^^^^^^^^^
(1, 'hello world', 'hello world'),
(2, 'test data', 'test data'),
(3, 'hash test', 'hash test'),
(4, '', ''),
(5, 'special chars: !@#%', 'special chars: !@#%')"""
}
sql """switch ${catalog_name}"""
sql """use ${ex_db_name}"""
Exception:
java.sql.SQLSyntaxErrorException: Table 'doris_test.binary_test' doesn't
exist
```
Now creates `binary_for_digest_test` database at test startup instead of
relying on `doris_test`.
### Release note
None
### Check List (For Author)
- Test <!-- At least one of them must be included. -->
- [ ] Regression test
- [ ] Unit Test
- [ ] Manual test (add detailed scripts or steps below)
- [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
- [ ] Previous test can cover this change.
- [ ] No code files have been changed.
- [ ] Other reason <!-- Add your reason? -->
- Behavior changed:
- [ ] No.
- [ ] Yes. <!-- Explain the behavior change -->
- Does this need documentation?
- [ ] No.
- [ ] Yes. <!-- Add document PR link here. eg:
https://github.com/apache/doris-website/pull/1214 -->
### Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR should
merge into -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]