Explorar el Código

[hive] Show EXPLAIN errors as a regular message and not error popup

Romain Rigaux hace 5 años
padre
commit
22669160f9
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      desktop/libs/notebook/src/notebook/connectors/hiveserver2.py

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

@@ -574,7 +574,7 @@ class HS2Api(Api):
         explanation = db.explain(query).textual
         statement = query.get_query_statement(0)
       except QueryServerException as ex:
-        raise QueryError(ex.message)
+        explanation = str(ex.message)
 
     return {
       'status': 0,