kaxil commented on a change in pull request #14177:
URL: https://github.com/apache/airflow/pull/14177#discussion_r574072789
##########
File path: airflow/providers/amazon/aws/transfers/redshift_to_s3.py
##########
@@ -101,6 +107,14 @@ def __init__( # pylint: disable=too-many-arguments
self.include_header = include_header
self.table_as_file_name = table_as_file_name
+ self._select_query = None
+ if select_query:
+ self._select_query = select_query
+ elif self.schema and self.table:
+ self._select_query = f"SELECT * FROM {self.schema}.{self.table}"
+ else:
+ raise ValueError('Please provide both `schema` and `table` params
or `select_query` to fetch the data.')
Review comment:
This should fix failing Pylint error:
https://github.com/apache/airflow/pull/14177/checks?check_run_id=1873280195#step:7:137
----------------------------------------------------------------
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]