KYLIN-1592: fix the bug of missing cube statistics while migrating cube

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

Branch: refs/heads/1.4-rc
Commit: 01d6394686bb5a2cdc62d536e3ffb5b387248d19
Parents: 5adc113
Author: Zhong <[email protected]>
Authored: Tue Apr 19 01:24:50 2016 +0800
Committer: Zhong <[email protected]>
Committed: Tue Apr 19 01:24:50 2016 +0800

----------------------------------------------------------------------
 .../java/org/apache/kylin/storage/hbase/util/CubeMigrationCLI.java  | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/01d63946/storage-hbase/src/main/java/org/apache/kylin/storage/hbase/util/CubeMigrationCLI.java
----------------------------------------------------------------------
diff --git 
a/storage-hbase/src/main/java/org/apache/kylin/storage/hbase/util/CubeMigrationCLI.java
 
b/storage-hbase/src/main/java/org/apache/kylin/storage/hbase/util/CubeMigrationCLI.java
index ce2b135..a8eeee4 100644
--- 
a/storage-hbase/src/main/java/org/apache/kylin/storage/hbase/util/CubeMigrationCLI.java
+++ 
b/storage-hbase/src/main/java/org/apache/kylin/storage/hbase/util/CubeMigrationCLI.java
@@ -243,6 +243,7 @@ public class CubeMigrationCLI {
         }
 
         for (CubeSegment segment : cube.getSegments()) {
+            metaResource.add(segment.getStatisticsResourcePath());
             dictAndSnapshot.addAll(segment.getSnapshotPaths());
             dictAndSnapshot.addAll(segment.getDictionaryPaths());
         }

Reply via email to