carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pallavi Singh (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CARBONDATA-578) CarbonData V2 Format Default Behavior
Date Mon, 16 Jan 2017 13:18:26 GMT

     [ https://issues.apache.org/jira/browse/CARBONDATA-578?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Pallavi Singh updated CARBONDATA-578:
-------------------------------------
    Environment: 
Spark 1.6
Spark 2.1

> CarbonData V2 Format Default Behavior
> -------------------------------------
>
>                 Key: CARBONDATA-578
>                 URL: https://issues.apache.org/jira/browse/CARBONDATA-578
>             Project: CarbonData
>          Issue Type: Bug
>         Environment: Spark 1.6
> Spark 2.1
>            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)

Mime
View raw message