From b17bac632335189ed58c68828beaaa3ef79913e9 Mon Sep 17 00:00:00 2001 From: Dongyang Li Date: Wed, 11 Oct 2023 19:28:14 +0800 Subject: [PATCH] [fix](case) use the custom DB explicitly in analyze_stats.groovy (#25285) Co-authored-by: stephen use the custom DB explicitly in analyze_stats.groovy --- regression-test/suites/statistics/analyze_stats.groovy | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 """