diff --git a/pymilvus/orm/types.py b/pymilvus/orm/types.py index 1bb4eb715..da3b76d79 100644 --- a/pymilvus/orm/types.py +++ b/pymilvus/orm/types.py @@ -121,7 +121,10 @@ def infer_dtype_bydata(data: Any): failed = True if not failed: d_type = dtype_str_map.get(type_str, DataType.UNKNOWN) - return DataType.FLOAT_VECTOR if is_numeric_datatype(d_type) else DataType.UNKNOWN + if d_type != DataType.UNKNOWN: + return DataType.FLOAT_VECTOR if is_numeric_datatype(d_type) else DataType.ARRAY + else: + return d_type if d_type == DataType.UNKNOWN: try: