Add environment var to specify AWS Athena workgroup #102
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
resolves #99
Adds an environment variable
DEKART_ATHENA_WORKGROUP
, and then attempts to use that value for specifying the Athena workgroup used when starting a query execution. If the value is not set or is empty, the default value will be anil
string pointer.When the
WorkGroup
field of theStartQueryExecutionInput
struct is a nil pointer, Athena uses theprimary
workgroup that exists within all AWS accounts (since theprimary
workgroup cannot be renamed or deleted, per AWS documentation here).This is the current, implicit behavior since
WorkGroup
was not being utilized until now. If the value is not set, a warning will be emitted when an Athena query is executed, for example:If the specified workgroup does not exist, the query will fail, but I consider that to be expected behavior.
When the environment variable is set, a debug message is emitted when an Athena query, for example: