Skip to content

Comments

fix: unpack _get_schema tuple return in _list_vector_indexes#3275

Merged
sre-ci-robot merged 3 commits intomilvus-io:masterfrom
zhuwenxing:fix-unpack-get-schema-tuple
Feb 10, 2026
Merged

fix: unpack _get_schema tuple return in _list_vector_indexes#3275
sre-ci-robot merged 3 commits intomilvus-io:masterfrom
zhuwenxing:fix-unpack-get-schema-tuple

Conversation

@zhuwenxing
Copy link
Contributor

@zhuwenxing zhuwenxing commented Feb 10, 2026

Summary

  • _get_schema returns (schema_dict, schema_timestamp) tuple, but _list_vector_indexes was assigning the whole tuple to schema_dict, causing subsequent .get() calls to fail.
  • Fix by unpacking the tuple with schema_dict, _ = ....

Test plan

  • Verify _list_vector_indexes works correctly after the fix

_get_schema returns (schema_dict, schema_timestamp) tuple, but
_list_vector_indexes was assigning the whole tuple to schema_dict,
causing subsequent .get() calls to fail.

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
@codecov
Copy link

codecov bot commented Feb 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.46%. Comparing base (f65b888) to head (9171c4c).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3275      +/-   ##
==========================================
+ Coverage   76.36%   76.46%   +0.09%     
==========================================
  Files          63       63              
  Lines       13321    13321              
==========================================
+ Hits        10173    10186      +13     
+ Misses       3148     3135      -13     

☔ 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.

@mergify mergify bot added the ci-passed label Feb 10, 2026
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
@zhuwenxing
Copy link
Contributor Author

/assign @XuanYang-cn

Copy link
Contributor

@XuanYang-cn XuanYang-cn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@sre-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: XuanYang-cn, zhuwenxing

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sre-ci-robot sre-ci-robot merged commit 921e74b into milvus-io:master Feb 10, 2026
13 checks passed
github-actions bot pushed a commit that referenced this pull request Feb 10, 2026
## Summary
- `_get_schema` returns `(schema_dict, schema_timestamp)` tuple, but
`_list_vector_indexes` was assigning the whole tuple to `schema_dict`,
causing subsequent `.get()` calls to fail.
- Fix by unpacking the tuple with `schema_dict, _ = ...`.

## Test plan
- [x] Verify `_list_vector_indexes` works correctly after the fix

---------

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
(cherry picked from commit 921e74b)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@pymilvus-bot
Copy link
Collaborator

Backport Created
Hi @zhuwenxing, Backport PR for 2.6 has been created: #3276

(cc @XuanYang-cn)

sre-ci-robot pushed a commit that referenced this pull request Feb 10, 2026
…ndexes (#3275) (#3276)

Backport of #3275 to `2.6`.

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: zhuwenxing <wenxing.zhu@zilliz.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants