This is an automated email from the ASF dual-hosted git repository.

kxiao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git

commit cbe7e129ff860e9eccc13ae956e4fe631e7d1388
Author: Dongyang Li <[email protected]>
AuthorDate: Wed Oct 11 19:28:14 2023 +0800

    [fix](case) use the custom DB explicitly in analyze_stats.groovy (#25285)
    
    Co-authored-by: stephen <[email protected]>
    use the custom DB explicitly in analyze_stats.groovy
---
 regression-test/suites/statistics/analyze_stats.groovy | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/regression-test/suites/statistics/analyze_stats.groovy 
b/regression-test/suites/statistics/analyze_stats.groovy
index 673762e9e94..1c374495034 100644
--- a/regression-test/suites/statistics/analyze_stats.groovy
+++ b/regression-test/suites/statistics/analyze_stats.groovy
@@ -19,6 +19,20 @@ suite("test_analyze") {
     String db = "test_analyze"
     String tbl = "analyzetestlimited_duplicate_all"
 
+    sql """
+        DROP DATABASE IF EXISTS `${db}`
+    """
+
+    sql """
+        CREATE DATABASE `${db}`
+    """
+
+    // regression framework will auto create an default DB with name 
regression_test_$(case dir name) and use it to run case,
+    // if we do not use the default DB, here we should use the custom DB 
explicitly
+    sql """
+        USE `${db}`
+    """
+
     sql """
         DROP TABLE IF EXISTS `${tbl}`
     """
@@ -907,7 +921,7 @@ PARTITION `p599` VALUES IN (599)
     expected_col_stats(inc_res, 6, 1)
 
     sql """
-        DROP TABLE regression_test_statistics.increment_analyze_test;
+        DROP TABLE increment_analyze_test;
     """
 
     sql """


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to