Skip to content

Commit b4650ad

Browse files
authored
enhance: [2.4]describecollection output add created_timestamp (#2620)
enhance: describecollection output add created_timestamp issue: #2617 pr: #2618 Signed-off-by: Xianhui.Lin <xianhui.lin@zilliz.com>
1 parent cfa42d2 commit b4650ad

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pymilvus/client/abstract.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def __init__(self, raw: Any):
123123
self.num_shards = 0
124124
self.num_partitions = 0
125125
self.enable_dynamic_field = False
126-
self.update_timestamp = 0
126+
self.created_timestamp = 0
127127
if self._raw:
128128
self.__pack(self._raw)
129129

@@ -134,7 +134,7 @@ def __pack(self, raw: Any):
134134
self.collection_id = raw.collectionID
135135
self.num_shards = raw.shards_num
136136
self.num_partitions = raw.num_partitions
137-
137+
self.created_timestamp = raw.created_timestamp
138138
# keep compatible with older Milvus
139139
try:
140140
self.consistency_level = raw.consistency_level
@@ -182,6 +182,9 @@ def dict(self):
182182
"num_partitions": self.num_partitions,
183183
"enable_dynamic_field": self.enable_dynamic_field,
184184
}
185+
186+
if self.created_timestamp != 0:
187+
_dict["created_timestamp"] = self.created_timestamp
185188
self._rewrite_schema_dict(_dict)
186189
return _dict
187190

0 commit comments

Comments
 (0)