vincbeck commented on code in PR #42900:
URL: https://github.com/apache/airflow/pull/42900#discussion_r1801244746


##########
providers/src/airflow/providers/amazon/aws/operators/redshift_data.py:
##########
@@ -154,18 +156,20 @@ def execute(self, context: Context) -> 
GetStatementResultResponseTypeDef | str:
             session_keep_alive_seconds=self.session_keep_alive_seconds,
         )
 
-        self.statement_id = query_execution_output.statement_id
+        # Pull the statement ID, session ID
+        statement_id: str = query_execution_output.statement_id
+        self.statement_id = statement_id  # To be used in "on_kill" if needed

Review Comment:
   No need to have 2 variables then, you could store it directly in 
`self.statement_id`



-- 
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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to