-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Bug]: go-sdk can't use upsert. #33835
Comments
embeddings are vectorised values. milvus version:2.4.1 |
@Seaiii Upsert operations does not support collections with autoID enabled. |
thought @smellthemoon is working on it |
Is this one for sure? In that case I still need to maintain a self-incrementing id myself. |
pr has hang for a long time. related with #30342, reviewed by @czs007 . I will fix the conflict after review. |
yes, I will make the error msg more clear. |
Ok, so when your PR is merged, autoID will be able to use upsert too right? |
As you already set autoid for primary key, could you please share more info about why do you still need upsert to keep the same primary key? The pr will not be merged until it is determined that upsert for autoid is really meaningful to user scenarios. @Seaiii |
We need the primary key id to self-increment to determine uniqueness. Also we need to update each piece of information. That's all. |
so in your case to keep the order of entities, you want the same primary key after doing upsert?is it acceptable for you if we set a new primary key(a new incremented or a bigger id) for the updated entity after doing upsert? |
If a new primary key is added cutting larger values is not necessary. |
okay, thank you for your feedbacks. We will rethink our design of support for upsert with autoid. |
how did you know action.Id? did you store it some where else? |
Get all the action.Id for display via the query method. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@congqixia |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@congqixia @ThreadDao was this fixed |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Is there an existing issue for this?
Environment
Current Behavior
There are three fields in the library collection.
I am also passing three fields using the Upsert method.
But it says "the number of fields is less than needed: invalid parameter[expected=3][actual=4]"
Expected Behavior
No response
Steps To Reproduce
No response
Milvus Log
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: