-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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 RedshiftDataOperator and update doc #22157
Conversation
The PR is likely OK to be merged with just subset of tests for default Python and Database versions without running the full matrix of tests, because it does not modify the core of Airflow. If the committers decide that the full tests matrix is needed, they will add the label 'full tests needed'. Then you should rebase to the latest main or amend the last commit of the PR, and push it with --force-with-lease. |
@dag( | ||
dag_id='example_redshift_data', | ||
schedule_interval=None, | ||
start_date=datetime(2021, 1, 1), | ||
dagrun_timeout=timedelta(minutes=60), | ||
tags=['example'], | ||
catchup=False, | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why update away from the @dag
decorator? More curiosity than a suggestion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question. We (AWS) are trying to be consistent across the Amazon providers package and decided to go with this format
airflow/providers/amazon/aws/example_dags/example_redshift_data_execute_sql.py
Outdated
Show resolved
Hide resolved
009e8a5
to
8cd5098
Compare
While testing
RedshiftDataOperator
operator as part of #22063 verification process I found out some bugs. The bugs are, for all optional parameters as part ofRedshiftDataOperator
, they should not be passed down to the boto3 client if no value is specified. Otherwise, such error message are thrownInvalid type for parameter Parameters, value: None, type: <class 'NoneType'>, valid types: <class 'list'>, <class 'tuple'>.
I also updated the doc and sample dag for
RedshiftDataOperator