diff --git a/regression-test/suites/statistics/analyze_stats.groovy b/regression-test/suites/statistics/analyze_stats.groovy index e19514eae1..e9d9939811 100644 --- a/regression-test/suites/statistics/analyze_stats.groovy +++ b/regression-test/suites/statistics/analyze_stats.groovy @@ -29,6 +29,12 @@ suite("test_analyze") { 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}` """ @@ -917,7 +923,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 """