From fe493a823b213459e96d1342a452c5ab5e7bfb8b Mon Sep 17 00:00:00 2001 From: Ruichen Bao Date: Mon, 23 Dec 2024 16:22:35 +0800 Subject: [PATCH] fix: [2.4] await conn.describe_collection in async client's query Signed-off-by: Ruichen Bao --- pymilvus/milvus_client/async_milvus_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymilvus/milvus_client/async_milvus_client.py b/pymilvus/milvus_client/async_milvus_client.py index efb507158..5e538cd7b 100644 --- a/pymilvus/milvus_client/async_milvus_client.py +++ b/pymilvus/milvus_client/async_milvus_client.py @@ -372,7 +372,7 @@ async def query( if ids: try: - schema_dict = conn.describe_collection(collection_name, timeout=timeout, **kwargs) + schema_dict = await conn.describe_collection(collection_name, timeout=timeout, **kwargs) except Exception as ex: logger.error("Failed to describe collection: %s", collection_name) raise ex from ex