mdeshmu commented on issue #17011:
URL: https://github.com/apache/superset/issues/17011#issuecomment-1167757107

   @eschutho I ran query against Superset metadata databases's query table. 
   I believe we will have to run the cancel query against Athena to stop the 
actual query execution. 
   As per my understanding, Cancel query implementations for mysql, postgres, 
and snowflake run cancellation against respective database engines and not 
against Superset's metatdata database. Cancelling the Athena query is done via 
[stop_query_execution](https://awscli.amazonaws.com/v2/documentation/api/2.0.33/reference/athena/stop-query-execution.html)
 which requires QueryExecutionId. PyAthena has a [cancel 
method](https://github.com/laughingman7743/PyAthena/blob/master/pyathena/common.py#L484)
 for this purpose. 
   We will have to store QueryExecutionId somewhere in Superset's metadata 
database so that it can be fetched later via get_cancel_query_id. I have 
[raised](https://github.com/laughingman7743/PyAthena/issues/339) this on 
pyathena github project to check if there is an easy way to QueryExecutionId.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to