Skip to content

Commit 080946d

Browse files
author
Rohit Gupta
committed
add array data type for milvus vector store collection create
Signed-off-by: Rohit Gupta <rohit.gupta2@walmart.com>
1 parent 655daf4 commit 080946d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pymilvus/orm/types.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def infer_dtype_by_scalar_data(data: Any):
113113
return DataType.UNKNOWN
114114

115115

116-
def infer_dtype_bydata(data: Any, **kargs):
116+
def infer_dtype_bydata(data: Any, **kwargs):
117117
d_type = DataType.UNKNOWN
118118
if is_scalar(data):
119119
return infer_dtype_by_scalar_data(data)
@@ -131,11 +131,11 @@ def infer_dtype_bydata(data: Any, **kargs):
131131
d_type = dtype_str_map.get(type_str, DataType.UNKNOWN)
132132
if is_varchar_datatype(d_type) or is_bool_datatype(d_type):
133133
return DataType.ARRAY
134-
if kargs is None or len(kargs) == 0:
134+
if kwargs is None or len(kargs) == 0:
135135
return DataType.FLOAT_VECTOR if \
136136
is_numeric_datatype(d_type) else DataType.UNKNOWN
137137
else:
138-
if kargs["type"] is not None and kargs["type"] == "vector":
138+
if kwargs["type"] is not None and kwargs["type"] == "vector":
139139
return DataType.FLOAT_VECTOR \
140140
if is_numeric_datatype(d_type) else DataType.UNKNOWN
141141
else:

0 commit comments

Comments
 (0)