Skip to content

feat(bigquery): add column data policies to SchemaField - #18710

Merged
tswast merged 3 commits into
googleapis:mainfrom
AliAbouelazm:feat/bigquery-data-policies
Oct 22, 2026
Merged

tswast merged 3 commits into
googleapis:mainfrom
AliAbouelazm:feat/bigquery-data-policies

Conversation

@AliAbouelazm

Copy link
Copy Markdown
Contributor

Adds data_policies to SchemaField so callers can read and set column data policy names without using _properties. Names are serialized as dataPolicies entries, and equality and hashing account for them regardless of order.

The tests cover unset, null, empty, multiple and nested policies, API round trips, repr, and schemas that use policy tags on other columns. The usage guide explains the API representation and the limits around removing the last policy and dataPolicyList precedence.

Validation on Python 3.12: 2,859 unit tests passed, 2 skipped. Black, flake8, mypy and the documentation build passed. The test process used default OpenTelemetry sampling because the inherited setting caused the same seven failures on unmodified main.

Fixes #17617.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

google-cloud-bigquery: support column-level data policies (dataPolicies) in SchemaField

4 participants