This is an automated email from the ASF dual-hosted git repository.
yujun777 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 311306e520a [fix](regression) Wait for row counts before analyzing
count rollup tables (#70652)
311306e520a is described below
commit 311306e520a14c1bef794a23b960a4bddf57852b
Author: yujun <[email protected]>
AuthorDate: Wed Nov 18 09:58:07 2026 +0800
[fix](regression) Wait for row counts before analyzing count rollup tables
(#70652)
The count rollup regression checks that aggregating an empty
materialized-view input returns zero through sum0. The test refreshes an
asynchronous materialized view and collects statistics before checking
that the optimizer selects it.
---
.../mv/count_rollup_empty_input/count_rollup_empty_input.groovy | 4 ++++
1 file changed, 4 insertions(+)
diff --git
a/regression-test/suites/nereids_rules_p0/mv/count_rollup_empty_input/count_rollup_empty_input.groovy
b/regression-test/suites/nereids_rules_p0/mv/count_rollup_empty_input/count_rollup_empty_input.groovy
index 15f3e011cc4..77d4f0fc08b 100644
---
a/regression-test/suites/nereids_rules_p0/mv/count_rollup_empty_input/count_rollup_empty_input.groovy
+++
b/regression-test/suites/nereids_rules_p0/mv/count_rollup_empty_input/count_rollup_empty_input.groovy
@@ -45,6 +45,10 @@ suite("count_rollup_empty_input") {
sql "REFRESH MATERIALIZED VIEW rollup_empty_mv COMPLETE"
waitingMTMVTaskFinishedByMvName("rollup_empty_mv")
+ // Wait for asynchronous row count reporting before collecting optimizer
statistics.
+ waitRowCountReady(db, "rollup_empty_base", 3)
+ waitRowCountReady(db, "rollup_empty_mv", 2)
+
sql "ANALYZE TABLE rollup_empty_base WITH SYNC"
sql "ANALYZE TABLE rollup_empty_mv WITH SYNC"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]