Repository: kylin Updated Branches: refs/heads/master e89af6c22 -> 4528ff630
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/47feb29d Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/47feb29d Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/47feb29d Branch: refs/heads/master Commit: 47feb29d681a68663a78c3a189337740a6775268 Parents: e89af6c Author: shaofengshi <[email protected]> Authored: Fri Jul 8 22:30:52 2016 +0800 Committer: shaofengshi <[email protected]> Committed: Mon Jul 11 10:50: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/47feb29d/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);
