Skip to content
Merged
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
4 changes: 4 additions & 0 deletions pymilvus/client/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ def __init__(self, raw: Any):
self.num_partitions = 0
self.enable_dynamic_field = False
self.created_timestamp = 0
self.update_timestamp = 0
if self._raw:
self.__pack(self._raw)

Expand All @@ -195,6 +196,7 @@ def __pack(self, raw: Any):
self.num_shards = raw.shards_num
self.num_partitions = raw.num_partitions
self.created_timestamp = raw.created_timestamp
self.update_timestamp = raw.update_timestamp
# keep compatible with older Milvus
try:
self.consistency_level = raw.consistency_level
Expand Down Expand Up @@ -251,6 +253,8 @@ def dict(self):

if self.created_timestamp != 0:
_dict["created_timestamp"] = self.created_timestamp
if self.update_timestamp != 0:
_dict["update_timestamp"] = self.update_timestamp
self._rewrite_schema_dict(_dict)
return _dict

Expand Down