diff --git a/be/src/util/tdigest.h b/be/src/util/tdigest.h index 09a188eb78..66ff7ccda8 100644 --- a/be/src/util/tdigest.h +++ b/be/src/util/tdigest.h @@ -443,7 +443,7 @@ public: } uint32_t serialized_size() { - return sizeof(Value) * 5 + sizeof(Index) * 2 + sizeof(size_t) * 3 + + return sizeof(Value) * 5 + sizeof(Index) * 2 + sizeof(uint32_t) * 3 + _processed.size() * sizeof(Centroid) + _unprocessed.size() * sizeof(Centroid) + _cumulative.size() * sizeof(Weight); }