@@ -1658,7 +1658,8 @@ var ApiHelper = (function () {
self.simplePost(SAMPLE_API_PREFIX + options.path.join('/'), {
notebook: {},
snippet: JSON.stringify({
- type: options.sourceType
+ type: options.sourceType,
+ compute: options.compute
}),
async: true,
operation: '"' + (options.operation || 'default') + '"'
@@ -66,6 +66,10 @@ def make_notebook(name='Browse', description='', editor_type='hive', statement='
'''
from notebook.connectors.hiveserver2 import HS2Api
+ # impala can have compute name appended to the editor_type (impala/dbms.py - get_query_server_config)
+ if editor_type.startswith('impala'):
+ editor_type = 'impala'
+
editor = Notebook()
if snippet_properties is None:
snippet_properties = {}