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

Allow for 'sourceUris' to be missing in load job config. #1312

Merged
merged 2 commits into from
Dec 21, 2015
Merged

Allow for 'sourceUris' to be missing in load job config. #1312

merged 2 commits into from
Dec 21, 2015

Conversation

tseaver
Copy link
Contributor

@tseaver tseaver commented Dec 21, 2015

Uses #1311 as a base.

E.g., the jobs created via 'Table.upload_from_file' do not have source URIs.

We can't parse/create job instances w/o full configuration.
@tseaver tseaver added type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. api: bigquery Issues related to the BigQuery API. labels Dec 21, 2015
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 21, 2015
@@ -615,7 +615,7 @@ def from_api_repr(cls, resource, client):
dest_config = config['destinationTable']
dataset = Dataset(dest_config['datasetId'], client)
destination = Table(dest_config['tableId'], dataset)
source_urls = config['sourceUris']
source_urls = config.get('sourceUris', ())

This comment was marked as spam.

This comment was marked as spam.

@dhermes
Copy link
Contributor

dhermes commented Dec 21, 2015

LGTM, seems pretty straightforward?

E.g., the jobs created via 'Table.upload_from_file' do not have source URIs.
tseaver added a commit that referenced this pull request Dec 21, 2015
…sourceUris

Allow for 'sourceUris' to be missing in load job config.
@tseaver tseaver merged commit 7a994b0 into googleapis:master Dec 21, 2015
@tseaver tseaver deleted the bigquery-fix_list_jobs_missing_sourceUris branch December 21, 2015 20:46
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.

3 participants