def get_athena_query_result_location()

in src/main/python/QueryResultsHandler/query_results_handler.py [0:0]


def get_athena_query_result_location(query_execution_id):
  athena_client = boto3.client('athena', region_name=AWS_REGION_NAME)
  response = athena_client.get_query_execution(
    QueryExecutionId=query_execution_id
  )
  output_location = response['QueryExecution']['ResultConfiguration']['OutputLocation']
  return output_location