Skip to content

Commit

Permalink
[CARBONDATA-3075] Select Filter fails for Legacy store if DirectVecor…
Browse files Browse the repository at this point in the history
…Fill 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
  • Loading branch information
Indhumathi27 authored and ravipesala committed Nov 13, 2018
1 parent 1091848 commit 0ccbe1b
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -230,6 +230,11 @@ private List<AbstractIndex> 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 {
Expand Down

0 comments on commit 0ccbe1b

Please sign in to comment.