[fix](variant) Bind Variant search to nested indexes#63765
Draft
eldenmoon wants to merge 1 commit into
Draft
Conversation
### What problem does this PR solve? Issue Number: N/A Related PR: apache#63660 Problem Summary: Backport apache#63660 to branch-4.1. Bind Variant inverted-index search to the resolved scalar or nested Variant index reader, map nested leaf results back to the expected document scope, and preserve null bitmap semantics for empty bitset truth bitmaps. Adapt the segment index iterator call to the branch-4.1 ColumnReader API. Cherry-picked from commits 8310d28 and 315ad31. ### Release note Fix Variant inverted-index search binding for scalar and nested Variant paths. ### Check List (For Author) - Test: - Unit Test: ./run-be-ut.sh --run --filter='*Variant*:FunctionSearchTest.TestBuildLeafQueryDirectUnknownClauseUsesLeafMapper:FunctionSearchNestedTest.*:BitSetQueryTest.EmptyTruthBitmapPreservesNullBitmap' - Behavior changed: Yes. Fixes Variant inverted-index search binding and null bitmap handling. - Does this need documentation: No
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What problem does this PR solve?
Backport #63660 to branch-4.1.
This fixes Variant inverted-index search binding for scalar and nested Variant paths. It resolves search clauses to the correct scalar or nested Variant index reader, maps nested leaf query results back to the expected document scope, and preserves null bitmap semantics when the truth bitmap is empty.
The backport keeps the original behavior changes and adapts the segment index iterator call to the existing branch-4.1
ColumnReaderAPI.Issue Number: N/A
Related PR: #63660
Release note
Fix Variant inverted-index search binding for scalar and nested Variant paths.
Check List (For Author)
VariantDocModeCompactionTest.variant_doc_mode_compaction_merge_10_segments, Release-only slow test)