oliver-helix opened a new issue, #39651:
URL: https://github.com/apache/airflow/issues/39651
### Apache Airflow version
Other Airflow 2 version (please specify below)
### If "Other Airflow 2 version" selected, which one?
2.7.2
### What happened?
When providing airflow params, the parameter is not available in the body of
the airflow dag.
### What you think should happen instead?
The value should be available in the airflow dag
### How to reproduce
```python
from airflow import DAG
from airflow.models.param import Param
from airflow.providers.common.sql.operators.sql import
SQLExecuteQueryOperator
with DAG("generate_password_dag", params={"test": Param("defeault",
type="string")}) as dag:
sql_operator = SQLExecuteQueryOperator(
task_id="sql_operator",
sql="sql/{{ params.test }}.sql",
database="default",
)
```
### Operating System
NA
### Versions of Apache Airflow Providers
NA
### Deployment
Official Apache Airflow Helm Chart
### Deployment details
NA
### Anything else?
NA
### 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]