Skip to content

Commit 22489cf

Browse files
authored
Revert "enhance: Convert json_cast_type to DataType (#2690)" (#2692)
This reverts commit b2bca89. Signed-off-by: sunby <[email protected]>
1 parent b2bca89 commit 22489cf

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pymilvus/client/grpc_handler.py

-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import grpc
1010
from grpc._cython import cygrpc
1111

12-
from pymilvus.client.types import DataType
1312
from pymilvus.decorators import ignore_unimplemented, retry_on_rpc_failure, upgrade_reminder
1413
from pymilvus.exceptions import (
1514
AmbiguousIndexName,
@@ -1145,8 +1144,6 @@ def describe_index(
11451144
info_dict = {kv.key: kv.value for kv in response.index_descriptions[0].params}
11461145
info_dict["field_name"] = response.index_descriptions[0].field_name
11471146
info_dict["index_name"] = response.index_descriptions[0].index_name
1148-
if info_dict.get("json_cast_type"):
1149-
info_dict["json_cast_type"] = DataType(int(info_dict["json_cast_type"]))
11501147
if info_dict.get("params"):
11511148
info_dict["params"] = json.loads(info_dict["params"])
11521149
info_dict["total_rows"] = response.index_descriptions[0].total_rows

0 commit comments

Comments
 (0)