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

Bigquery: add table schemas #1022

Merged
merged 3 commits into from
Aug 4, 2015
Merged

Bigquery: add table schemas #1022

merged 3 commits into from
Aug 4, 2015

Conversation

tseaver
Copy link
Contributor

@tseaver tseaver commented Jul 29, 2015

Based on #1021

@tseaver tseaver added the api: bigquery Issues related to the BigQuery API. label Jul 29, 2015
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jul 29, 2015
@dhermes
Copy link
Contributor

dhermes commented Jul 29, 2015

Ping me when #1021 is in. We are pretty close to having that one in AFAICT.

@tseaver
Copy link
Contributor Author

tseaver commented Jul 30, 2015

@dhermes rebased after merging #1021.


:type field_type: string
:param field_type: the type of the field (one of 'STRING', 'INTEGER',
'FLOAT', 'BOOLEAN', 'TIMESTAMP' or 'RECORD')

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

"""
if not all(isinstance(field, SchemaField) for field in value):
raise ValueError('Schema items must be fields')
self._schema = tuple(value)

This comment was marked as spam.

This comment was marked as spam.

@dhermes
Copy link
Contributor

dhermes commented Aug 4, 2015

LGTM.

I don't want the schema.setter to be a blocker, but do want to understand it.

tseaver added a commit that referenced this pull request Aug 4, 2015
@tseaver tseaver merged commit ecf0004 into googleapis:master Aug 4, 2015
@tseaver tseaver deleted the bigquery-table_schema branch August 4, 2015 17:43
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants