vincbeck commented on code in PR #77067:
URL: https://github.com/apache/airflow/pull/77067#discussion_r4603828371
##########
providers/amazon/src/airflow/providers/amazon/aws/operators/athena.py:
##########
@@ -54,10 +54,12 @@ class AthenaOperator(AwsBaseOperator[AthenaHook]):
the ``query_execution_context`` will be used instead.
:param catalog: Catalog to select. (templated)
:param output_location: s3 path to write the query results into.
(templated)
- To run the query, you must specify the query results location using
one of the ways:
- either for individual queries using either this setting (client-side),
- or in the workgroup, using WorkGroupConfiguration.
- If none of them is set, Athena issues an error that no output location
is provided
+ The query results location comes from one of three places: this setting
+ (client-side), the workgroup, using WorkGroupConfiguration, or Athena
itself
+ for a workgroup with managed query results. Leave this setting unset
for such
+ a workgroup, since Athena rejects a query that also sets an output
location.
Review Comment:
nit: same goes for `result_configuration` below, maybe mention it in its
docstring too?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]