uranusjr commented on code in PR #33427:
URL: https://github.com/apache/airflow/pull/33427#discussion_r1295486106
##########
airflow/providers/amazon/aws/transfers/s3_to_sql.py:
##########
@@ -120,7 +124,7 @@ def execute(self, context: Context) -> None:
@cached_property
def db_hook(self):
self.log.debug("Get connection for %s", self.sql_conn_id)
- hook = BaseHook.get_hook(self.sql_conn_id)
+ hook = BaseHook.get_hook(self.sql_conn_id,
hook_params=self.sql_hook_params)
Review Comment:
You can’t do this because providers needs to support older Airflow versions.
##########
airflow/providers/amazon/aws/transfers/s3_to_sql.py:
##########
@@ -120,7 +124,7 @@ def execute(self, context: Context) -> None:
@cached_property
def db_hook(self):
self.log.debug("Get connection for %s", self.sql_conn_id)
- hook = BaseHook.get_hook(self.sql_conn_id)
+ hook = BaseHook.get_hook(self.sql_conn_id,
hook_params=self.sql_hook_params)
Review Comment:
You can’t do this because providers needs to support older Airflow versions.
--
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]