Skip to content

Commit

Permalink
DRILL-7937: INTERNAL_ERROR when querying Parquet File with decimals
Browse files Browse the repository at this point in the history
  • Loading branch information
vvysotskyi authored and luocooong committed Jun 4, 2021
1 parent 36ac8f3 commit f86a7cb
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,8 @@ protected void readField(long recordsToReadInThisPass) {
case FIXED_LEN_BYTE_ARRAY:
case BINARY:
if (usingDictionary) {
recordsReadInThisIteration = Math.min(pageReader.currentPageCount
- pageReader.valuesRead, recordsToReadInThisPass - valuesReadInCurrentPass);
NullableVarDecimalVector.Mutator mutator = valueVec.getMutator();
for (int i = 0; i < recordsReadInThisIteration; i++) {
Binary currDictValToWrite = pageReader.dictionaryValueReader.readBytes();
Expand Down

0 comments on commit f86a7cb

Please sign in to comment.