This is an automated email from the ASF dual-hosted git repository. xxyu pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/kylin.git
The following commit(s) were added to refs/heads/master by this push: new 6b616e4 [KYLIN-4702] Correct cube-level snapshot path when the related snapshot can be reused when doing cube migration. 6b616e4 is described below commit 6b616e41a0e89f5cf04377196b308351d559a1cd Author: yangjiang <yangji...@ebay.com> AuthorDate: Tue Dec 15 16:03:16 2020 +0800 [KYLIN-4702] Correct cube-level snapshot path when the related snapshot can be reused when doing cube migration. --- tool/src/main/java/org/apache/kylin/tool/CubeMigrationCLI.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tool/src/main/java/org/apache/kylin/tool/CubeMigrationCLI.java b/tool/src/main/java/org/apache/kylin/tool/CubeMigrationCLI.java index 91f9633..033a669 100644 --- a/tool/src/main/java/org/apache/kylin/tool/CubeMigrationCLI.java +++ b/tool/src/main/java/org/apache/kylin/tool/CubeMigrationCLI.java @@ -533,6 +533,11 @@ public class CubeMigrationCLI extends AbstractApplication { } } } + for (Map.Entry<String, String> entry : cube.getSnapshots().entrySet()) { + if (entry.getValue().equalsIgnoreCase(item)) { + entry.setValue(snapSaved.getResourcePath()); + } + } dstStore.checkAndPutResource(cubeResPath, cube, cubeSerializer); logger.info("Item " + item + " is dup, instead " + snapSaved.getResourcePath() + " is reused");