Skip to content

feat(bigquery): add Data Governance Tags support to Field - #15062

Draft
jinseopkim0 wants to merge 1 commit into
mainfrom
feat/bigquery-data-governance-tags
Draft

jinseopkim0 wants to merge 1 commit into
mainfrom
feat/bigquery-data-governance-tags

Conversation

@jinseopkim0

Copy link
Copy Markdown
Contributor

BigQuery supports column-level Data Governance Tags (dataGovernanceTagsInfo) on table schemas for access control and dynamic data masking, but the handwritten Java client (Field) currently omits this field when reading or writing table schemas.

This PR adds DataGovernanceTagsInfo and exposes getDataGovernanceTagsInfo() / Builder.setDataGovernanceTagsInfo(...) on Field, supporting setting, reading, preserving (when unset), and clearing (when empty) column data governance tags across table get/insert/patch/update operations.

b/578730559
b/394470230

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces the DataGovernanceTagsInfo class to support data governance tags on BigQuery table schema fields for column-level access control and dynamic data masking. It integrates this new field into the Field class, including builder methods, serialization/deserialization logic, and corresponding unit tests. However, the equals method in Field.java was not updated to include the new dataGovernanceTagsInfo field, which violates the equals and hashCode contract and needs to be addressed.

This branch has not been deployed

No deployments
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.

1 participant