Browse Source

HUE-8840 [importer] Fix submit database redirect source_type

jdesjean 6 năm trước cách đây
mục cha
commit
ea1dff1a8e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      desktop/libs/indexer/src/indexer/api3.py

+ 1 - 1
desktop/libs/indexer/src/indexer/api3.py

@@ -471,7 +471,7 @@ def _create_database(request, source, destination, start_time):
   )
 
   editor_type = destination['apiHelperType']
-  on_success_url = reverse('metastore:show_tables', kwargs={'database': database})
+  on_success_url = reverse('metastore:show_tables', kwargs={'database': database}) + "?source_type=" + source.get('sourceType', 'hive')
 
   notebook = make_notebook(
       name=_('Creating database %(name)s') % destination,