superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maximebeauche...@apache.org
Subject [incubator-superset] branch master updated: [hive] improve error messages (#3305)
Date Thu, 17 Aug 2017 00:40:30 GMT
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 <maximebeauchemin@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" <commits@superset.apache.org>'].

Mime
View raw message