mirror of
https://github.com/valitydev/redash.git
synced 2024-11-09 02:06:49 +00:00
Merge pull request #1753 from fbertsch/presto_cancellation
[Presto] Add: query cancellation support
This commit is contained in:
commit
22e3a4d8f2
@ -118,7 +118,11 @@ class Presto(BaseQueryRunner):
|
||||
default_message = 'Unspecified DatabaseError: {0}'.format(db.message)
|
||||
message = db.message.get('failureInfo', {'message', None}).get('message')
|
||||
error = default_message if message is None else message
|
||||
except Exception, ex:
|
||||
except (KeyboardInterrupt, InterruptException) as e:
|
||||
cursor.cancel()
|
||||
error = "Query cancelled by user."
|
||||
json_data = None
|
||||
except Exception as ex:
|
||||
json_data = None
|
||||
error = ex.message
|
||||
if not isinstance(error, basestring):
|
||||
|
@ -4,7 +4,7 @@ impyla==0.10.0
|
||||
influxdb==2.7.1
|
||||
MySQL-python==1.2.5
|
||||
oauth2client==3.0.0
|
||||
pyhive==0.1.6
|
||||
pyhive==0.3.0
|
||||
pymongo==3.2.1
|
||||
pyOpenSSL==0.14
|
||||
vertica-python==0.5.1
|
||||
|
Loading…
Reference in New Issue
Block a user