Skip to content

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

Merged
JustinBeckwith merged 4 commits intogoogleapis:masterfrom
tswast:issue7558-reference-objects-in-job-configs
Mar 27, 2019
Merged

Allow string for copy sources, query destination, and default dataset#7560
JustinBeckwith merged 4 commits intogoogleapis:masterfrom
tswast:issue7558-reference-objects-in-job-configs

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 alixhami and shollyman 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