-
Notifications
You must be signed in to change notification settings - Fork 553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add BigQuery Routine #4707
Add BigQuery Routine #4707
Conversation
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
A Googler has manually verified that the CLAs look good. (Googler, please make sure the reason for overriding the CLA status is clearly documented in these comments.) ℹ️ Googlers: Go here for more info. |
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
00e3b70
to
f3ff1f9
Compare
A Googler has manually verified that the CLAs look good. (Googler, please make sure the reason for overriding the CLA status is clearly documented in these comments.) ℹ️ Googlers: Go here for more info. |
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
97b2897
to
0bed1f9
Compare
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.
Thanks for putting this together. Added comments, reviewing this helped me realize we need to revisit filter / readmask for the initial implementations where missing.
class Routine | ||
## | ||
# Routine::List is a special case Array with additional values. | ||
class List < DelegateClass(::Array) |
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.
It looks like this is missing support for supported list params. Added a comment to the impl guide because I realized the docs weren't properly exposing their presence.
|
||
routines.count.must_equal 6 | ||
routines.each { |ds| ds.must_be_kind_of Google::Cloud::Bigquery::Routine } | ||
end |
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.
possibly want an list test in this test set that leverages filter once it is available.
I'll start work now on adding the Is the readmask also appropriate/desired in the ruby client? You probably noticed that this client has a somewhat elaborate mechanism for transitioning an object from a partial to a full projection. I'm not sure how this will interact with a readmask for routines.list since the detection of the partial projection state depends on the presence of a field that is missing in the default partial project from the list but required in the full projection. |
@shollyman I added |
@shollyman PTAL, let me know if you want anything else in this PR, or if it's ready for @dazuma to review. Thanks! |
A Googler has manually verified that the CLAs look good. (Googler, please make sure the reason for overriding the CLA status is clearly documented in these comments.) ℹ️ Googlers: Go here for more info. |
Thanks, it looks good from my perspective. I concur with the read mask being of lesser value here given you've got a much more stateful implementation to deal with here. |
@googlebot I consent. |
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
…ented RuntimeError
…s to options hash
See googleapis/google-cloud-python#8491 for an example.
closes: #4430