fix:release partition before drop it
when call Collection drop_partition func,has error:
pymilvus.decorators | RPC error: [drop_partition], <MilvusException: (code=1, message=partition cannot be dropped, partition is loaded, please release it first)>, <Time:{'RPC start': '2024-03-28 16:13:04.921025', 'RPC error': '2024-03-28 16:13:04.923609'}>
fix Collection drop_partition func call,release partition before drop it
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: wildBigPanda
To complete the pull request process, please assign xuanyang-cn after the PR has been reviewed.
You can assign the PR to them by writing /assign @xuanyang-cn in a comment when ready.
The full list of commands accepted by this bot can be found here.
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
Welcome @wildBigPanda! It looks like this is your first PR to milvus-io/pymilvus 🎉
@wildBigPanda This behaviour is by design
@XuanYang-cn Is the design unreasonable? To drop partition, you have to call the release interface again separately, and the related interface for releasing partitions cannot be found in [collection.py]. How can you release it and drop a partitions?