From 091a8a2820694bd99b4d6baaf63c42e390cb6600 Mon Sep 17 00:00:00 2001 From: Puneet Saini <99470400+puneeter@users.noreply.github.com> Date: Fri, 31 May 2024 14:16:37 +0530 Subject: [PATCH] Update collection.py Fix a case when partition_names == [] --- pymilvus/orm/collection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymilvus/orm/collection.py b/pymilvus/orm/collection.py index 2c593c45b..1ea66b057 100644 --- a/pymilvus/orm/collection.py +++ b/pymilvus/orm/collection.py @@ -412,7 +412,7 @@ def load( >>> collection.load() """ conn = self._get_connection() - if partition_names is not None: + if not partition_names: conn.load_partitions( collection_name=self._name, partition_names=partition_names,