Skip to content

Commit 1c5bddc

Browse files
committed
Export indexed rows for describe_index (milvus-io#2148)
Signed-off-by: Cai Zhang <[email protected]>
1 parent 11f1a2a commit 1c5bddc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pymilvus/client/grpc_handler.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,6 +1051,10 @@ def describe_index(
10511051
check_status(status)
10521052
if len(response.index_descriptions) == 1:
10531053
info_dict = {kv.key: kv.value for kv in response.index_descriptions[0].params}
1054+
info_dict["total_rows"] = response.index_descriptions[0].total_rows
1055+
info_dict["indexed_rows"] = response.index_descriptions[0].indexed_rows
1056+
info_dict["pending_index_rows"] = response.index_descriptions[0].pending_index_rows
1057+
info_dict["state"] = response.index_descriptions[0].state
10541058
info_dict["field_name"] = response.index_descriptions[0].field_name
10551059
info_dict["index_name"] = response.index_descriptions[0].index_name
10561060
if info_dict.get("params"):

0 commit comments

Comments
 (0)