Repository: kylin
Updated Branches:
  refs/heads/master f0fe457e3 -> e7779f7e2


KYLIN-1704: initialize rowIndices and dict during deserializing when snapshot 
table is empty


Project: http://git-wip-us.apache.org/repos/asf/kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/e7779f7e
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/e7779f7e
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/e7779f7e

Branch: refs/heads/master
Commit: e7779f7e2abafa1aa9c51b23f05f5b12ec47fbcc
Parents: f0fe457
Author: kyotoYaho <nju_y...@apache.org>
Authored: Wed May 18 12:57:59 2016 +0800
Committer: kyotoYaho <nju_y...@apache.org>
Committed: Wed May 18 20:59:39 2016 +0800

----------------------------------------------------------------------
 .../src/main/java/org/apache/kylin/dict/lookup/SnapshotTable.java | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/e7779f7e/core-dictionary/src/main/java/org/apache/kylin/dict/lookup/SnapshotTable.java
----------------------------------------------------------------------
diff --git 
a/core-dictionary/src/main/java/org/apache/kylin/dict/lookup/SnapshotTable.java 
b/core-dictionary/src/main/java/org/apache/kylin/dict/lookup/SnapshotTable.java
index 9337829..fdc0c44 100644
--- 
a/core-dictionary/src/main/java/org/apache/kylin/dict/lookup/SnapshotTable.java
+++ 
b/core-dictionary/src/main/java/org/apache/kylin/dict/lookup/SnapshotTable.java
@@ -249,6 +249,9 @@ public class SnapshotTable extends RootPersistentEntity 
implements ReadableTable
                     this.rowIndices.add(rowIndex);
                 }
             }
+        }else{
+            rowIndices = new ArrayList<int[]>();
+            dict = new TrieDictionary<String>();
         }
     }
 

Reply via email to