You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ma...@apache.org on 2017/08/17 00:40:30 UTC
[incubator-superset] branch master updated: [hive] improve error
messages (#3305)
This is an automated email from the ASF dual-hosted git repository.
maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
The following commit(s) were added to refs/heads/master by this push:
new 0aa3d2a [hive] improve error messages (#3305)
0aa3d2a is described below
commit 0aa3d2a81853eb362ae84dfc6acd7fa309de4173
Author: Maxime Beauchemin <ma...@gmail.com>
AuthorDate: Wed Aug 16 17:40:28 2017 -0700
[hive] improve error messages (#3305)
* [hive] improve error messages
* Addressing comments
---
superset/db_engine_specs.py | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/superset/db_engine_specs.py b/superset/db_engine_specs.py
index 5f67ec6..0fe9889 100644
--- a/superset/db_engine_specs.py
+++ b/superset/db_engine_specs.py
@@ -682,6 +682,14 @@ class HiveEngineSpec(PrestoEngineSpec):
return uri
@classmethod
+ def extract_error_message(cls, e):
+ try:
+ msg = e.message.status.errorMessage
+ except:
+ msg = str(e)
+ return msg
+
+ @classmethod
def progress(cls, log_lines):
total_jobs = 1 # assuming there's at least 1 job
current_job = 1
--
To stop receiving notification emails like this one, please contact
['"commits@superset.apache.org" <co...@superset.apache.org>'].