flolas opened a new issue, #34583: URL: https://github.com/apache/airflow/issues/34583
### Description While Apache Airflow currently offers the [SQLExecuteQueryOperator](https://airflow.apache.org/docs/apache-airflow-providers-common-sql/stable/operators.html), which allows users to execute a list of SQL statements using DBApi Hook, this functionality in missing in AthenaOperator.Integrating this feature into AthenaOperator would be highly beneficial. Another alternative would be to use [PyAthena](https://github.com/laughingman7743/PyAthena/) in conjunction with DBApiHook, but this would introduce an additional dependency. ### Use case/motivation There are scenarios where we have multiple SQL statements that need to be executed in sequence during each retry to maintain idempotency. AWS Athena's API function StartQueryExecution does not currently support the execution of multiple SQL statements. However, this functionality is available when using the AWS CLI for Athena. Incorporating this feature into AthenaOperator would streamline this process and enhance its utility. ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md) -- 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]
