From 0ccbe1b4dd26045c473e95327b7c0725790bf521 Mon Sep 17 00:00:00 2001 From: Indhumathi27 Date: Mon, 5 Nov 2018 16:12:24 +0530 Subject: [PATCH] [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 --- .../core/scan/executor/impl/AbstractQueryExecutor.java | 5 +++++ 1 file changed, 5 insertions(+) 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 2bd243b944b..710fbe3f0fb 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 @@ private List getDataBlocks(QueryModel queryModel) throws IOExcept 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 {