Repository: incubator-carbondata
Updated Branches:
  refs/heads/master 5406cee1b -> 72900c553


fix compatibility


Project: http://git-wip-us.apache.org/repos/asf/incubator-carbondata/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-carbondata/commit/7904716b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-carbondata/tree/7904716b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-carbondata/diff/7904716b

Branch: refs/heads/master
Commit: 7904716b9396b9ba660e4cb08ef0cba1821f3166
Parents: 5406cee
Author: jackylk <jacky.li...@huawei.com>
Authored: Fri Dec 2 12:10:58 2016 +0800
Committer: jackylk <jacky.li...@huawei.com>
Committed: Fri Dec 2 12:10:58 2016 +0800

----------------------------------------------------------------------
 .../apache/carbondata/core/carbon/ColumnarFormatVersion.java    | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/7904716b/core/src/main/java/org/apache/carbondata/core/carbon/ColumnarFormatVersion.java
----------------------------------------------------------------------
diff --git 
a/core/src/main/java/org/apache/carbondata/core/carbon/ColumnarFormatVersion.java
 
b/core/src/main/java/org/apache/carbondata/core/carbon/ColumnarFormatVersion.java
index bef345c..8a1b8eb 100644
--- 
a/core/src/main/java/org/apache/carbondata/core/carbon/ColumnarFormatVersion.java
+++ 
b/core/src/main/java/org/apache/carbondata/core/carbon/ColumnarFormatVersion.java
@@ -39,9 +39,14 @@ public enum ColumnarFormatVersion {
 
   public static ColumnarFormatVersion valueOf(short version) {
     switch (version) {
+      case 0:
+        // before multiple reader support, for existing carbon file, it is 
version 1
+        return V1;
       case 1:
+        // after multiple reader support, user can write new file with version 
1
         return V1;
       case 2:
+        // after multiple reader support, user can write new file with version 
2
         return V2;
       default:
         throw new IllegalArgumentException("invalid format version: " + 
version);

Reply via email to