소스 검색

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

Romain Rigaux 7 년 전
부모
커밋
1263ece
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)