Skip to content

Commit

Permalink
add array data type for milvus vector store collection create
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 27, 2024
1 parent a02b9bc commit 655daf4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pymilvus/orm/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,15 @@ def is_float_datatype(data_type: DataType):
def is_numeric_datatype(data_type: DataType):
return is_float_datatype(data_type) or is_integer_datatype(data_type)


def is_varchar_datatype(data_type: DataType):
return data_type in (DataType.VARCHAR,)


def is_bool_datatype(data_type: DataType):
return data_type in (DataType.BOOL,)


# pylint: disable=too-many-return-statements
def infer_dtype_by_scalar_data(data: Any):
if isinstance(data, float):
Expand Down

0 comments on commit 655daf4

Please sign in to comment.