From 1c96922e36cc4f41b339ac534d3472112f1c16e1 Mon Sep 17 00:00:00 2001 From: feiniaofeiafei Date: Wed, 10 Jun 2026 20:32:43 +0800 Subject: [PATCH] [fix](test) fix flaky case in variables_persist test_mtmv (#64365) Problem Summary: `test_mtmv` checked `where_mv not chose` after setting `enable_decimal256=false`, but this is cost/statistics dependent. The optimizer may still choose `where_mv` as a covering scan and recompute `f1 * f2` from `f1/f2`. --- .../suites/nereids_p0/variables_persist/test_mtmv.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/regression-test/suites/nereids_p0/variables_persist/test_mtmv.groovy b/regression-test/suites/nereids_p0/variables_persist/test_mtmv.groovy index 254ac07ba1723c..e59300ae5c8fdf 100644 --- a/regression-test/suites/nereids_p0/variables_persist/test_mtmv.groovy +++ b/regression-test/suites/nereids_p0/variables_persist/test_mtmv.groovy @@ -141,14 +141,14 @@ suite("test_mtmv") { sql """ select t1.f1*t1.f2, t1.f1, t1.f2 from test_decimal_mul_overflow_for_mv t1 where t1.f1>1; """ - contains "where_mv chose" + contains "final projections: __multiply_0" } sql "set enable_decimal256=false;" explain { sql """ select t1.f1*t1.f2, t1.f1, t1.f2 from test_decimal_mul_overflow_for_mv t1 where t1.f1>1; """ - contains "where_mv not chose" + notContains "final projections: __multiply_0" } sql "drop materialized view if exists where_mv;"