-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Add a new param for BigQuery operators to support additional actions when resource exists #29394
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 a new param for BigQuery operators to support additional actions when resource exists #29394
Conversation
…d depracte old one
| :param exists_ok: Deprecated - use `if_exists="ignore"` instead. | ||
| :param if_exists: What should Airflow do if the table exists. If set to `log`, the TI will be passed to | ||
| success and an error message will be logged. Set to `ignore` to ignore the error, set to `fail` to | ||
| fail the TI, and set to `skip` to skip it. |
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.
Small nit, I think it is a good idea move deprecated parameters into the bottom of arguments lists and because operator only supports keyword arguments, this is not break any pipeline.
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.
It's a good idea, I did it for all deprecated parameters in the file and not just in the operators I changed.
|
cc: @mfjackson if you have a time could you also have a look. Is it what you expected for solve #29301 ? |
closes: #29301
Add a new parameter for
BigQueryCreateEmptyTableOperatorandBigQueryCreateEmptyDatasetOperatorto support additional actions when the table or the dataset exists.