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 d35a2d49941 branch-4.2: [fix](regression) Align spill q24 queries with
corrected baselines #70168 (#71453)
d35a2d49941 is described below
commit d35a2d4994183f326384290074e533145a7a1517
Author: Jerry Hu <[email protected]>
AuthorDate: Sat Dec 5 22:06:54 2026 +0800
branch-4.2: [fix](regression) Align spill q24 queries with corrected
baselines #70168 (#71453)
### What problem does this PR solve?
Issue Number: None
Related PR: #70168
Cherry-picked from #70168 for `branch-4.2`. No conflicts or
branch-specific adaptations were required.
Problem Summary: The TPC-DS SF1 UNIQUE and UNIQUE CK spill q24 suites
still used a birth-country equality predicate, while their ordinary
counterparts used inequality. Their stale nonempty expected results also
did not match the queries with the current-address join, causing false
regression failures.
This PR aligns the four spill queries with the ordinary q24 SQL and
carries over the corrected empty expected outputs. The current-address
join and forced-spill settings are preserved. Only regression SQL and
expected outputs change; there is no product behavior change.
### Testing
Validated on an isolated 1 FE + 1 BE built from the target branch, using
locally generated TPC-DS 3.2.0rc2 SF1 data. Both models used the target
branch's original DDL and load mappings: all 48 tables loaded with zero
filtered rows, and independent counts matched the source data.
- BE Release build: `./build.sh --be --hive-udf -j 48` passed.
- FE build: `./build.sh --fe -j 48` passed, including FE Checkstyle.
- Regression: **10 suites passed, 0 failed, 0 fatal, 0 skipped**: four
spill q24 suites, four ordinary q24 suites, and two q01 spill controls.
The two controls were also queried independently; each returned 100 rows
and matched its existing baseline exactly. No expected output was
regenerated during target-branch validation.
- `./build-support/check-format.sh` and `git diff --check
origin/branch-4.2...HEAD` passed.
Regression commands (`<isolated-regression-conf>` denotes the isolated
cluster configuration):
```bash
./run-regression-test.sh --conf <isolated-regression-conf> --run -d
tpcds_sf1_unique_p1/spill -s q24_1_spill,q24_2_spill,q01_spill -parallel 1
-suiteParallel 1
./run-regression-test.sh --conf <isolated-regression-conf> --run -d
tpcds_sf1_unique_p1/sql -s q24_1,q24_2 -parallel 1 -suiteParallel 1
./run-regression-test.sh --conf <isolated-regression-conf> --run -d
tpcds_sf1_unique_ck_p1/spill -s q24_1_spill,q24_2_spill,q01_spill -parallel 1
-suiteParallel 1
./run-regression-test.sh --conf <isolated-regression-conf> --run -d
tpcds_sf1_unique_ck_p1/sql -s q24_1,q24_2 -parallel 1 -suiteParallel 1
```
### Release note
None
### Check List (For Author)
- Test
- [x] Regression test
- Behavior changed:
- [x] No product behavior change.
- Does this need documentation?
- [x] No.
---
regression-test/data/tpcds_sf1_unique_ck_p1/spill/q24_1.out | 7 -------
regression-test/data/tpcds_sf1_unique_ck_p1/spill/q24_2.out | 1 -
regression-test/data/tpcds_sf1_unique_p1/spill/q24_1.out | 7 -------
regression-test/data/tpcds_sf1_unique_p1/spill/q24_2.out | 1 -
regression-test/suites/tpcds_sf1_unique_ck_p1/spill/q24_1.groovy | 2 +-
regression-test/suites/tpcds_sf1_unique_ck_p1/spill/q24_2.groovy | 2 +-
regression-test/suites/tpcds_sf1_unique_p1/spill/q24_1.groovy | 2 +-
regression-test/suites/tpcds_sf1_unique_p1/spill/q24_2.groovy | 2 +-
8 files changed, 4 insertions(+), 20 deletions(-)
diff --git a/regression-test/data/tpcds_sf1_unique_ck_p1/spill/q24_1.out
b/regression-test/data/tpcds_sf1_unique_ck_p1/spill/q24_1.out
index b5b3781427f..a87a3f6eb2f 100644
--- a/regression-test/data/tpcds_sf1_unique_ck_p1/spill/q24_1.out
+++ b/regression-test/data/tpcds_sf1_unique_ck_p1/spill/q24_1.out
@@ -1,10 +1,3 @@
-- This file is automatically generated. You should know what you did if you
want to edit this
-- !q24_1 --
- Tommy able 38118.08
-Holt Curtis able 8225.80
-Kunz Lee able 34631.52
-Littlefield Clarence able 127380.00
-Pettit Richard able 3930.52
-Townsend Franklin able 68983.20
-Winchester Margaret bar 14269.20
diff --git a/regression-test/data/tpcds_sf1_unique_ck_p1/spill/q24_2.out
b/regression-test/data/tpcds_sf1_unique_ck_p1/spill/q24_2.out
index 3dd7690d52b..04afb1f4cd5 100644
--- a/regression-test/data/tpcds_sf1_unique_ck_p1/spill/q24_2.out
+++ b/regression-test/data/tpcds_sf1_unique_ck_p1/spill/q24_2.out
@@ -1,4 +1,3 @@
-- This file is automatically generated. You should know what you did if you
want to edit this
-- !q24_2 --
-Griffith Ray able 161564.48
diff --git a/regression-test/data/tpcds_sf1_unique_p1/spill/q24_1.out
b/regression-test/data/tpcds_sf1_unique_p1/spill/q24_1.out
index b5b3781427f..a87a3f6eb2f 100644
--- a/regression-test/data/tpcds_sf1_unique_p1/spill/q24_1.out
+++ b/regression-test/data/tpcds_sf1_unique_p1/spill/q24_1.out
@@ -1,10 +1,3 @@
-- This file is automatically generated. You should know what you did if you
want to edit this
-- !q24_1 --
- Tommy able 38118.08
-Holt Curtis able 8225.80
-Kunz Lee able 34631.52
-Littlefield Clarence able 127380.00
-Pettit Richard able 3930.52
-Townsend Franklin able 68983.20
-Winchester Margaret bar 14269.20
diff --git a/regression-test/data/tpcds_sf1_unique_p1/spill/q24_2.out
b/regression-test/data/tpcds_sf1_unique_p1/spill/q24_2.out
index 3dd7690d52b..04afb1f4cd5 100644
--- a/regression-test/data/tpcds_sf1_unique_p1/spill/q24_2.out
+++ b/regression-test/data/tpcds_sf1_unique_p1/spill/q24_2.out
@@ -1,4 +1,3 @@
-- This file is automatically generated. You should know what you did if you
want to edit this
-- !q24_2 --
-Griffith Ray able 161564.48
diff --git a/regression-test/suites/tpcds_sf1_unique_ck_p1/spill/q24_1.groovy
b/regression-test/suites/tpcds_sf1_unique_ck_p1/spill/q24_1.groovy
index eb809d53e20..06d909960ec 100644
--- a/regression-test/suites/tpcds_sf1_unique_ck_p1/spill/q24_1.groovy
+++ b/regression-test/suites/tpcds_sf1_unique_ck_p1/spill/q24_1.groovy
@@ -52,7 +52,7 @@ WITH
AND (ss_item_sk = i_item_sk)
AND (ss_store_sk = s_store_sk)
AND (c_current_addr_sk = ca_address_sk)
- AND (c_birth_country = upper(ca_country))
+ AND (c_birth_country <> upper(ca_country))
AND (s_zip = ca_zip)
AND (s_market_id = 8)
GROUP BY c_last_name, c_first_name, s_store_name, ca_state, s_state,
i_color, i_current_price, i_manager_id, i_units, i_size
diff --git a/regression-test/suites/tpcds_sf1_unique_ck_p1/spill/q24_2.groovy
b/regression-test/suites/tpcds_sf1_unique_ck_p1/spill/q24_2.groovy
index 663c2626aed..abab1d33198 100644
--- a/regression-test/suites/tpcds_sf1_unique_ck_p1/spill/q24_2.groovy
+++ b/regression-test/suites/tpcds_sf1_unique_ck_p1/spill/q24_2.groovy
@@ -52,7 +52,7 @@ WITH
AND (ss_item_sk = i_item_sk)
AND (ss_store_sk = s_store_sk)
AND (c_current_addr_sk = ca_address_sk)
- AND (c_birth_country = upper(ca_country))
+ AND (c_birth_country <> upper(ca_country))
AND (s_zip = ca_zip)
AND (s_market_id = 8)
GROUP BY c_last_name, c_first_name, s_store_name, ca_state, s_state,
i_color, i_current_price, i_manager_id, i_units, i_size
diff --git a/regression-test/suites/tpcds_sf1_unique_p1/spill/q24_1.groovy
b/regression-test/suites/tpcds_sf1_unique_p1/spill/q24_1.groovy
index b51f8870a50..0dc4fd3c287 100644
--- a/regression-test/suites/tpcds_sf1_unique_p1/spill/q24_1.groovy
+++ b/regression-test/suites/tpcds_sf1_unique_p1/spill/q24_1.groovy
@@ -52,7 +52,7 @@ WITH
AND (ss_item_sk = i_item_sk)
AND (ss_store_sk = s_store_sk)
AND (c_current_addr_sk = ca_address_sk)
- AND (c_birth_country = upper(ca_country))
+ AND (c_birth_country <> upper(ca_country))
AND (s_zip = ca_zip)
AND (s_market_id = 8)
GROUP BY c_last_name, c_first_name, s_store_name, ca_state, s_state,
i_color, i_current_price, i_manager_id, i_units, i_size
diff --git a/regression-test/suites/tpcds_sf1_unique_p1/spill/q24_2.groovy
b/regression-test/suites/tpcds_sf1_unique_p1/spill/q24_2.groovy
index 23eff95e881..2f0c6d3d429 100644
--- a/regression-test/suites/tpcds_sf1_unique_p1/spill/q24_2.groovy
+++ b/regression-test/suites/tpcds_sf1_unique_p1/spill/q24_2.groovy
@@ -52,7 +52,7 @@ WITH
AND (ss_item_sk = i_item_sk)
AND (ss_store_sk = s_store_sk)
AND (c_current_addr_sk = ca_address_sk)
- AND (c_birth_country = upper(ca_country))
+ AND (c_birth_country <> upper(ca_country))
AND (s_zip = ca_zip)
AND (s_market_id = 8)
GROUP BY c_last_name, c_first_name, s_store_name, ca_state, s_state,
i_color, i_current_price, i_manager_id, i_units, i_size
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]