From d53344cccdf8c65f52026f48d7492813d1e36955 Mon Sep 17 00:00:00 2001 From: smellthemoon <64083300+smellthemoon@users.noreply.github.com> Date: Tue, 23 Jan 2024 10:37:00 +0800 Subject: [PATCH] fix: change confusing error message (#1881) Signed-off-by: lixinguo Co-authored-by: lixinguo --- pymilvus/exceptions.py | 4 +++- pymilvus/milvus_client/milvus_client.py | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pymilvus/exceptions.py b/pymilvus/exceptions.py index 47e774c9d..5e9ee525d 100644 --- a/pymilvus/exceptions.py +++ b/pymilvus/exceptions.py @@ -191,7 +191,9 @@ class ExceptionsMessage: PartitionKeyFieldType = "Param partition_key_field must be str type." PartitionKeyFieldNotExist = "the specified partition key field {%s} not exist" IsPartitionKeyType = "Param is_partition_key must be bool type." - DataTypeInconsistent = "The data in the same column must be of the same type." + DataTypeInconsistent = ( + "The Input data type is inconsistent with defined schema, please check it." + ) DataTypeNotSupport = "Data type is not support." DataLengthsInconsistent = "Arrays must all be same length." DataFrameInvalid = "Cannot infer schema from empty dataframe." diff --git a/pymilvus/milvus_client/milvus_client.py b/pymilvus/milvus_client/milvus_client.py index a8b668862..d0f316837 100644 --- a/pymilvus/milvus_client/milvus_client.py +++ b/pymilvus/milvus_client/milvus_client.py @@ -817,7 +817,6 @@ def release_partitions( timeout: Optional[float] = None, **kwargs, ): - if isinstance(partition_names, str): partition_names = [partition_names] conn = self._get_connection()