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

Return int from 'total_rows'/'total_bytes_processed', if present. #3007

Merged
merged 2 commits into from
Feb 13, 2017
Merged

Return int from 'total_rows'/'total_bytes_processed', if present. #3007

merged 2 commits into from
Feb 13, 2017

Conversation

tseaver
Copy link
Contributor

@tseaver tseaver commented Feb 13, 2017

The first commit adds explicit unit test coverage for the scalar properties of Query (previously covered implicitly via tests of other methods).

The second commit adds the convert-to-int logic, because the back-end is marshalling integers as JSON-be-damned strings.

Closes #3004.

@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 Feb 13, 2017
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 13, 2017
@tseaver tseaver merged commit 5d5c2f7 into googleapis:master Feb 13, 2017
@tseaver
Copy link
Contributor Author

tseaver commented Feb 13, 2017

Crap, that was the wrong PR. Can I get a post-facto review, or should I revert?

query = self._make_one(self.QUERY, client)
self.assertIsNone(query.name)

def test_name_broken_job_reference(self):

This comment was marked as spam.

This comment was marked as spam.

@tseaver tseaver deleted the 3004-bigquery-total_rows_integer branch March 15, 2017 18:59
richkadel pushed a commit to richkadel/google-cloud-python that referenced this pull request May 6, 2017
…ows_integer

 Return int from 'total_rows'/'total_bytes_processed', if present.

Merging without waiting for the speech fix to land.
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