-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allowing to specify a custom work group for AWS Athena queries #3592
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -78,6 +78,11 @@ def configuration_schema(cls): | |||||
'type': 'boolean', | ||||||
'title': 'Use Glue Data Catalog', | ||||||
}, | ||||||
'work_group': { | ||||||
'type': 'string', | ||||||
'title': 'Athena work group', | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
'default': 'primary' | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wouldn't it be safer/more backward compatible to just not pass anything if no value provided? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. According to the AWS documentation:
|
||||||
}, | ||||||
}, | ||||||
'required': ['region', 's3_staging_dir'], | ||||||
'order': ['region', 'aws_access_key', 'aws_secret_key', 's3_staging_dir', 'schema'], | ||||||
|
@@ -170,6 +175,7 @@ def run_query(self, query, user): | |||||
schema_name=self.configuration.get('schema', 'default'), | ||||||
encryption_option=self.configuration.get('encryption_option', None), | ||||||
kms_key=self.configuration.get('kms_key', None), | ||||||
work_group=self.configuration.get('work_group', 'primary'), | ||||||
formatter=SimpleFormatter()).cursor() | ||||||
|
||||||
try: | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add this to the correct place in
order
? (it happens now automatically due to the alphabetical order, but who knows what will come next)