Browse Source

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

Romain Rigaux 7 years ago
parent
commit
1263ecea45
1 changed files with 1 additions and 4 deletions
  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)