Bläddra i källkod

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

Romain Rigaux 5 år sedan
förälder
incheckning
22669160f9
1 ändrade filer med 1 tillägg och 1 borttagningar
  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,