[CARBONDATA-3075] Select Filter fails for Legacy store if DirectVecorFill is enabled
Why this PR? When isDirectVectorFill is set to true, Select filter fails in Legacy Store throwing UnsupportedOperationException Solution: Set isDirectVectorFill to false for Legacy store This closes #2896 Project: http://git-wip-us.apache.org/repos/asf/carbondata/repo Commit: http://git-wip-us.apache.org/repos/asf/carbondata/commit/35ff2c9d Tree: http://git-wip-us.apache.org/repos/asf/carbondata/tree/35ff2c9d Diff: http://git-wip-us.apache.org/repos/asf/carbondata/diff/35ff2c9d Branch: refs/heads/branch-1.5 Commit: 35ff2c9d87b4ddc6fba5c48e5084ecceeef60435 Parents: 311c78b Author: Indhumathi27 <indhumathi...@gmail.com> Authored: Mon Nov 5 16:12:24 2018 +0530 Committer: ravipesala <ravi.pes...@gmail.com> Committed: Wed Nov 21 22:43:15 2018 +0530 ---------------------------------------------------------------------- .../core/scan/executor/impl/AbstractQueryExecutor.java | 5 +++++ 1 file changed, 5 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/carbondata/blob/35ff2c9d/core/src/main/java/org/apache/carbondata/core/scan/executor/impl/AbstractQueryExecutor.java ---------------------------------------------------------------------- diff --git a/core/src/main/java/org/apache/carbondata/core/scan/executor/impl/AbstractQueryExecutor.java b/core/src/main/java/org/apache/carbondata/core/scan/executor/impl/AbstractQueryExecutor.java index 2bd243b..710fbe3 100644 --- a/core/src/main/java/org/apache/carbondata/core/scan/executor/impl/AbstractQueryExecutor.java +++ b/core/src/main/java/org/apache/carbondata/core/scan/executor/impl/AbstractQueryExecutor.java @@ -230,6 +230,11 @@ public abstract class AbstractQueryExecutor<E> implements QueryExecutor<E> { updateColumns(queryModel, fileFooter.getColumnInTable(), blockInfo.getFilePath()); filePathToSegmentPropertiesMap.put(blockInfo.getFilePath(), segmentProperties); } + LOGGER.warn("Skipping Direct Vector Filling as it is not Supported " + + "for Legacy store prior to V3 store"); + if (blockletDetailInfo.isLegacyStore()) { + queryModel.setDirectVectorFill(false); + } readAndFillBlockletInfo(tableBlockInfos, blockInfo, blockletDetailInfo, fileFooter, segmentProperties); } else {