Skip to content

branch-4.1: [refactor](ann) Avoid copying ANN search results #62924#63002

Open
zhiqiang-hhhh wants to merge 1 commit intoapache:branch-4.1from
zhiqiang-hhhh:pick_62924_to_upstream_branch-4.1
Open

branch-4.1: [refactor](ann) Avoid copying ANN search results #62924#63002
zhiqiang-hhhh wants to merge 1 commit intoapache:branch-4.1from
zhiqiang-hhhh:pick_62924_to_upstream_branch-4.1

Conversation

@zhiqiang-hhhh
Copy link
Copy Markdown
Contributor

cherry pick from #62924

Issue Number: close #xxx

Related PR: #xxx

Problem Summary: ANN TopN copied distance results into an intermediate
vector before materializing the virtual column, and row id ownership was
moved through several wrappers. This refactors ANN search result
ownership to share the generated buffers directly and removes the
redundant update_result helper.

None

- Test: Unit Test
- ./run-be-ut.sh --run
--filter=AnnTopNRuntimeEvaluateTopN:AnnTopNRuntimeEvaluate_DimensionMismatch:AnnIndexReaderTest.TestQueryWithoutLoadIndex:AnnIndexReaderTest.TestQueryIVFWithoutLoadIndex:VirtualColumnIteratorTest.*
- Behavior changed: No
- Does this need documentation: No
@zhiqiang-hhhh zhiqiang-hhhh requested a review from yiguolei as a code owner May 6, 2026 03:16
@zhiqiang-hhhh
Copy link
Copy Markdown
Contributor Author

run buildall

@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?

@yiguolei
Copy link
Copy Markdown
Contributor

yiguolei commented May 6, 2026

run buildall

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants