Skip to content

BigQuery: LoadJobConfig.schema setter should accept None #9074

Closed
@tswast

Description

@tswast

Is your feature request related to a problem? Please describe.

There is no (public) way to unset a schema after you've set one. Even though the client doesn't distinguish between unset schema and an empty schema, the backend API does.

Describe the solution you'd like

When the set schema is None, remove the whole schema property from the underlying _properties.

Describe alternatives you've considered

We could always send None if a schema is empty, but this wouldn't be right, either.

Additional context

Needed for #9064

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