Skip to content

branch-4.2: [fix](regression) Pin Variant mode in search document ID test (#69248) - #69250

Merged
yiguolei merged 1 commit into
apache:branch-4.2from
airborne12:pick-69248-branch-4.2
Oct 19, 2026
Merged

yiguolei merged 1 commit into
apache:branch-4.2from
airborne12:pick-69248-branch-4.2

Conversation

@airborne12

Copy link
Copy Markdown
Member

What problem does this PR solve?

Issue Number: None

Related PR: #69248 (source), #69244

Problem Summary: Backport the regression fixture fix from #69248. Fuzzy sessions can enable Variant document mode, making the fixture's INSERT fail when its parse_to_variant() values use the non-document representation. Pin default_variant_enable_doc_mode=false before creating the table.

Source commit: 654327b82d2c4976625ee55a3a94062c6dd7866d, cherry-picked with -x. The source PR is currently open; this backport uses that pinned head.

Hunk audit

Source file Disposition
regression-test/suites/search/test_search_segment_document_ids.groovy Ported verbatim; its complete postimage matches the source commit.

git range-diff shows only the added cherry-pick provenance line in the commit message. There are no code adaptations.

Release note

None

Check List (For Author)

  • Test
    • Regression test: ./run-regression-test.sh --run --conf <local-config> -d search -s test_search_segment_document_ids passed in this branch-4.2 worktree with JDBC sessionVariables=default_variant_enable_doc_mode=true: 1 suite, 0 failures, all 16 V2/SNII golden checks executed. Expected output is unchanged.
    • Manual test: the master source suite was verified RED before the one-line fix and GREEN afterward under the same forced default. Both worktrees used isolated copies of the existing branch-4.2 ASAN FE/BE runtime built for 9c2283cfe1e53f1bd6b7473fa3168125ddf1c359. No ASAN report appeared in the focused backport run. No new kernel build or BE/FE unit test run was needed for this Groovy-only change.
  • Behavior changed:
    • No production behavior changes.
  • Does this need documentation?
    • No.

Check List (For Reviewer who merge this PR)

  • Confirm the release note
  • Confirm test cases
  • Confirm document
  • Add branch pick label

### What problem does this PR solve?

Issue Number: None

Related PR: apache#68758, apache#69244

Problem Summary: Fuzzy sessions can enable Variant document mode for
test_search_segment_document_ids, while parse_to_variant() produces a
non-document Variant value. INSERT then fails before the document ID
checks run. Explicitly disable document mode for this fixture.

### Release note

None

### Check List (For Author)

- Test: The official regression runner reproduced the conversion error
  with the inherited document-mode default enabled. After the fix, the
  existing suite passed all 16 V2/SNII golden checks with the same input.
  Validation used an isolated existing branch-4.2 ASAN FE/BE runtime.
- Behavior changed: No production behavior changes.
- Does this need documentation: No.

(cherry picked from commit 654327b)
@airborne12
airborne12 requested a review from yiguolei as a code owner October 19, 2026 02:44
@hello-stephen

Copy link
Copy Markdown
Contributor

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@airborne12

Copy link
Copy Markdown
Member Author

run buildall

@yiguolei
yiguolei merged commit c622589 into apache:branch-4.2 Oct 19, 2026
29 of 30 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

PR approved by anyone and no changes requested.

@github-actions github-actions Bot added the approved Indicates a PR has been approved by one committer. label Oct 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

PR approved by at least one committer and no changes requested.

@airborne12
airborne12 deleted the pick-69248-branch-4.2 branch October 19, 2026 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants