[jira] [Created] (CARBONDATA-578) CarbonData V2 Format Default Behavior

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (CARBONDATA-578) CarbonData V2 Format Default Behavior

Akash R Nilugal (Jira)
Pallavi Singh created CARBONDATA-578:
----------------------------------------

             Summary: 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


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)