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

Modify highlevel delete to not return any value #1777

Merged
merged 1 commit into from
Nov 10, 2023

Conversation

czs007
Copy link
Contributor

@czs007 czs007 commented Nov 10, 2023

Starting from version 2.3.2, Milvus no longer includes the primary keys in the result when processing the delete operation with expressions. This change is due to the large amount of data involved. The delete interface no longer returns any results. If no exceptions are thrown, it indicates a successful deletion. However, for backward compatibility, if the primary_keys returned from Milvus is not empty the list of primary keys is still returned.

Starting from version 2.3.2, Milvus no longer includes the primary keys in the result
when processing the delete operation with expressions.
This change is due to the large amount of data involved.
The delete interface no longer returns any results.
If no exceptions are thrown, it indicates a successful deletion.
However, for backward compatibility, if the primary_keys returned from Milvus is not empty
the list of primary keys is still returned.

Signed-off-by: zhenshan.cao <[email protected]>
Copy link
Contributor

@longjiquan longjiquan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@sre-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: czs007, longjiquan

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:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@@ -379,6 +379,15 @@ def delete(
Delete all the entries based on the pk. If unsure of pk you can first query the collection
to grab the corresponding data. Then you can delete using the pk_field.


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The return type should be changed to Optional[List[Union[str, int]]]

@sre-ci-robot sre-ci-robot merged commit 3e494ce into milvus-io:master Nov 10, 2023
9 checks passed
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.

4 participants