Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix sparse: accpet int/float wrapped in string #2094

Merged

Conversation

zhengbuqian
Copy link
Collaborator

when providing sparse float vector using python dict/list, we allow the index/value to be wrapped in string:

both {1:0.1, 2:0.2} and {1:"0.1", "2": 0.2} are acceptable. this is defined in entity_is_sparse_matrix but sparse_rows_to_proto doesn't respect this. This pr fixes this.

@zhengbuqian zhengbuqian added PR | need to cherry-pick to 2.x This PR need to be cherry-picked to 2.x branch and removed size/XS labels May 15, 2024
@XuanYang-cn XuanYang-cn added PR | cherry-picked to 2.x PR already cherry-picked to branch 2.x and removed PR | need to cherry-pick to 2.x This PR need to be cherry-picked to 2.x branch labels May 15, 2024
@XuanYang-cn
Copy link
Contributor

/lgtm
/approve

@sre-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

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

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

The pull request process is described here

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 2772640 into milvus-io:master May 15, 2024
9 checks passed
sre-ci-robot pushed a commit that referenced this pull request May 15, 2024
@zhengbuqian zhengbuqian deleted the sparse-pymilvus-improvement branch May 24, 2024 02:10
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.

None yet

3 participants