feluelle commented on a change in pull request #7688: [AIRFLOW-6794] Allow AWS
Operator RedshiftToS3Transfer To Run a Custom Query
URL: https://github.com/apache/airflow/pull/7688#discussion_r402389214
##########
File path: airflow/providers/amazon/aws/operators/redshift_to_s3.py
##########
@@ -101,13 +106,19 @@ def __init__( # pylint: disable=too-many-arguments
self.unload_options = list(self.unload_options) + ['HEADER', ]
def execute(self, context):
+ if all([self.schema, self.table]):
Review comment:
Please use `and`. `all` requires a list which you do not need if you use
`and`.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services