Browse Source

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

Romain Rigaux 8 years ago
parent
commit
677175b
1 changed files with 3 additions and 1 deletions
  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 = ''
         var name = ''
 
 
         if (self.inputFormat() == 'file') {
         if (self.inputFormat() == 'file') {
+          name = wizard.prefill.target_path ? wizard.prefill.target_path() : 'default';
+
           if (self.path()) {
           if (self.path()) {
-            name = self.path().split('/').pop().split('.')[0];
+            name += '.' + self.path().split('/').pop().split('.')[0];
           }
           }
         } else if (self.inputFormat() == 'table') {
         } else if (self.inputFormat() == 'table') {
           if (self.table().split('.', 2).length == 2) {
           if (self.table().split('.', 2).length == 2) {