Skip to content

add ability to unset policy tags (and description?) in schema fields #558

@tswast

Description

@tswast

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

I noticed in #557 that we don't send the policy tags property if none are set in SchemaField. I believe this tells the backend not to make any updates to the policy tags property. This means it's not possible to unset policy tags from Python.

(Note: I haven't verified this, so some system tests / samples should be written for this use case)

Describe the solution you'd like

Similar to what I did for description in #557, we should disambiguate between unset policy tags and empty / none for policy tags.

Describe alternatives you've considered

We could make the update fields property more fine-grained, such as schema.policytags in order to force a sub-property to be included. This feels overly complicated, though.

Additional context

N/A

Metadata

Metadata

Assignees

Labels

api: bigqueryIssues related to the googleapis/python-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