Skip to content

fix: return False for non-sized binary vector values - #3777

Open
krudo-taco wants to merge 1 commit into
milvus-io:masterfrom
krudo-taco:fix/binary-vector-nonsized-values
Open

fix: return False for non-sized binary vector values#3777
krudo-taco wants to merge 1 commit into
milvus-io:masterfrom
krudo-taco:fix/binary-vector-nonsized-values

Conversation

@krudo-taco

Copy link
Copy Markdown

check_invalid_binary_vector called len() before isinstance(..., bytes),
so rows like None or int raised TypeError instead of letting the caller
raise ParamError.

Check the type first, including the first row used for the dimension.

Fixes #3768

@sre-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: krudo-taco
To complete the pull request process, please assign tedxu after the PR has been reviewed.
You can assign the PR to them by writing /assign @tedxu in a comment when ready.

The full list of commands accepted by this bot can be found 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

Copy link
Copy Markdown

Welcome @krudo-taco! It looks like this is your first PR to milvus-io/pymilvus 🎉

check_invalid_binary_vector called len() before isinstance(..., bytes),
so None or int rows raised TypeError instead of a ParamError. Check
the type first, including the first row used for the dimension.

Fixes milvus-io#3768

Signed-off-by: zhihaovme50 <wanzft1@gmail.com>
@krudo-taco
krudo-taco force-pushed the fix/binary-vector-nonsized-values branch from 1a5f5d0 to d3b253b Compare August 26, 2026 22:26
@mergify mergify Bot added dco-passed and removed needs-dco labels Aug 26, 2026
@mergify

mergify Bot commented Aug 26, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

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.

[Bug]: check_invalid_binary_vector raises TypeError instead of returning False for non-sized values

2 participants