Skip to content

Commit

Permalink
fix: select a single column consisting of a list of column names(milv…
Browse files Browse the repository at this point in the history
…us-io#2210)

Signed-off-by: lixinguo <[email protected]>
  • Loading branch information
lixinguo committed Aug 2, 2024
1 parent dc13969 commit 83850f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymilvus/orm/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ def check_insert_schema(schema: CollectionSchema, data: Union[List[List], pd.Dat
raise DataNotMatchException(message=msg)
columns = list(data.columns)
columns.remove(schema.primary_field)
data = data[[columns]]
data = data[columns]

_check_data_schema_cnt(schema, data)
_check_insert_data(data)
Expand Down

0 comments on commit 83850f1

Please sign in to comment.