Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
malhotrashivam committed Feb 23, 2024
1 parent 035ea8a commit 40a6831
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,10 @@ public ColumnPageReader next(@NotNull final SeekableChannelContext channelContex
&& columnChunk.meta_data.getDictionary_page_offset() == 0) {
// https://stackoverflow.com/questions/55225108/why-is-dictionary-page-offset-0-for-plain-dictionary-encoding
// Skip the dictionary page and jump to the data page
if (!hasNext()) {
throw new IllegalStateException("Expected to find a data page at offset " + nextHeaderOffset +
" after the dictionary page for file " + getURI() + ", but there is no more data");
}
return next(holder.get());
}
if (pageType != PageType.DATA_PAGE && pageType != PageType.DATA_PAGE_V2) {
Expand Down

0 comments on commit 40a6831

Please sign in to comment.