Skip to content

Commit

Permalink
return array data type in infer_dtype_bydata
Browse files Browse the repository at this point in the history
Signed-off-by: Rohit Gupta <[email protected]>
  • Loading branch information
Rohit Gupta committed Jun 20, 2024
1 parent 0ad77c5 commit f61d4f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pymilvus/orm/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ def infer_dtype_bydata(data: Any):
d_type = dtype_str_map.get(type_str, DataType.UNKNOWN)
return DataType.FLOAT_VECTOR if is_numeric_datatype(d_type) else DataType.ARRAY


if d_type == DataType.UNKNOWN:
try:
elem = data[0]
Expand Down

0 comments on commit f61d4f9

Please sign in to comment.