浏览代码

[notebook] Accept settings, file_resources, and functions as serialized by request

Jenny Kim 9 年之前
父节点
当前提交
2fe09eb
共有 1 个文件被更改,包括 0 次插入7 次删除
  1. 0 7
      desktop/libs/notebook/src/notebook/connectors/hiveserver2.py

+ 0 - 7
desktop/libs/notebook/src/notebook/connectors/hiveserver2.py

@@ -124,13 +124,6 @@ class HS2Api(Api):
     functions = snippet['properties'].get('functions', None)
     database = snippet.get('database') or 'default'
 
-    if settings:
-      settings = [{'key': s.rsplit('=', 1)[0], 'value': s.rsplit('=', 1)[1]} for s in settings] # TODO integrate with new binding
-    if file_resources:
-      file_resources = [{'type': 'JAR', 'path': f} for f in file_resources] # TODO support FILE ARCHIVE
-    if functions:
-      functions = [{'name': f.rsplit(' ', 1)[0], 'class_name': f.rsplit(' ', 1)[1]} for f in functions] # TODO protect for index out of bounds
-
     query = hql_query(statement, query_type=QUERY_TYPES[0], settings=settings, file_resources=file_resources, functions=functions, database=database)
 
     try: