-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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]: create collection through pymilvus, no error raised but collection list is still empty #34134
Comments
@zydmtaichi checking the code above, you are using 2 connections: conn and client. The working database of conn is llamatest as you called using_database, while the working database of client is default. So try to call utility.list_collection(). BTW, I think you don't need the client connection at all. |
you seem to mix use two style of apis when you create collection you actaully create a colleciton under default databse, not the database you created. this is the right API client.create_collection( |
yeah,your point is correct,i switch to utility and it shows the collection name as i want |
"default" is a aliase of connection(per doc),i just want to create a collection under the db "llamatest", but |
MilvusClient and utility are two different styles of python sdk for milvus. if you want to use MilvusClient, you can call
|
more info about MilvusClient: https://milvus.io/api-reference/pymilvus/v2.4.x/MilvusClient/Client/MilvusClient.md |
Is there an existing issue for this?
Environment
Current Behavior
I connect to milvus db using python SDK ,then create db and collection, the db creation is good but collection can't be created.
my example is pasted below:
This example raise nothing,but the
res2
which represents the collections existed is still printed as a empty list.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: