Эх сурвалжийг харах

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

Romain Rigaux 8 жил өмнө
parent
commit
677175b

+ 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) {