Skip to content

BigQuery: Add exists_ok=True option to create_dataset #7476

@tswast

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.

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