[
https://issues.apache.org/jira/browse/CARBONDATA-578?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ravindra Pesala resolved CARBONDATA-578.
----------------------------------------
Resolution: Fixed
> CarbonData V2 Format Default Behavior
> -------------------------------------
>
> Key: CARBONDATA-578
> URL:
https://issues.apache.org/jira/browse/CARBONDATA-578> Project: CarbonData
> Issue Type: Bug
> Reporter: Pallavi Singh
> Priority: Minor
> Time Spent: 1h
> Remaining Estimate: 0h
>
> In the CarbonCommonConstants.java it has been specified :
> public static final String CARBON_DATA_FILE_DEFAULT_VERSION = "V2";
> as default. Then why in CarbonDataReaderFactory.java
> public DimensionColumnChunkReader getDimensionColumnChunkReader(ColumnarFormatVersion version,
> BlockletInfo blockletInfo, int[] eachColumnValueSize, String filePath) {
> switch (version) {
> case V2:
> return new CompressedDimensionChunkFileBasedReaderV2(blockletInfo, eachColumnValueSize,
> filePath);
> case V1:
> return new CompressedDimensionChunkFileBasedReaderV1(blockletInfo, eachColumnValueSize,
> filePath);
> default:
> throw new IllegalArgumentException("invalid format version: " + version);
> }
> }
> throw an exception for Invalid format, when default Format Version is V2.
> By default it should take V2 as default format.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)