File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ namespace ErrorCodes
3838enum StatisticsFileVersion : UInt16
3939{
4040 V0 = 0 ,
41+ V1 = 1 , // / modify the format of uniq, https://github.com/ClickHouse/ClickHouse/pull/90311
4142};
4243
4344std::optional<Float64> StatisticsUtils::tryConvertToFloat64 (const Field & value, const DataTypePtr & data_type)
@@ -231,7 +232,7 @@ Estimate ColumnStatistics::getEstimate() const
231232
232233void ColumnStatistics::serialize (WriteBuffer & buf)
233234{
234- writeIntBinary (V0 , buf);
235+ writeIntBinary (V1 , buf);
235236
236237 UInt64 stat_types_mask = 0 ;
237238 for (const auto & [type, _]: stats)
@@ -250,7 +251,7 @@ void ColumnStatistics::deserialize(ReadBuffer &buf)
250251{
251252 UInt16 version;
252253 readIntBinary (version, buf);
253- if (version != V0 )
254+ if (version != V1 )
254255 throw Exception (ErrorCodes::CORRUPTED_DATA, " Unknown file format version: {}" , version);
255256
256257 UInt64 stat_types_mask = 0 ;
You can’t perform that action at this time.
0 commit comments