瀏覽代碼

HUE-8330 [sql] Remove hardcoding to timeout after 5s when executing statement

Romain Rigaux 7 年之前
父節點
當前提交
1263ecea45
共有 1 個文件被更改,包括 1 次插入4 次删除
  1. 1 4
      desktop/libs/notebook/src/notebook/connectors/hiveserver2.py

+ 1 - 4
desktop/libs/notebook/src/notebook/connectors/hiveserver2.py

@@ -250,10 +250,7 @@ class HS2Api(Api):
       if statement.get('statement_id') == 0:
         if query.database and not statement['statement'].lower().startswith('set'):
           db.use(query.database)
-      if True:
-        handle = db.execute_and_wait(query=query, timeout_sec=5)
-      else:
-        handle = db.client.query(query, with_multiple_session=True)
+      handle = db.client.query(query, with_multiple_session=True)
     except QueryServerException, ex:
       raise QueryError(ex.message, handle=statement)