Skip to content

Commit

Permalink
Fix several bugs related to MilvusClient (#1923)
Browse files Browse the repository at this point in the history
Signed-off-by: zhenshan.cao <[email protected]>
  • Loading branch information
czs007 authored Feb 6, 2024
1 parent ecf0ef3 commit 72f44be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion pymilvus/client/grpc_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,9 @@ def describe_alias(self, alias: str, timeout: Optional[float] = None, **kwargs):

@retry_on_rpc_failure()
def list_aliases(self, collection_name: str, timeout: Optional[float] = None, **kwargs):
check_pass_param(collection_name=collection_name, timeout=timeout)
check_pass_param(timeout=timeout)
if collection_name:
check_pass_param(collection_name=collection_name)
request = Prepare.list_aliases_request(collection_name, kwargs.get("db_name", ""))
rf = self._stub.ListAliases.future(request, timeout=timeout)
response = rf.result()
Expand Down
2 changes: 1 addition & 1 deletion pymilvus/milvus_client/milvus_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ def get_partition_stats(
result = {stat.key: stat.value for stat in ret}
if "row_count" in result:
result["row_count"] = int(result["row_count"])
return
return result

def create_user(self, user_name: str, password: str, timeout: Optional[float] = None, **kwargs):
conn = self._get_connection()
Expand Down

0 comments on commit 72f44be

Please sign in to comment.