Content-Length: 325486 | pFad | https://github.com/googleapis/google-cloud-python/pull/7560

2E Allow string for copy sources, query destination, and default dataset by tswast · Pull Request #7560 · googleapis/google-cloud-python · GitHub
Skip to content

Allow string for copy sources, query destination, and default dataset #7560

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

Conversation

tswast
Copy link
Contributor

@tswast tswast commented Mar 26, 2019

This removes a few more cases where it was required to create a
TableReference or DatasetReference.

  • Allow a string for destination in QueryJobConfig .
  • Allow a string for default_dataset in QueryJobConfig .
  • Allow a list of strings for sources in Client.copy_table.

Closes #7558

This removes a few more cases where it was required to create a
TableReference or DatasetReference.

* Allow a string for destination in QueryJobConfig .
* Allow a string for default_dataset in QueryJobConfig .
* Allow a list of strings for sources in Client.copy_table.
@tswast tswast requested review from shollyman and alixhami March 26, 2019 18:11
@tswast tswast requested a review from crwilcox as a code owner March 26, 2019 18:11
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 26, 2019
@tswast
Copy link
Contributor Author

tswast commented Mar 26, 2019

CC @lbristol88

tswast added 2 commits March 26, 2019 14:46
Rename the helper to `_table_arg_to_table_ref` and always return a
TableReference when something sensible is passed in.

Add a second helper `_table_arg_to_table` that always returns a `Table`,
which is needed in `list_rows` and `insert_rows` because only a `Table`
contains a schema.
@JustinBeckwith JustinBeckwith merged commit 39c1efc into googleapis:master Mar 27, 2019
@tswast tswast deleted the issue7558-reference-objects-in-job-configs branch March 27, 2019 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/googleapis/google-cloud-python/pull/7560

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy