diff --git a/pymilvus/client/utils.py b/pymilvus/client/utils.py index c7c657377..892c53116 100644 --- a/pymilvus/client/utils.py +++ b/pymilvus/client/utils.py @@ -1,3 +1,4 @@ +from copy import deepcopy import datetime import importlib.util from datetime import timedelta @@ -277,7 +278,7 @@ def get_params(search_params: Dict): # no more parameters will be written searchParams.params # to ensure compatibility and milvus can still get a json format parameter # try to write all the parameters under searchParams into searchParams.Params - params = search_params.get("params", {}) + params = deepcopy(search_params.get("params", {})) for key, value in search_params.items(): if key in params: if params[key] != value: