Repository: kylin Updated Branches: refs/heads/1.4-rc 7411a98db -> 12efa7409
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/12efa740 Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/12efa740 Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/12efa740 Branch: refs/heads/1.4-rc Commit: 12efa74098a3b6a9214bf5a4aece56bc013ca4f2 Parents: 7411a98 Author: kyotoYaho <nju_y...@apache.org> Authored: Wed May 18 13:13:47 2016 +0800 Committer: kyotoYaho <nju_y...@apache.org> Committed: Wed May 18 13:13:47 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/12efa740/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 e9a99b9..b179307 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 @@ -248,6 +248,9 @@ public class SnapshotTable extends RootPersistentEntity implements ReadableTable this.rowIndices.add(rowIndex); } } + }else{ + rowIndices = new ArrayList<int[]>(); + dict = new TrieDictionary<String>(); } }