Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add flag apply_gcs_prefix to S3ToGCSOperator #31127

Merged
merged 1 commit into from
May 13, 2023

Conversation

moiseenkov
Copy link
Contributor

Added parameter apply_gcs_prefix=False.

If it is set True, then objects will be copied from S3 to GCS without copying their full source path. Instead, a new destination path will be constructed as a source path, where S3 prefix is replaced by a GCS prefix. It allows users to copy files from S3 into a specific folder in GCS.

The default value is apply_gcs_prefix=False which refers to the old operators behavior, therefore merging this PR won't affect existing users, unless they change the value for this parameter in their DAGs.

@boring-cyborg boring-cyborg bot added area:providers area:system-tests provider:google Google (including GCP) related issues labels May 8, 2023
@moiseenkov moiseenkov force-pushed the s3_to_gcs_apply_gcs_prefix branch 3 times, most recently from 1425a32 to 5a6bd82 Compare May 8, 2023 10:49
@moiseenkov moiseenkov force-pushed the s3_to_gcs_apply_gcs_prefix branch from 5a6bd82 to 20e4141 Compare May 8, 2023 11:42
@potiuk potiuk merged commit fb6c501 into apache:main May 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:providers area:system-tests provider:google Google (including GCP) related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants