DG47 commented on code in PR #74279:
URL: https://github.com/apache/airflow/pull/74279#discussion_r4668907216


##########
providers/common/sql/src/airflow/providers/common/sql/operators/sql.py:
##########
@@ -546,6 +552,7 @@ def __init__(
         self.return_last = return_last
         self.show_return_value_in_logs = show_return_value_in_logs
         self.requires_result_fetch = requires_result_fetch
+        self.cancel_on_kill = cancel_on_kill

Review Comment:
   Follow-up in 1f0d888b25: instead of passing `cancel_on_kill` to 
`super().__init__`, `SnowflakeSqlApiOperator` now assigns `self.cancel_on_kill 
= cancel_on_kill` right after `super().__init__(...)`, so it overrides the base 
default. This keeps the operator working with older common-sql releases (the 
provider allows `>=1.32.0`) whose `SQLExecuteQueryOperator` does not accept 
`cancel_on_kill`. Nothing else in that `__init__` reads it before the call. 
`test_snowflake_sql_api_on_kill_respects_cancel_on_kill_false` still passes, 
and the full Snowflake operator test module passes locally (74 passed).



-- 
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]

Reply via email to