kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaofeng...@apache.org
Subject [21/50] [abbrv] kylin git commit: KYLIN-1862 "table not found" in "Build Dimension Dictionary" step
Date Mon, 25 Jul 2016 12:12:53 GMT
KYLIN-1862 "table not found" in "Build Dimension Dictionary" step

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

Branch: refs/heads/1.5.x-HBase1.x
Commit: 687d5933a91139d900c8544fcf74abf6c6dae0ee
Parents: 854ec37
Author: shaofengshi <shaofengshi@apache.org>
Authored: Fri Jul 8 22:30:52 2016 +0800
Committer: shaofengshi <shaofengshi@apache.org>
Committed: Fri Jul 8 22:30:52 2016 +0800

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


http://git-wip-us.apache.org/repos/asf/kylin/blob/687d5933/core-dictionary/src/main/java/org/apache/kylin/dict/DictionaryManager.java
----------------------------------------------------------------------
diff --git a/core-dictionary/src/main/java/org/apache/kylin/dict/DictionaryManager.java b/core-dictionary/src/main/java/org/apache/kylin/dict/DictionaryManager.java
index 74120dc..bd00f10 100644
--- a/core-dictionary/src/main/java/org/apache/kylin/dict/DictionaryManager.java
+++ b/core-dictionary/src/main/java/org/apache/kylin/dict/DictionaryManager.java
@@ -290,9 +290,9 @@ public class DictionaryManager {
             MetadataManager metadataManager = MetadataManager.getInstance(config);
             TableDesc tableDesc = new TableDesc(metadataManager.getTableDesc(srcTable));
             if (TableDesc.TABLE_TYPE_VIRTUAL_VIEW.equalsIgnoreCase(tableDesc.getTableType()))
{
-                tableDesc.setDatabase(config.getHiveDatabaseForIntermediateTable());
-                String tableName = tableDesc.getMaterializedName();
-                tableDesc.setName(tableName);
+                TableDesc materializedTbl = new TableDesc();
+                materializedTbl.setDatabase(config.getHiveDatabaseForIntermediateTable());
+                materializedTbl.setName(tableDesc.getMaterializedName());
                 inpTable = SourceFactory.createReadableTable(tableDesc);
             } else {
                 inpTable = SourceFactory.createReadableTable(tableDesc);


Mime
View raw message