You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2019/06/23 21:03:55 UTC

[GitHub] [airflow] cjsekl opened a new pull request #5467: [AIRFLOW-4838] Surface Athena errors in AWSAthenaOperator

cjsekl opened a new pull request #5467: [AIRFLOW-4838] Surface Athena errors in AWSAthenaOperator
URL: https://github.com/apache/airflow/pull/5467
 
 
   When a Athena query results in a failure state
   the Athena error message is available from the
   boto3 response. This commit surfaces that error
   message in the AWSAthenaOperator through the
   get_state_change_reason in AWSAthenaHook.
   
   
   ### Jira
   https://issues.apache.org/jira/browse/AIRFLOW-4838
   
   ### Description
   This PR surfaces the Athena `StateChangeReason` which in case of a query failure includes more information about the error. The new method `get_state_change_reason` in the `AWSAthenaHook` gets the string from the returned `boto3` response
   
   ### Tests
   The PR adds an additional assert to the `test_hook_run_failure_query` test which covers the new `get_state_change_reason` method.
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services