Add db info to table name when creating table snapshot

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

Branch: refs/heads/1.5.x-CDH5.7
Commit: ab6b73be75542a8e3e18f52aa52001286a57334b
Parents: 7815224
Author: Zhong <nju_y...@apache.org>
Authored: Mon Aug 29 09:35:21 2016 +0800
Committer: Zhong <nju_y...@apache.org>
Committed: Mon Aug 29 09:35:50 2016 +0800

----------------------------------------------------------------------
 .../main/java/org/apache/kylin/dict/lookup/SnapshotManager.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/ab6b73be/core-dictionary/src/main/java/org/apache/kylin/dict/lookup/SnapshotManager.java
----------------------------------------------------------------------
diff --git 
a/core-dictionary/src/main/java/org/apache/kylin/dict/lookup/SnapshotManager.java
 
b/core-dictionary/src/main/java/org/apache/kylin/dict/lookup/SnapshotManager.java
index b15847b..0d3848c 100644
--- 
a/core-dictionary/src/main/java/org/apache/kylin/dict/lookup/SnapshotManager.java
+++ 
b/core-dictionary/src/main/java/org/apache/kylin/dict/lookup/SnapshotManager.java
@@ -115,7 +115,7 @@ public class SnapshotManager {
     }
 
     public SnapshotTable buildSnapshot(ReadableTable table, TableDesc 
tableDesc) throws IOException {
-        SnapshotTable snapshot = new SnapshotTable(table, tableDesc.getName());
+        SnapshotTable snapshot = new SnapshotTable(table, 
tableDesc.getIdentity());
         snapshot.updateRandomUuid();
 
         String dup = checkDupByInfo(snapshot);
@@ -135,7 +135,7 @@ public class SnapshotManager {
     }
 
     public SnapshotTable rebuildSnapshot(ReadableTable table, TableDesc 
tableDesc, String overwriteUUID) throws IOException {
-        SnapshotTable snapshot = new SnapshotTable(table, tableDesc.getName());
+        SnapshotTable snapshot = new SnapshotTable(table, 
tableDesc.getIdentity());
         snapshot.setUuid(overwriteUUID);
 
         snapshot.takeSnapshot(table, tableDesc);

Reply via email to