浏览代码

HUE-8758 [connector] Clear executables when saving a query

Romain 5 年之前
父节点
当前提交
8b443dd091
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      desktop/libs/notebook/src/notebook/api.py

+ 1 - 0
desktop/libs/notebook/src/notebook/api.py

@@ -462,6 +462,7 @@ def get_logs(request):
 def _save_notebook(notebook, user):
   if notebook['snippets'][0].get('connector') and notebook['snippets'][0]['connector'].get('dialect'):  # TODO Connector unification
     notebook_type = 'query-%(dialect)s' % notebook['snippets'][0]['connector']
+    notebook['snippets'][0]['executor']['executables'] = []
   else:
     notebook_type = notebook.get('type', 'notebook')