forked from bellwether/minerva
Merge branch 'add_result_config' into 'main'
Adding ResultConfiguration for specific output location for Athena See merge request pmo/minerva!2
This commit is contained in:
commit
1d509f544c
1 changed files with 4 additions and 1 deletions
|
|
@ -44,11 +44,14 @@ class Execute:
|
|||
return self.sql
|
||||
|
||||
def run(self):
|
||||
config = {"OutputLocation": self.athena.output}
|
||||
if self.params:
|
||||
resp = self.client.start_query_execution(QueryString=self.query(),
|
||||
ResultConfiguration=config,
|
||||
ExecutionParameters=self.params)
|
||||
else:
|
||||
resp = self.client.start_query_execution(QueryString=self.query())
|
||||
resp = self.client.start_query_execution(QueryString=self.query(),
|
||||
ResultConfiguration=config)
|
||||
|
||||
self.query_id = resp['QueryExecutionId']
|
||||
return resp
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue