|
@@ -58,7 +58,8 @@ def escape_rows(rows, nulls_only=False, encoding=None):
|
|
|
|
|
|
|
|
def make_notebook(name='Browse', description='', editor_type='hive', statement='', status='ready',
|
|
def make_notebook(name='Browse', description='', editor_type='hive', statement='', status='ready',
|
|
|
files=None, functions=None, settings=None, is_saved=False, database='default', snippet_properties=None, batch_submit=False,
|
|
files=None, functions=None, settings=None, is_saved=False, database='default', snippet_properties=None, batch_submit=False,
|
|
|
- on_success_url=None, skip_historify=False, is_task=False, last_executed=-1, is_notebook=False, pub_sub_url=None, result_properties={}):
|
|
|
|
|
|
|
+ on_success_url=None, skip_historify=False, is_task=False, last_executed=-1, is_notebook=False, pub_sub_url=None, result_properties={},
|
|
|
|
|
+ namespace='default', compute='default'):
|
|
|
'''
|
|
'''
|
|
|
skip_historify: do not add the task to the query history. e.g. SQL Dashboard
|
|
skip_historify: do not add the task to the query history. e.g. SQL Dashboard
|
|
|
isManaged: true when being a managed by Hue operation (include_managed=True in document), e.g. exporting query result, dropping some tables
|
|
isManaged: true when being a managed by Hue operation (include_managed=True in document), e.g. exporting query result, dropping some tables
|
|
@@ -123,6 +124,12 @@ def make_notebook(name='Browse', description='', editor_type='hive', statement='
|
|
|
},
|
|
},
|
|
|
'name': name,
|
|
'name': name,
|
|
|
'database': database,
|
|
'database': database,
|
|
|
|
|
+ 'namespace': {
|
|
|
|
|
+ 'id': namespace
|
|
|
|
|
+ },
|
|
|
|
|
+ 'compute': {
|
|
|
|
|
+ 'id': compute
|
|
|
|
|
+ },
|
|
|
'result': {'handle':{}},
|
|
'result': {'handle':{}},
|
|
|
'variables': []
|
|
'variables': []
|
|
|
}
|
|
}
|