Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public double getDouble() {
private int dictionaryId;

private long endOfPageValueCount;
private int readValues = 0;
private long readValues = 0;
private int pageValueCount = 0;

private final PrimitiveConverter converter;
Expand Down Expand Up @@ -352,8 +352,8 @@ public ColumnReaderImpl(ColumnDescriptor path, PageReader pageReader, PrimitiveC
this.dictionary = null;
}
this.totalValueCount = pageReader.getTotalValueCount();
if (totalValueCount == 0) {
throw new ParquetDecodingException("totalValueCount == 0");
if (totalValueCount <= 0) {
throw new ParquetDecodingException("totalValueCount '" + totalValueCount + "' <= 0");
}
consume();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ static final class ColumnChunkPageReader implements PageReader {
this.decompressor = decompressor;
this.compressedPages = new LinkedList<DataPage>(compressedPages);
this.compressedDictionaryPage = compressedDictionaryPage;
int count = 0;
long count = 0;
for (DataPage p : compressedPages) {
count += p.getValueCount();
}
Expand Down