def _submit_create_and_load(request, create_hql, table_name, path, load_data, database):
 on_success_params = QueryDict('', mutable=True)
 app_name = get_app_name(request)
 if (load_data == 'IMPORT'):
  on_success_params['table'] = table_name
  on_success_params['path'] = path
  on_success_url = ((reverse((app_name + ':load_after_create'), kwargs={'database': database}) + '?') + on_success_params.urlencode())
 else:
  on_success_url = reverse('metastore:describe_table', kwargs={'database': database, 'table': table_name})
 query = hql_query(create_hql, database=database)
 return execute_directly(request, query, on_success_url=on_success_url, on_success_params=on_success_params)

def _submit_create_and_load ( request , create_hql , table_name , path , load_data , database ) : on_success_params = QueryDict ( '' , mutable = True ) app_name = get_app_name ( request ) if ( load_data == 'IMPORT' ) : on_success_params [ 'table' ] = table_name on_success_params [ 'path' ] = path on_success_url = ( ( reverse ( ( app_name + ':load_after_create' ) , kwargs = { 'database' : database } ) + '?' ) + on_success_params . urlencode ( ) ) else : on_success_url = reverse ( 'metastore:describe_table' , kwargs = { 'database' : database , 'table' : table_name } ) query = hql_query ( create_hql , database = database ) return execute_directly ( request , query , on_success_url = on_success_url , on_success_params = on_success_params )
submit the table creation .