GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: support data_governance_type by Linchin · Pull Request #1708 · googleapis/python-bigquery

This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Conversation

@Linchin

@Linchin Linchin commented Oct 30, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #1707 🦕

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Linchin
feat: support data_governance_type
b703f0c
@Linchin
Linchin requested review from a team and prash-mi October 30, 2023 23:35
@product-auto-label product-auto-label Bot added size: m Pull request size is medium. api: bigquery Issues related to the googleapis/python-bigquery API. labels Oct 30, 2023
@Linchin
Linchin requested review from chalmerlowe and shollyman and removed request for prash-mi October 30, 2023 23:35
@Linchin Linchin added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 30, 2023
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 30, 2023
shollyman
shollyman reviewed Nov 1, 2023
View reviewed changes

@shollyman shollyman left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Is it worth adding the new field to an existing system/integration test related to routines, or are there extensive dependencies here to properly setup masking?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread google/cloud/bigquery/routine/routine.py Outdated

@data_governance_type.setter
def data_governance_type(self, value):
if value is not None and value not in self._DATA_GOVERNANCE_TYPE:

@shollyman shollyman Nov 1, 2023

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Generally we try to avoid this kind of setter enforcement in the client library itself, as the library may not be aware of all valid values. Allow the methods to raise errors if there's issues (e.g at routine creation/update/etc).

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@Linchin Linchin Nov 1, 2023

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Thank you, this is really good to know! I will only check for type instead.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Linchin

Linchin commented Nov 1, 2023

Copy link
Copy Markdown
Contributor Author

Is it worth adding the new field to an existing system/integration test related to routines, or are there extensive dependencies here to properly setup masking?

Data governance feels like a new CUJ that is not covered by the current system tests, with a unique set of requirements for the routine itself (e.g., can have only one argument, input and output must be of the same type, etc.). So I added a test case for it.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Linchin added 2 commits November 1, 2023 19:01
@Linchin
remove value validation, add sys test
5882f2d
@Linchin
Merge branch 'main' into data-gov-2
2f545d0
shollyman
shollyman approved these changes Nov 1, 2023
View reviewed changes
@Linchin
Merge branch 'main' into data-gov-2
444e715
@Linchin
Linchin enabled auto-merge (squash) November 1, 2023 23:20
@Linchin
Linchin merged commit eff365d into googleapis:main Nov 1, 2023
@release-please release-please Bot mentioned this pull request Nov 1, 2023
chore(main): release 3.14.0 #1709
Merged
This was referenced Dec 5, 2023
December 04, 2023 kitta65/bq-extension-vscode#257
Closed
December 04, 2023 kitta65/prettier-plugin-bq#264
Closed
December 04, 2023 kitta65/bq2cst#274
Closed
This was referenced Dec 19, 2023
December 18, 2023 kitta65/bq-extension-vscode#262
Closed
December 18, 2023 kitta65/prettier-plugin-bq#269
Closed
December 18, 2023 kitta65/bq2cst#279
Closed
@hrfmmr hrfmmr mentioned this pull request Jan 22, 2024
Support data_governance_type in google_bigquery_routine hashicorp/terraform-provider-google#17061
Closed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@chalmerlowe chalmerlowe Awaiting requested review from chalmerlowe
1 more reviewer
@shollyman shollyman shollyman approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

api: bigquery Issues related to the googleapis/python-bigquery API. size: m Pull request size is medium.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

support data_governance_type when using routine

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@Linchin @shollyman @yoshi-kokoro
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.