Skip to content

Commit

Permalink
Make DictionaryBlock sizeInBytes calculation consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
pettyjamesm committed Mar 9, 2022
1 parent f0ea5b9 commit 2a79ba1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public DictionaryBlock(int idsOffset, int positionCount, Block dictionary, int[]
this.retainedSizeInBytes = INSTANCE_SIZE + dictionary.getRetainedSizeInBytes() + sizeOf(ids);

if (dictionaryIsCompacted) {
this.sizeInBytes = this.retainedSizeInBytes;
this.sizeInBytes = dictionary.getSizeInBytes() + (Integer.BYTES * (long) positionCount);
this.uniqueIds = dictionary.getPositionCount();
}
}
Expand Down

0 comments on commit 2a79ba1

Please sign in to comment.