Connection schema is returned as None when fetching via jinja template #46412
Labels
affected_version:3.0.0alpha
For all 3.0.0 alpha releases
area:core
area:task-sdk
kind:bug
This is a clearly a bug
Apache Airflow version
Tag: 3.0.0a1
What happened?
Connection schema is returned as None when fetching using
f"{{{{ conn.{dag_name}_connection.schema }}}}"
Stack trace:
dag_id=test_jinja_connection_id_run_id=manual__2025-02-04T06_33_59.506710+00_00_task_id=check_jinja_conn_id_attempt=1.log
What you think should happen instead?
Connection schema value should be returned correct and assertion should pass.
How to reproduce
Use the below DAG to reproduce:
The connection can be created using UI or API having below parameters
request_body = { "connection_id": f"{dag_name}_connection", "conn_type": "postgres", "description": "postgres", "host": "database-1.cxmxicvi57az.us-east-2.rds.amazonaws.com", "login": "postgres", "schema": "postgres", "port": 5432, "password": POSTGRES_PASS }
Operating System
Linux
Versions of Apache Airflow Providers
No response
Deployment
Other
Deployment details
No response
Anything else?
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: