From 4694a7398fb0eb79628fbd8e0259cf8cb4ed2dc0 Mon Sep 17 00:00:00 2001 From: liangj777 <106017102+LIANG751234313@users.noreply.github.com> Date: Mon, 13 Jul 2026 18:04:17 +0800 Subject: [PATCH] [test](regression) Force index pushdown for multi match null query (#65505) ### What problem does this PR solve? Issue Number: close #xxx Related PR: #xxx Problem Summary: ### Release note None ### Check List (For Author) - Test - [ ] Regression test - [ ] Unit Test - [ ] Manual test (add detailed scripts or steps below) - [ ] No need to test or manual test. Explain why: - [ ] This is a refactor/code format and no logic has been changed. - [ ] Previous test can cover this change. - [ ] No code files have been changed. - [ ] Other reason - Behavior changed: - [ ] No. - [ ] Yes. - Does this need documentation? - [ ] No. - [ ] Yes. ### Check List (For Reviewer who merge this PR) - [ ] Confirm the release note - [ ] Confirm test cases - [ ] Confirm document - [ ] Add branch pick label --- .../inverted_index_p0/test_multi_match_null_query.groovy | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/regression-test/suites/inverted_index_p0/test_multi_match_null_query.groovy b/regression-test/suites/inverted_index_p0/test_multi_match_null_query.groovy index 7b516ca851757a..4444f1562f4940 100644 --- a/regression-test/suites/inverted_index_p0/test_multi_match_null_query.groovy +++ b/regression-test/suites/inverted_index_p0/test_multi_match_null_query.groovy @@ -36,8 +36,10 @@ suite("test_multi_match_null_query", "p0") { // Disable FE constant folding so NULL is not optimized to VEMPTYSET, // forcing the predicate to reach the BE inverted index path (pushAggOp=COUNT_ON_INDEX). sql "SET disable_nereids_expression_rules = 'FOLD_CONSTANT_ON_FE'" - sql "SET enable_fold_constant_by_be = 'true'" - sql "SET enable_sql_cache = 0" + sql "SET enable_fold_constant_by_be = true" + sql "SET enable_sql_cache = false" + sql "SET enable_common_expr_pushdown = true" + sql "SET enable_common_expr_pushdown_for_inverted_index = true" qt_sql "SELECT count() FROM test_multi_match_null_query WHERE body MATCH_ALL NULL" qt_sql "SELECT count() FROM test_multi_match_null_query WHERE body MATCH_ANY NULL"