Skip to content

Conversation

@ysktir
Copy link
Contributor

@ysktir ysktir commented Feb 2, 2021

Add an exists_ok flag to BigQueryCreateEmptyTableOperator and BigQueryCreateEmptyDatasetOperator.
It makes it possible to ignore "already exists" errors.


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.

@boring-cyborg boring-cyborg bot added the provider:google Google (including GCP) related issues label Feb 2, 2021
@ysktir ysktir changed the title Add exists_ok flag Add exists_ok flag to BigQueryCreateEmptyTable(Dataset)Operator Feb 2, 2021
Copy link
Contributor

@ephraimbuddy ephraimbuddy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just nitpicking here, LGTM

Service Account Token Creator IAM role to the directly preceding identity, with first
account from the list granting this role to the originating account (templated).
:type impersonation_chain: Union[str, Sequence[str]]
:param exists_ok: If ``True``, ignore "already exists" errors when creating the DATASET.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
:param exists_ok: If ``True``, ignore "already exists" errors when creating the DATASET.
:param exists_ok: If ``True``, ignore "already exists" errors when creating the dataset.

ysktir and others added 2 commits February 7, 2021 02:10
@turbaszek turbaszek merged commit 59c94c6 into apache:master Feb 13, 2021
@github-actions github-actions bot added the okay to merge It's ok to merge this PR as it does not require more tests label Feb 13, 2021
@github-actions
Copy link

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 master or amend the last commit of the PR, and push it with --force-with-lease.

@ysktir ysktir deleted the add-param-to-bqoperators branch February 13, 2021 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

okay to merge It's ok to merge this PR as it does not require more tests provider:google Google (including GCP) related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants