Skip to content

Commit

Permalink
Bugfix 4897570890562900007: Fix decoding of fields with >2^16 blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Owens committed Dec 19, 2024
1 parent 755bbda commit 8970694
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cpp/arcticdb/storage/memory_layout.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,15 @@ enum class BitmapFormat : uint8_t {
// pointer to the first block
struct EncodedField {
EncodedFieldType type_ = EncodedFieldType::UNKNOWN;
uint16_t shapes_count_ = 0u;
uint16_t values_count_ = 0u;
uint32_t shapes_count_ = 0u;
uint32_t values_count_ = 0u;
uint32_t sparse_map_bytes_ = 0u;
uint32_t items_count_ = 0u;
BitmapFormat format_ = BitmapFormat::UNKNOWN;
std::array<Block, 1> blocks_;
};

static_assert(sizeof(EncodedField) == 60);
static_assert(sizeof(EncodedField) == 64);

enum class EncodingVersion : uint16_t {
V1 = 0,
Expand Down

0 comments on commit 8970694

Please sign in to comment.