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 851110b83e5 branch-4.2: [fix](regression) Pin the VARIANT subcolumn
limit in test_match_keyword_score (#71265)
851110b83e5 is described below
commit 851110b83e544a4d4582e97919faec7e05a1ad99
Author: lihangyu <[email protected]>
AuthorDate: Wed Dec 2 15:08:20 2026 +0800
branch-4.2: [fix](regression) Pin the VARIANT subcolumn limit in
test_match_keyword_score (#71265)
cherry-pick #70151
DORIS-30676
### What problem does this PR solve?
The Cloud P0 run at
http://doris-ci.com/builds/agent-test/20504/index.html failed in
`test_match_keyword_score`. The test assumes every VARIANT path in its
fixture gets its own inverted index. A fuzzed subcolumn limit of 1 moves
`p` into sparse storage, so `MATCH` finds the row and produces a BM25
score of `0` where the test expects `0.980829`.
Set `debug_variant_max_subcolumns_count` to `0` before creating the
VARIANT fixture so each path present in a segment gets its own
subcolumn. This uses the 4.2 name of the session variable. The larger
backport in #70352 also includes this change.
### Validation
- Reproduced `[1, 0]` in the original suite with an inherited subcolumn
limit of 1 on an isolated dev-x Cloud cluster with 4.2 FE and BE and
4.1.5 MetaService.
- The fixed suite passed all 54 checks with inherited limits of 1 and 0,
including V2, V3, and SNII inverted index formats.
### Release note
None. This change stabilizes a regression test.
---
.../suites/inverted_index_p0/test_match_keyword_score.groovy | 4 ++++
1 file changed, 4 insertions(+)
diff --git
a/regression-test/suites/inverted_index_p0/test_match_keyword_score.groovy
b/regression-test/suites/inverted_index_p0/test_match_keyword_score.groovy
index aedfd0fd137..300ad1d9bd8 100644
--- a/regression-test/suites/inverted_index_p0/test_match_keyword_score.groovy
+++ b/regression-test/suites/inverted_index_p0/test_match_keyword_score.groovy
@@ -99,6 +99,10 @@ suite("test_match_keyword_score", "p0") {
// index, so CAST(v['n'] AS STRING) MATCH collects statistics for n;
the BKD segment adds
// none instead of failing, and its rows match without the index with
score 0. p exists
// only in the first insert: the other segment has no index for it and
adds nothing.
+ // Every path must be a subcolumn with its own index. CI fuzzes the
subcolumn limit, and a
+ // limit below the three paths moves the rest to the sparse column,
which has no index and
+ // scores 0; 0 is no limit.
+ sql "set debug_variant_max_subcolumns_count = 0"
sql "set debug_variant_enable_typed_paths_to_sparse = false"
sql "set debug_variant_enable_doc_mode = false"
sql "DROP TABLE IF EXISTS test_match_keyword_score_variant"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]