moritzsanne commented on code in PR #38960:
URL: https://github.com/apache/airflow/pull/38960#discussion_r1562579940
##########
airflow/providers/amazon/aws/operators/glue.py:
##########
@@ -143,7 +143,10 @@ def glue_job_hook(self) -> GlueJobHook:
s3_hook = S3Hook(aws_conn_id=self.aws_conn_id)
script_name = os.path.basename(self.script_location)
s3_hook.load_file(
- self.script_location, self.s3_artifacts_prefix + script_name,
bucket_name=self.s3_bucket
+ self.script_location,
+ self.s3_artifacts_prefix + script_name,
+ bucket_name=self.s3_bucket,
+ replace=True,
Review Comment:
Good point. I do not know that this is the right approach for all potential
use cases and I agree that implementing this as a parameter in the operator
level is the defensive approach. I've just commited an updated implementation.
--
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]