Skip to content

Commit

Permalink
Remove unnecessary index check (#1417)
Browse files Browse the repository at this point in the history
Signed-off-by: longjiquan <[email protected]>
  • Loading branch information
longjiquan authored May 9, 2023
1 parent 2ef3d10 commit 29d25b5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pymilvus/client/grpc_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
is_legal_host,
is_legal_port,
check_pass_param,
check_index_params,
)
from .prepare import Prepare
from .types import (
Expand Down Expand Up @@ -572,8 +571,6 @@ def create_index(self, collection_name, field_name, params, timeout=None, **kwar
valid_field = True
if fields["type"] != DataType.FLOAT_VECTOR and fields["type"] != DataType.BINARY_VECTOR:
break
# check index params on vector field.
check_index_params(params)

if not valid_field:
raise MilvusException(message=f"cannot create index on non-existed field: {field_name}")
Expand Down

0 comments on commit 29d25b5

Please sign in to comment.