File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ def __init__(self, raw: Any):
123
123
self .num_shards = 0
124
124
self .num_partitions = 0
125
125
self .enable_dynamic_field = False
126
- self .update_timestamp = 0
126
+ self .created_timestamp = 0
127
127
if self ._raw :
128
128
self .__pack (self ._raw )
129
129
@@ -134,7 +134,7 @@ def __pack(self, raw: Any):
134
134
self .collection_id = raw .collectionID
135
135
self .num_shards = raw .shards_num
136
136
self .num_partitions = raw .num_partitions
137
-
137
+ self . created_timestamp = raw . created_timestamp
138
138
# keep compatible with older Milvus
139
139
try :
140
140
self .consistency_level = raw .consistency_level
@@ -182,6 +182,9 @@ def dict(self):
182
182
"num_partitions" : self .num_partitions ,
183
183
"enable_dynamic_field" : self .enable_dynamic_field ,
184
184
}
185
+
186
+ if self .created_timestamp != 0 :
187
+ _dict ["created_timestamp" ] = self .created_timestamp
185
188
self ._rewrite_schema_dict (_dict )
186
189
return _dict
187
190
You can’t perform that action at this time.
0 commit comments