Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Merged
plamut merged 4 commits intogoogleapis:masterfromtswast:bq-dot-dataset-deprecation
Jan 27, 2020

Conversation

@tswast
Copy link
Contributor

@tswasttswast commentedApr 19, 2019
edited
Loading

Now that all client methods that take aDatasetReference or
TableReference also take a string, theclient.dataset() method is
unnecessary and confusing.

Closes#8989.

@googlebotgooglebot added the cla: yesThis human has signed the Contributor License Agreement. labelApr 19, 2019
@tswast
Copy link
ContributorAuthor

@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.dataset() 96 times in our samples atdocs/snippets.py, and that's after@lbristol88 already moved a bunch over to the new "just use a string instead of a reference" way of doing things! I would feel better about adding the deprecation notice after we update the rest of our samples.

@yoshi-automationyoshi-automation added the 🚨This issue needs some love. labelApr 26, 2019
@busunkim96
Copy link
Contributor

@tswast Gentle ping to see if there are any updates on this PR.

@tswast
Copy link
ContributorAuthor

@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
Copy link
Contributor

@tswast Nope, I just wanted to check. 😸 Thanks!

@yoshi-automationyoshi-automation removed the 🚨This issue needs some love. labelJul 3, 2019
@tswasttswast closed thisDec 27, 2019
@tswasttswast deleted the bq-dot-dataset-deprecation branchDecember 27, 2019 21:21
@tswasttswast restored the bq-dot-dataset-deprecation branchDecember 29, 2019 00:04
@tswasttswast reopened thisDec 29, 2019
@tswasttswastforce-pushed thebq-dot-dataset-deprecation branch from074af14 to5a1bab8CompareJanuary 23, 2020 20:18
…ReferenceNow that all client methods that take a `DatasetReference` or`TableReference` also take a string, the `client.dataset()` method isunnecessary and confusing.
@tswasttswastforce-pushed thebq-dot-dataset-deprecation branch from5a1bab8 tocec97ffCompareJanuary 23, 2020 20:19
@tswasttswast changed the titleDocumentclient.dataset() deprecation.deprecate(bigquery): deprecateclient.dataset() in favor ofDatasetReferenceJan 23, 2020
@tswasttswast marked this pull request as ready for reviewJanuary 23, 2020 20:20
@tswasttswast requested review froma team,plamut andshollymanJanuary 23, 2020 20:20
Copy link
Contributor

@plamutplamut left a 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.

Comment on lines 360 to 363
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.
Copy link
Contributor

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.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Doesn't appear to change formatting all that much:

image

Pushed the change in case it makes things a little more machine-readable or something, though.

@plamut
Copy link
Contributor

plamut commentedJan 24, 2020
edited
Loading

Thetest_client_load_partitioned_table snippet test failure could be unrelated, happens onanother PR, too.

Might still be worth investigating, though.

Edit: Also happens onmaster, thus indeed unrelated to this PR.

Update:#10195 fixes it.

Co-Authored-By: Peter Lamut <plamut@users.noreply.github.com>
@tswast
Copy link
ContributorAuthor

There are still a lot ofclient.dataset() calls in snippets.py, but that file is deprecated, IIRC.

That's right. We're moving those samples to thesamples/ directory and updating them to avoid the use ofclient.dataset(). I'm hoping that with#10175 and#10176 we'll have enough snippets updated.

Copy link
Contributor

@plamutplamut left a comment

Choose a reason for hiding this comment

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

Looks good now. 👍

@plamutplamut merged commit7e36fda intogoogleapis:masterJan 27, 2020
@tswasttswast deleted the bq-dot-dataset-deprecation branchJanuary 27, 2020 16:22
This was referencedJan 29, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@shollymanshollymanAwaiting requested review from shollyman

1 more reviewer

@plamutplamutplamut approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

cla: yesThis human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

BigQuery: deprecateclient.dataset()

5 participants

@tswast@busunkim96@plamut@googlebot@yoshi-automation

[8]ページ先頭

©2009-2025 Movatter.jp