Kaynağa Gözat

HUE-5041 [editor] Hue export large file to HDFS doesn't work on non-default database.

krish 9 yıl önce
ebeveyn
işleme
13f09cd
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      desktop/libs/notebook/src/notebook/views.py

+ 2 - 2
desktop/libs/notebook/src/notebook/views.py

@@ -147,10 +147,10 @@ def execute_and_watch(request):
 
   if action == 'save_as_table':
     sql, success_url = api.export_data_as_table(notebook, snippet, destination)
-    editor = make_notebook(name='Execute and watch', editor_type=editor_type, statement=sql, status='ready-execute')
+    editor = make_notebook(name='Execute and watch', editor_type=editor_type, statement=sql, status='ready-execute', database=snippet['database'])
   elif action == 'insert_as_query':
     sql, success_url = api.export_large_data_to_hdfs(notebook, snippet, destination)
-    editor = make_notebook(name='Execute and watch', editor_type=editor_type, statement=sql, status='ready-execute')
+    editor = make_notebook(name='Execute and watch', editor_type=editor_type, statement=sql, status='ready-execute', database=snippet['database'])
   elif action == 'index_query':
     sql, success_url = api.export_data_as_table(notebook, snippet, destination, is_temporary=True, location='')
     editor = make_notebook(name='Execute and watch', editor_type=editor_type, statement=sql, status='ready-execute')