Skip to content

[8.6] MOD-10798, MOD-14094: Support K Ratio argument in FT.HYBRID vector query (#8227)#8399

Merged
nafraf merged 1 commit into
8.6from
nafraf_backport-8227-to-8.6
Feb 21, 2026
Merged

[8.6] MOD-10798, MOD-14094: Support K Ratio argument in FT.HYBRID vector query (#8227)#8399
nafraf merged 1 commit into
8.6from
nafraf_backport-8227-to-8.6

Conversation

@nafraf

@nafraf nafraf commented Feb 17, 2026

Copy link
Copy Markdown
Collaborator

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

  1. MOD-10798
  2. #...

Main objects this PR modified

  1. ...

Mark if applicable

  • This PR introduces API changes
  • This PR introduces serialization changes

Release Notes

  • This PR requires release notes
  • This PR does not require 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.HYBRID KNN queries now accept an optional SHARD_K_RATIO parameter (since 8.6.1) to reduce per-shard work in cluster mode by lowering the per-shard K used for the distributed VSIM subquery while keeping the user-requested K at the coordinator.

Parsing/validation was added for SHARD_K_RATIO (range (0,1], duplicate detection) and the coordinator now safely passes numShards into 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; duplicate YIELD_SCORE_AS handling was tightened to return a duplicate-parameter error.

Written by Cursor Bugbot for commit fa7ec23. This will update automatically on new commits. Configure here.

@sonarqubecloud

Copy link
Copy Markdown

@codecov

codecov Bot commented Feb 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.84%. Comparing base (22dfe8c) to head (fa7ec23).
⚠️ Report is 1 commits behind head on 8.6.

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              
Flag Coverage Δ
flow 84.81% <97.05%> (+0.06%) ⬆️
unit 50.60% <80.88%> (+0.06%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@nafraf nafraf changed the title MOD-14094: Support K Ratio argument in FT.HYBRID vector query (#8227) [8.6] MOD-10798, MOD-14094: Support K Ratio argument in FT.HYBRID vector query (#8227) Feb 17, 2026
@nafraf nafraf requested a review from oshadmi February 17, 2026 02:57
@nafraf nafraf added this pull request to the merge queue Feb 21, 2026
Merged via the queue into 8.6 with commit 903d2a1 Feb 21, 2026
51 checks passed
@nafraf nafraf deleted the nafraf_backport-8227-to-8.6 branch February 21, 2026 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants