From f919abc9183424ccb1c5a83a0cfa055c73845b6d Mon Sep 17 00:00:00 2001 From: Syed Hussaain <103602455+syedahsn@users.noreply.github.com> Date: Thu, 10 Nov 2022 14:44:11 -0800 Subject: [PATCH] Fix backwards compatibility for RedshiftSQLOperator (#27602) * Fix backwards compatibility for RedshiftSQLOperator * Remove redshift_conn_id from template fields --- airflow/providers/amazon/aws/operators/redshift_sql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airflow/providers/amazon/aws/operators/redshift_sql.py b/airflow/providers/amazon/aws/operators/redshift_sql.py index af93c5f6cfb1..b425ac262d17 100644 --- a/airflow/providers/amazon/aws/operators/redshift_sql.py +++ b/airflow/providers/amazon/aws/operators/redshift_sql.py @@ -42,7 +42,7 @@ class RedshiftSQLOperator(SQLExecuteQueryOperator): template_fields: Sequence[str] = ( "sql", - "redshift_conn_id", + "conn_id", ) template_ext: Sequence[str] = (".sql",) template_fields_renderers = {"sql": "postgresql"}