okirialbert commented on code in PR #37861:
URL: https://github.com/apache/airflow/pull/37861#discussion_r1510259643


##########
airflow/providers/amazon/aws/transfers/redshift_to_s3.py:
##########
@@ -109,27 +109,32 @@ def __init__(
     ) -> None:
         super().__init__(**kwargs)
         self.s3_bucket = s3_bucket
-        self.s3_key = f"{s3_key}/{table}_" if (table and table_as_file_name) 
else s3_key
+        if table and table_as_file_name:
+            s3_key = f"{s3_key}/{table}_"

Review Comment:
   I think adding the checks in the `execute` will address this.



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