This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-4.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-4.1 by this push:
new a5d6d97d4d1 branch-4.1: [fix](regression) Pin the VARIANT subcolumn
limit in test_match_keyword_score #70151 (#71207)
a5d6d97d4d1 is described below
commit a5d6d97d4d1c01697b8cd581d52f9eddb503b482
Author: Jack <[email protected]>
AuthorDate: Wed Dec 2 11:33:33 2026 +0800
branch-4.1: [fix](regression) Pin the VARIANT subcolumn limit in
test_match_keyword_score #70151 (#71207)
### What problem does this PR solve?
Issue Number: None
Related PR: #70151
PR Type: Test
Problem Summary:
Cherry-pick of #70151 to branch-4.1.
`test_match_keyword_score` came to branch-4.1 with #69791, but its fix
#70151 did not. CI fuzzes `default_variant_max_subcolumns_count`
(`random.nextInt(10)` on branch-4.1). With a limit below the three paths
of the test table, path `p` moves to the sparse column, which has no
index, so `V2_variant_sparse_path` scores 0 instead of 0.980829. This
fails cloud_p0 at random on branch-4.1, for example in #71020 and
#71177, which do not touch this code. The test now sets the limit to 0,
which means no limit.
Pick type: cherry-pick with one conflict, in a comment. The two comment
lines above the change are worded differently on branch-4.1 ("aborting
the BE" instead of "failing"). I kept the branch-4.1 wording and added
the new comment and the `SET` statement unchanged.
### Release note
None
### Check List (For Author)
- Test:
- [x] Regression test: the change only adds a `SET` to this suite. Not
run locally; CI runs it.
- `default_variant_max_subcolumns_count` exists on branch-4.1
(`SessionVariable.DEFAULT_VARIANT_MAX_SUBCOLUMNS_COUNT`), and 0 means
every path is materialized (`ColumnVariant::_max_subcolumns_count ==
0`).
- Behavior changed:
- [x] No.
- Does this need documentation?
- [x] No.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 5.5 <[email protected]>
---
.../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 56daca02b31..72ffc6a4b25 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
@@ -96,6 +96,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 aborting the BE, 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 default_variant_max_subcolumns_count = 0"
sql "set default_variant_enable_typed_paths_to_sparse = false"
sql "set default_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]