Repository navigation
Fix L2Distance() return value in vector search query executed with index only optimization - #105495
Merged
Merged
Conversation
Contributor
|
Workflow [PR], commit [7757c90] Summary: ✅ AI ReviewSummaryThis PR fixes index-only vector search so Final VerdictStatus: ✅ Approve |
Contributor
LLVM Coverage Report
Changed lines: 100.00% (11/11) · Uncovered code |
Member
Author
|
Clean CI run! |
alexey-milovidov
approved these changes
May 31, 2026
Merged
via the queue into
ClickHouse:master
with commit May 31, 2026
9e14e12
327 of 328 checks passed
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.
Resolves #102480
Changelog category
Changelog entry
L2Distance()if it is in theSELECTlist. The function was incorrectly returning the L2-squared distance value. Note that the vector search query was returning the correctly ranked results, only applications explicitly retrieving and interpreting theL2Distance()value would have seen the squared value.Version info
26.6.1.282