Explorar o código

HUE-9083 Fix concurrent query with Hive on Tez when `max_number_of_sessions > 1`

TAK LON WU %!s(int64=6) %!d(string=hai) anos
pai
achega
6a8eee8258
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      apps/beeswax/src/beeswax/server/hive_server2_lib.py

+ 1 - 1
apps/beeswax/src/beeswax/server/hive_server2_lib.py

@@ -752,7 +752,7 @@ class HiveServerClient(object):
         session_guid = snippet_data.get('result', {}).get('handle', {}).get('session_guid')
         status = snippet_data.get('status')
 
-        if status in [str(QueryHistory.STATE.submitted), str(QueryHistory.STATE.running)]:
+        if status in [QueryHistory.STATE.submitted.name, QueryHistory.STATE.running.name]:
           if session_guid is not None and session_guid not in busy_sessions:
             busy_sessions.add(session_guid)