Skip to content

Commit

Permalink
[CARBONDATA-3353 ]Fixed MinMax Based Pruning for Measure column in ca…
Browse files Browse the repository at this point in the history
…se of Legacy store
  • Loading branch information
Indhumathi27 committed Jul 9, 2019
1 parent 8f0ec97 commit c88b2ae
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -509,9 +509,12 @@ public BitSet isScanRequired(byte[][] blkMaxVal, byte[][] blkMinVal, boolean[] i
}
} else if (isMeasurePresentInCurrentBlock) {
chunkIndex = msrColumnEvaluatorInfo.getColumnIndexInMinMaxByteArray();
isScanRequired = isScanRequired(blkMaxVal[chunkIndex], blkMinVal[chunkIndex],
msrColumnExecutorInfo.getFilterKeys(),
msrColumnEvaluatorInfo.getType());
if (isMinMaxSet[chunkIndex]) {
isScanRequired = isScanRequired(blkMaxVal[chunkIndex], blkMinVal[chunkIndex],
msrColumnExecutorInfo.getFilterKeys(), msrColumnEvaluatorInfo.getType());
} else {
isScanRequired = true;
}
}

if (isScanRequired) {
Expand Down

0 comments on commit c88b2ae

Please sign in to comment.