Skip to content

Commit

Permalink
Convert the result to python basic types to enable json dumps (milvus…
Browse files Browse the repository at this point in the history
…-io#1766)

Signed-off-by: Cai Zhang <[email protected]>
  • Loading branch information
xiaocai2333 authored Nov 1, 2023
1 parent 677efb2 commit 16e2758
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pymilvus/client/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def __init__(self, raw: Any):
def __pack(self, raw: Any):
self.collection_name = raw.schema.name
self.description = raw.schema.description
self.aliases = raw.aliases
self.aliases = list(raw.aliases)
self.collection_id = raw.collectionID
self.num_shards = raw.shards_num
self.num_partitions = raw.num_partitions
Expand All @@ -184,7 +184,8 @@ def __pack(self, raw: Any):

# for s in raw.statistics:

self.properties = raw.properties
for p in raw.properties:
self.properties[p.key] = p.value

@classmethod
def _rewrite_schema_dict(cls, schema_dict: Dict):
Expand Down

0 comments on commit 16e2758

Please sign in to comment.