Skip to content

BigQuery: Add exists_ok=True option to create_dataset #7476

Closed

Description

@tswast

It's common to have to set up a dataset for a script, where you only want to create it if it doesn't already exist.

Currently, one has to manually catch the exception and check if err.code == HTTPStatus.CONFLICT: # 409

Instead, it would be ideal if there was an exists_ok option, similar to how the Path.mkdir function can catch and ignore the FileExistsError for you.

Activity

  1. added
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    api: bigqueryIssues related to the BigQuery API.
    on Mar 4, 2019
  2. changed the title [-]BigQuery: Add `exist_ok=True` option to `create_dataset`[/-] [+]BigQuery: Add `exists_ok=True` option to `create_dataset`[/+] on Mar 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: bigqueryIssues related to the BigQuery API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions