Skip to content

Conversation

@hussein-awala
Copy link
Member

closes: #29301

Add a new parameter for BigQueryCreateEmptyTableOperator and BigQueryCreateEmptyDatasetOperator to support additional actions when the table or the dataset exists.

@hussein-awala hussein-awala changed the title [WIP] Add a new param for bg operators to support additional actions when resource exists Add a new param for bg operators to support additional actions when resource exists Feb 7, 2023
Comment on lines 1266 to 1269
: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.
Copy link
Contributor

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.

Copy link
Member Author

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.

@Taragolis
Copy link
Contributor

cc: @mfjackson if you have a time could you also have a look. Is it what you expected for solve #29301 ?

@eladkal eladkal changed the title Add a new param for bg operators to support additional actions when resource exists Add a new param for BigQuery operators to support additional actions when resource exists Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:google Google (including GCP) related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BigQueryCreateEmptyTableOperator exists_ok parameter doesn't throw appropriate error when set to "False"

3 participants