From 9ab2399c5d36d05adfebae473017d0331dd37525 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=B8=85=27=CF=89=27=E0=B8=85?= Date: Mon, 23 Dec 2024 17:14:43 +0800 Subject: [PATCH] fix: [2.5] await conn.describe_collection in async client's query (#2502) Signed-off-by: Ruichen Bao --- pymilvus/milvus_client/async_milvus_client.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pymilvus/milvus_client/async_milvus_client.py b/pymilvus/milvus_client/async_milvus_client.py index efb507158..ffa7ce201 100644 --- a/pymilvus/milvus_client/async_milvus_client.py +++ b/pymilvus/milvus_client/async_milvus_client.py @@ -372,7 +372,9 @@ 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