Altonymous opened a new issue, #37372: URL: https://github.com/apache/airflow/issues/37372
### Apache Airflow version 2.8.1 ### If "Other Airflow 2 version" selected, which one? _No response_ ### What happened? Unable to pass in an absolute path to a sql file/template and have it load appropriately in the amazon sql to s3 transfer class: https://github.com/apache/airflow/blob/2.8.1/airflow/providers/amazon/aws/transfers/sql_to_s3.py#L64 ### What you think should happen instead? I would expect it to use the sql/template in the file. ### How to reproduce ``` import pendulum from airflow.decorators import dag, task from airflow.providers.amazon.aws.transfers.sql_to_s3 import SqlToS3Operator dag( schedule_interval=None, start_date=pendulum.datetime(2024, 1, 1, tz="UTC"), catchup=False, tags=["prototype"], ) def users_last_event_taskflow(): @task() def extract(s3_bucket, s3_key, sql_conn_id, aws_conn_id): SqlToS3Operator( query="/app/path/to/sql/template.sql", s3_bucket=s3_bucket, s3_key=s3_key, sql_conn_id=sql_conn_id, aws_conn_id=aws_conn_id, task_id="sql_to_s3_task", replace=True, ).execute(context=None) extract("s3_bucket", "s3_key", "mysql_default", "aws_default") users_last_event_taskflow_etl = users_last_event_taskflow() ``` ### Operating System debian ### Versions of Apache Airflow Providers apache-airflow==2.8.1 apache-airflow-providers-amazon==8.17.0 apache-airflow-providers-mysql==5.1.0 ### Deployment Official Apache Airflow Helm Chart ### Deployment details _No response_ ### Anything else? Every time. ### Are you willing to submit PR? - [ ] 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]
