milvus-io / milvus-sdk-go

Go SDK for Milvus.
Apache License 2.0
353 stars 110 forks source link

fix: Set Slice start to Len if out-of-bound #751

Closed congqixia closed 6 months ago

congqixia commented 6 months ago

Fix slice may panic with out of bound error when last batch is not sufficent for batch size in query iterator

sre-ci-robot commented 6 months ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: congqixia

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: - ~~[OWNERS](https://github.com/milvus-io/milvus-sdk-go/blob/master/OWNERS)~~ [congqixia] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
ThreadDao commented 6 months ago

/lgtm