Skip to content

Commit

Permalink
Infer ARRAY datatype from list like non numeric objects
Browse files Browse the repository at this point in the history
Signed-off-by: Abhay Ratnaparkhi <abhay.ratnaparkhi1@ibm.com>
  • Loading branch information
abratnap authored and abhayibm committed Nov 15, 2023
1 parent 1428201 commit 69cbc33
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pymilvus/orm/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 69cbc33

Please sign in to comment.