Github user ravipesala commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/2820#discussion_r226863873
--- Diff:
core/src/main/java/org/apache/carbondata/core/scan/filter/executer/RangeValueFilterExecuterImpl.java
---
@@ -146,6 +146,44 @@ public BitSetGroup applyFilter(RawBlockletColumnChunks
rawBlockletColumnChunks,
return applyNoAndDirectFilter(rawBlockletColumnChunks,
useBitsetPipeLine);
}
+ @Override
+ public BitSet prunePages(RawBlockletColumnChunks blockChunkHolder)
+ throws FilterUnsupportedException, IOException {
+ // In case of Alter Table Add and Delete Columns the
isDimensionPresentInCurrentBlock can be
+ // false, in that scenario the default values of the column should be
shown.
+ // select all rows if dimension does not exists in the current block
+ if (!isDimensionPresentInCurrentBlock) {
+ int i = blockChunkHolder.getDataBlock().numberOfPages();
--- End diff --
ok
---