Skip to content
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

Accept copy jobs with single 'sourceTable' config. #2884

Merged
merged 2 commits into from
Dec 28, 2016
Merged

Accept copy jobs with single 'sourceTable' config. #2884

merged 2 commits into from
Dec 28, 2016

Conversation

tseaver
Copy link
Contributor

@tseaver tseaver commented Dec 19, 2016

Such jobs would be created via another client: we map that configuration onto a sequence of tables containing only the one item.

Closes: #2882.

Such jobs would be created via another client:  we map that configuration
onto a sequence of tables containing only the one item.

Closes: #2882.
@tseaver tseaver added api: bigquery Issues related to the BigQuery API. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Dec 19, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 19, 2016
for source_config in config['sourceTables']:
source_configs = config.get('sourceTables')
if source_configs is None:
source_configs = [config['sourceTable']]

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@dhermes
Copy link
Contributor

dhermes commented Dec 28, 2016

LGTM

@tseaver tseaver merged commit d158cc7 into googleapis:master Dec 28, 2016
@tseaver tseaver deleted the 2882-bigquery-copyjob-w-single-source-table branch December 28, 2016 22:19
richkadel pushed a commit to richkadel/google-cloud-python that referenced this pull request May 6, 2017
richkadel pushed a commit to richkadel/google-cloud-python that referenced this pull request May 6, 2017
…-w-single-source-table

Accept copy jobs with single 'sourceTable' config.
plamut pushed a commit to googleapis/python-bigquery that referenced this pull request Feb 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the BigQuery API. cla: yes This human has signed the Contributor License Agreement. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants