diff --git a/src/storage/compression/compression.cpp b/src/storage/compression/compression.cpp index 83e32e40da3..accd84c85e8 100644 --- a/src/storage/compression/compression.cpp +++ b/src/storage/compression/compression.cpp @@ -102,7 +102,7 @@ size_t CompressionMetadata::serializedSizeBytes(common::PhysicalTypeID internalD for (const auto& childType : getChildTypes(internalDataType)) { sizeToWrite += serializedSizeBytes(childType); } - return sizeToWrite; + return sizeToWrite + (8 - sizeToWrite % 8) % 8; } std::vector CompressionMetadata::serializeToBytes(