- Notifications
You must be signed in to change notification settings - Fork1.6k
deprecate(bigquery): deprecateclient.dataset() in favor ofDatasetReference#7753
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
tswast commentedApr 19, 2019
@crwilcox I was inspired by our conversation today. Note: I've created this as a draft pull request because after I made this commit, I realized we still call |
busunkim96 commentedJun 10, 2019
@tswast Gentle ping to see if there are any updates on this PR. |
tswast commentedJun 10, 2019
@busunkim96 I've worked with@sduskis to allocate some contractor resources for the necessary code sample updates before we unleash this PR. Is it an issue if we keep this open for now? |
busunkim96 commentedJun 10, 2019
@tswast Nope, I just wanted to check. 😸 Thanks! |
074af14 to5a1bab8Compare…ReferenceNow that all client methods that take a `DatasetReference` or`TableReference` also take a string, the `client.dataset()` method isunnecessary and confusing.
5a1bab8 tocec97ffCompareclient.dataset() deprecation.client.dataset() in favor ofDatasetReference
plamut left a comment
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.
There are still a lot ofclient.dataset() calls insnippets.py, but that file is deprecated, IIRC.
The rest looks good, aside from a remark on a possible grammar thingy.
| This method is deprecated. Construct a | ||
| :class:`~google.cloud.bigquery.dataset.DatasetReference` using its | ||
| constructor or use a string where previously a reference object was | ||
| used. |
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.
Would it make sense to use the standardSphinx directive for deprecations?
The text itself is already clear, though.
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.
Uh oh!
There was an error while loading.Please reload this page.
plamut commentedJan 24, 2020 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
The Might still be worth investigating, though. Edit: Also happens on Update:#10195 fixes it. |
Co-Authored-By: Peter Lamut <plamut@users.noreply.github.com>
tswast commentedJan 24, 2020
plamut left a comment
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.
Looks good now. 👍

Uh oh!
There was an error while loading.Please reload this page.
Now that all client methods that take a
DatasetReferenceorTableReferencealso take a string, theclient.dataset()method isunnecessary and confusing.
Closes#8989.