[editor] Prevent exception when executing an Impala query in editor v2
@@ -162,6 +162,7 @@ def _execute_notebook(request, notebook, snippet):
if 'id' in active_executable: # Editor v2
# notebook_executable is the 1-to-1 match of active_executable in the notebook structure
notebook_executable = [e for e in _snippet['executor']['executables'] if e['id'] == active_executable['id']][0]
+ if 'handle' in response:
notebook_executable['handle'] = response['handle']
if history:
notebook_executable['history'] = {
