浏览代码

HUE-5936 [metastore] Currently selected DB should be used instead of default all the time

Romain Rigaux 8 年之前
父节点
当前提交
677175b
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      desktop/libs/indexer/src/indexer/templates/importer.mako

+ 3 - 1
desktop/libs/indexer/src/indexer/templates/importer.mako

@@ -1205,8 +1205,10 @@ ${ assist.assistPanel() }
         var name = ''
 
         if (self.inputFormat() == 'file') {
+          name = wizard.prefill.target_path ? wizard.prefill.target_path() : 'default';
+
           if (self.path()) {
-            name = self.path().split('/').pop().split('.')[0];
+            name += '.' + self.path().split('/').pop().split('.')[0];
           }
         } else if (self.inputFormat() == 'table') {
           if (self.table().split('.', 2).length == 2) {