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

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


The following commit(s) were added to refs/heads/branch-4.2 by this push:
     new cd6f4de4ee2 branch-4.2: [fix](regression) Isolate 
eliminate_distinct_constant database (#70105) (#70108)
cd6f4de4ee2 is described below

commit cd6f4de4ee26d1227826f1a7f753600b6227d738
Author: Gavin Chou <[email protected]>
AuthorDate: Wed Nov 4 08:30:55 2026 +0800

    branch-4.2: [fix](regression) Isolate eliminate_distinct_constant database 
(#70105) (#70108)
    
    ### What problem does this PR solve?
    
    Issue Number: N/A
    
    Related PR: #70105
    
    Problem Summary:
    
    Backport #70105 to `branch-4.2`.
    
    `eliminate_distinct_constant` and `eliminate_aggregate_constant` both
    drop, create, and use `test_aggregate_constant`. When the regression
    runner executes them concurrently, either suite can drop the database
    while the other is inserting or querying, causing intermittent failures.
    
    Give `eliminate_distinct_constant` its own database,
    `test_distinct_constant`, by updating its three database setup
    statements. The existing SQL assertions and expected results are
    unchanged.
    
    ### Release note
    
    None
    
    ### Check List (For Author)
    
    - Test
        - [ ] Regression test
        - [ ] Unit Test
        - [ ] Manual test (add detailed scripts or steps below)
        - [x] No need to test or manual test. Explain why:
    - [x] Other reason: This test-only change replaces three database
    identifiers. Static checks confirmed that the new database name is
    unique to this suite, the suites no longer share a database, and `git
    diff --check` passes. Live regression execution was not performed.
    
    - Behavior changed:
    - [x] No. Product behavior is unchanged; this change isolates
    regression-test data.
        - [ ] Yes.
    
    - Does this need documentation?
        - [x] No.
        - [ ] Yes.
    
    ### Check List (For Reviewer who merge this PR)
    
    - [ ] Confirm the release note
    - [ ] Confirm test cases
    - [ ] Confirm document
    - [ ] Add branch pick label
---
 .../eliminate_distinct_constant/eliminate_distinct_constant.groovy  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/regression-test/suites/nereids_rules_p0/eliminate_distinct_constant/eliminate_distinct_constant.groovy
 
b/regression-test/suites/nereids_rules_p0/eliminate_distinct_constant/eliminate_distinct_constant.groovy
index f074f0e0631..50d3d3f9564 100644
--- 
a/regression-test/suites/nereids_rules_p0/eliminate_distinct_constant/eliminate_distinct_constant.groovy
+++ 
b/regression-test/suites/nereids_rules_p0/eliminate_distinct_constant/eliminate_distinct_constant.groovy
@@ -20,9 +20,9 @@ suite("eliminate_distinct_constant") {
     sql "set runtime_filter_mode=OFF"
     sql "SET enable_fallback_to_original_planner=false"
     sql "SET ignore_shape_nodes='PhysicalDistribute'"
-    sql 'DROP DATABASE IF EXISTS test_aggregate_constant'
-    sql 'CREATE DATABASE IF NOT EXISTS test_aggregate_constant'
-    sql 'use test_aggregate_constant'
+    sql 'DROP DATABASE IF EXISTS test_distinct_constant'
+    sql 'CREATE DATABASE IF NOT EXISTS test_distinct_constant'
+    sql 'use test_distinct_constant'
     sql "set disable_nereids_rules=PRUNE_EMPTY_PARTITION"
 
 


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

Reply via email to