Skip to content

Commit

Permalink
fix negative blocklet skipped when cache level is block
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinjmh committed Sep 6, 2018
1 parent 50248f5 commit 1cdfc5c
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -551,7 +551,8 @@ protected short getBlockletNumOfEntry(int index) {
// dummy value
return 0;
} else {
return ByteBuffer.wrap(getBlockletRowCountForEachBlock()).getShort(index);
return ByteBuffer.wrap(getBlockletRowCountForEachBlock()).getShort(
index * CarbonCommonConstants.SHORT_SIZE_IN_BYTE);
}
}

Expand Down

0 comments on commit 1cdfc5c

Please sign in to comment.