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

BinaryVectorFieldData CreateFromBytes(string fieldName, ReadOnlySpan<byte> bytes, long dimension) error #91

Open
vsuyi opened this issue Aug 23, 2024 · 1 comment

Comments

@vsuyi
Copy link

vsuyi commented Aug 23, 2024

Describe the bug
this function use the dimension in a wrong way. the length of field data (bytes) should be (the dimension of BINARY_VECTOR) / 8

To Reproduce
Steps to reproduce the behavior:

  1. create a collection with a BINARY_VECTOR field (dimension: 64)
  2. insert data rows (80 rows e.g.)
  3. use QueryAsync to fetch datas
  4. the returned BINARY_VECTOR FieldData only has 10 rows

Expected behavior
80 rows data

one bit for one dimension!

@xiaofan-luan
Copy link
Contributor

this seems to be client issue.

probably get 10rows with 64byte. need to split somewhere in the client

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants