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

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


The following commit(s) were added to refs/heads/branch-4.1 by this push:
     new 8c82d0257f6 branch-4.1: [fix](regression-test) Make test_analyze 
independent of the SQL cache #68829 (#68843)
8c82d0257f6 is described below

commit 8c82d0257f6a195384c6bec61c3e3a35f89cb5d1
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Sat Oct 10 09:27:37 2026 +0800

    branch-4.1: [fix](regression-test) Make test_analyze independent of the SQL 
cache #68829 (#68843)
    
    Cherry-picked from #68829
    
    Co-authored-by: yujun <[email protected]>
---
 regression-test/suites/statistics/analyze_stats.groovy | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/regression-test/suites/statistics/analyze_stats.groovy 
b/regression-test/suites/statistics/analyze_stats.groovy
index 7814f2924d1..d397c4c08ac 100644
--- a/regression-test/suites/statistics/analyze_stats.groovy
+++ b/regression-test/suites/statistics/analyze_stats.groovy
@@ -120,6 +120,12 @@ suite("test_analyze") {
         SET forbid_unknown_col_stats=false;
     """
 
+    // DROP STATS does not invalidate the SQL cache and the stats version is 
not part of the cache
+    // key, so a cached SELECT is replayed without planning and 
forbid_unknown_col_stats never fires.
+    sql """
+        SET enable_sql_cache=false;
+    """
+
     sql """
         SELECT * FROM ${tbl}
     """


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

Reply via email to