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

[issue 1147] Fix dimension calculation in BinaryVector by replacing position() with limit() #1149

Closed
wants to merge 1 commit into from

Conversation

Yiling1f
Copy link

The code has been modified to use ByteBuffer.limit() instead of position() in calculateBinVectorDim. The limit() method correctly reflects the length of the data in bytes, ensuring the dimension is calculated accurately and matches the field’s schema.

Issue Reference
This PR resolves the issue related to incorrect dimension checking as discussed in Issue #<Issue_Number>.

@sre-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

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

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

Welcome @Yiling1f! It looks like this is your first PR to milvus-io/milvus-sdk-java 🎉

@Yiling1f
Copy link
Author

/assign @yhmo

@yhmo
Copy link
Contributor

yhmo commented Oct 29, 2024

Thank you for finding this bug. There are more places called the position () and I just submitted another pr #1154 to fix it completely.

@yhmo yhmo closed this Oct 29, 2024
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.

3 participants