[8.6] MOD-10798, MOD-14094: Support K Ratio argument in FT.HYBRID vector query (#8227)#8399
Merged
Conversation
(cherry picked from commit d7ac7d3)
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 8.6 #8399 +/- ##
==========================================
+ Coverage 83.82% 83.84% +0.02%
==========================================
Files 367 367
Lines 55576 55625 +49
Branches 14319 14319
==========================================
+ Hits 46585 46640 +55
+ Misses 8830 8824 -6
Partials 161 161
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
oshadmi
approved these changes
Feb 17, 2026
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.



Description
Manual backport #8227 to 8.6
(cherry picked from commit d7ac7d3)
Describe the changes in the pull request
Which additional issues this PR fixes
Main objects this PR modified
Mark if applicable
Release Notes
If a release note is required (bug fix / new feature / enhancement), describe the user impact of this PR in the title.
Note
Medium Risk
Touches hybrid query parsing and distributed command construction, which can change result/performance characteristics in cluster mode; mitigated by strict validation and new unit/integration tests.
Overview
FT.HYBRIDKNN queries now accept an optionalSHARD_K_RATIOparameter (since 8.6.1) to reduce per-shard work in cluster mode by lowering the per-shardKused for the distributed VSIM subquery while keeping the user-requestedKat the coordinator.Parsing/validation was added for
SHARD_K_RATIO(range(0,1], duplicate detection) and the coordinator now safely passesnumShardsinto background execution to compute and apply an effective K when building the shard MR command. Tests were added/expanded (C++ + Python) to cover correctness, error cases, and per-shard profile behavior; duplicateYIELD_SCORE_AShandling was tightened to return a duplicate-parameter error.Written by Cursor Bugbot for commit fa7ec23. This will update automatically on new commits. Configure here.