Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions pymilvus/milvus_client/async_milvus_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,9 +436,7 @@ async def query(

if ids:
try:
schema_dict, _ = await conn._get_schema_from_cache_or_remote(
collection_name, timeout=timeout
)
schema_dict, _ = await conn._get_schema(collection_name, timeout=timeout)
except Exception as ex:
raise ex from ex
filter = self._pack_pks_expr(schema_dict, ids)
Expand Down Expand Up @@ -473,9 +471,7 @@ async def get(

conn = self._get_connection()
try:
schema_dict, _ = await conn._get_schema_from_cache_or_remote(
collection_name, timeout=timeout
)
schema_dict, _ = await conn._get_schema(collection_name, timeout=timeout)
except Exception as ex:
raise ex from ex

Expand Down Expand Up @@ -531,9 +527,7 @@ async def delete(
conn = self._get_connection()
if len(pks) > 0:
try:
schema_dict, _ = await conn._get_schema_from_cache_or_remote(
collection_name, timeout=timeout
)
schema_dict, _ = await conn._get_schema(collection_name, timeout=timeout)
except Exception as ex:
raise ex from ex
expr = self._pack_pks_expr(schema_dict, pks)
Expand Down
6 changes: 3 additions & 3 deletions pymilvus/milvus_client/milvus_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ def query(
conn = self._get_connection()

if ids:
schema_dict, _ = conn._get_schema_from_cache_or_remote(collection_name, timeout=timeout)
schema_dict, _ = conn._get_schema(collection_name, timeout=timeout)
filter = self._pack_pks_expr(schema_dict, ids)

if not output_fields:
Expand Down Expand Up @@ -685,7 +685,7 @@ def get(
return []

conn = self._get_connection()
schema_dict, _ = conn._get_schema_from_cache_or_remote(collection_name, timeout=timeout)
schema_dict, _ = conn._get_schema(collection_name, timeout=timeout)

if not output_fields:
output_fields = ["*"]
Expand Down Expand Up @@ -761,7 +761,7 @@ def delete(
expr = ""
conn = self._get_connection()
if len(pks) > 0:
schema_dict, _ = conn._get_schema_from_cache_or_remote(collection_name, timeout=timeout)
schema_dict, _ = conn._get_schema(collection_name, timeout=timeout)
expr = self._pack_pks_expr(schema_dict, pks)
else:
if not isinstance(filter, str):
Expand Down