From 21cbcdb7db3cd3b69a44868fdca53f4b5ffc60b9 Mon Sep 17 00:00:00 2001 From: yely <771488533@qq.com> Date: Thu, 28 Mar 2024 16:14:29 +0800 Subject: [PATCH] fix:release partition before drop it --- pymilvus/orm/collection.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pymilvus/orm/collection.py b/pymilvus/orm/collection.py index 2e2459721..57da6150d 100644 --- a/pymilvus/orm/collection.py +++ b/pymilvus/orm/collection.py @@ -1242,6 +1242,7 @@ def drop_partition(self, partition_name: str, timeout: Optional[float] = None, * False """ conn = self._get_connection() + conn.release_partitions(self._name, [partition_name]) return conn.drop_partition(self._name, partition_name, timeout=timeout, **kwargs) @property