Skip to content

Commit 16e2758

Browse files
authored
Convert the result to python basic types to enable json dumps (#1766)
Signed-off-by: Cai Zhang <[email protected]>
1 parent 677efb2 commit 16e2758

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pymilvus/client/abstract.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def __init__(self, raw: Any):
161161
def __pack(self, raw: Any):
162162
self.collection_name = raw.schema.name
163163
self.description = raw.schema.description
164-
self.aliases = raw.aliases
164+
self.aliases = list(raw.aliases)
165165
self.collection_id = raw.collectionID
166166
self.num_shards = raw.shards_num
167167
self.num_partitions = raw.num_partitions
@@ -184,7 +184,8 @@ def __pack(self, raw: Any):
184184

185185
# for s in raw.statistics:
186186

187-
self.properties = raw.properties
187+
for p in raw.properties:
188+
self.properties[p.key] = p.value
188189

189190
@classmethod
190191
def _rewrite_schema_dict(cls, schema_dict: Dict):

0 commit comments

Comments
 (0)