Skip to content

Commit

Permalink
reformatted
Browse files Browse the repository at this point in the history
  • Loading branch information
r0g0bum committed Jul 5, 2024
1 parent 727d14e commit 12a14d8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pymilvus/orm/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,7 @@ def infer_dtype_bydata(data: Any, **kwargs):
d_type = dtype_str_map.get(type_str, DataType.UNKNOWN)
if is_varchar_datatype(d_type) or is_bool_datatype(d_type):
return DataType.ARRAY
if kwargs is None or len(kwargs) == 0:
return DataType.FLOAT_VECTOR if is_numeric_datatype(d_type) else DataType.UNKNOWN
elif kwargs["type"] is not None and kwargs["type"] == "vector":
if kwargs is None or len(kwargs) == 0 or (kwargs["type"] is not None and kwargs["type"] == "vector"):
return (
DataType.FLOAT_VECTOR if is_numeric_datatype(d_type) else DataType.UNKNOWN
)
Expand Down

0 comments on commit 12a14d8

Please sign in to comment.