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

fix: custom query should have precedence over default query in RedshiftToS3Operator #41634

Merged
merged 1 commit into from
Aug 21, 2024

Conversation

kacpermuda
Copy link
Contributor

This PR contains a small fix, in my opinion. When unloading data to S3, one can either pass custom select_query or provide schema and table so that default query is created (SELECT * FROM {self.schema}.{self.table}). After validation to some parameters has been added in #37861, when custom query is provided together with schema and table it's being overwritten by default query. I think that custom select_query should always have precedence, when provided.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@vincbeck vincbeck merged commit 410b577 into apache:main Aug 21, 2024
53 checks passed
@kacpermuda kacpermuda deleted the fix-redshift-to-s3-custom-query branch August 21, 2024 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:providers provider:amazon-aws AWS/Amazon - related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants