GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add new scalar statistics properties to 'QueryJob' by tseaver · Pull Request #3800 · googleapis/google-cloud-python

Conversation

@tseaver

@tseaver tseaver commented Aug 12, 2017 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor
  • total_bytes_processed
  • total_bytes_billed
  • billing_tier
  • cache_hit
  • num_dml_affected_rows
  • statement_type

Uses #3799 as a base.

Cherry-picked / fixed up from PR #3721.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@tseaver tseaver added the api: bigquery Issues related to the BigQuery API. label Aug 12, 2017
@tseaver
tseaver requested review from dhermes and tswast August 12, 2017 20:10
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Aug 12, 2017
@tseaver
tseaver changed the base branch from master to bigquery-b2 August 12, 2017 20:42
This was referenced Aug 12, 2017
Add 'QueryJob.referenced_tables' property. #3801
Merged
Bigquery Beta 2 Tracking #3746
Closed
tswast
tswast requested changes Aug 14, 2017
View reviewed changes
Comment thread bigquery/google/cloud/bigquery/job.py Outdated
:returns: total bytes processed by the job, or None if job is not
yet complete.
"""
return self._job_statistics().get('totalBytesProcessed')

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread bigquery/google/cloud/bigquery/job.py Outdated
:returns: total bytes processed by the job, or None if job is not
yet complete.
"""
return self._job_statistics().get('totalBytesBilled')

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread bigquery/google/cloud/bigquery/job.py Outdated
:returns: number of DML rows affectd by the job, or None if job is not
yet complete.
"""
return self._job_statistics().get('numDmlAffectedRows')

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

tseaver added 7 commits September 7, 2017 15:36
@tseaver
Add 'QueryJob.total_bytes_processed' property.
d76f10e
@tseaver
Add 'QueryJob.total_bytes_billed' property.
f5c86ed
@tseaver
Add 'QueryJob.billing_tier' property.
36f0250
@tseaver
Add 'QueryJob.cache_hit' property.
2ae037d
@tseaver
Add 'QueryJob.num_dml_affected_rows' property.
085f62b
@tseaver
Add 'QueryJob.statement_type' property.
17fae7f
@tseaver
Ensure int values are converted from JSON string representations.
25e5a72
@tseaver

tseaver commented Sep 7, 2017

Copy link
Copy Markdown
Contributor Author

@tswast I have rebased this after merging #3799 to the bigquery-b2 branch, and added the requested integer conversions. PTAL

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tseaver

tseaver commented Sep 7, 2017

Copy link
Copy Markdown
Contributor Author

BQ tests all pass: the failure is in the docs build (now fixed on master, but not the bigquery-b2 branch).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

tswast
tswast approved these changes Sep 7, 2017
View reviewed changes
@tseaver
tseaver merged commit 06ac65e into googleapis:bigquery-b2 Sep 7, 2017
@tseaver
tseaver deleted the bigquery-b2-queryjob-scalar_stats_properties branch September 7, 2017 21:46
tseaver added a commit that referenced this pull request Sep 11, 2017
@tseaver
Add new scalar statistics properties to 'QueryJob' (#3800)
067cacd
* Add 'QueryJob.total_bytes_processed' property.
* Add 'QueryJob.total_bytes_billed' property.
* Add 'QueryJob.billing_tier' property.
* Add 'QueryJob.cache_hit' property.
* Add 'QueryJob.num_dml_affected_rows' property.
* Add 'QueryJob.statement_type' property.
tswast pushed a commit that referenced this pull request Sep 25, 2017
@tseaver @tswast
Add new scalar statistics properties to 'QueryJob' (#3800)
bae2bcb
* Add 'QueryJob.total_bytes_processed' property.
* Add 'QueryJob.total_bytes_billed' property.
* Add 'QueryJob.billing_tier' property.
* Add 'QueryJob.cache_hit' property.
* Add 'QueryJob.num_dml_affected_rows' property.
* Add 'QueryJob.statement_type' property.
@sschatts

sschatts commented Oct 10, 2017

Copy link
Copy Markdown

@tseaver Do you have a planned date this will be released?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tseaver

tseaver commented Oct 10, 2017

Copy link
Copy Markdown
Contributor Author

@sschatts There is a fairly intrusive bigquery API refactoring going on at the moment: I believe we are hoping to get a "beta 2" release cut within the next couple of weeks.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sschatts

sschatts commented Oct 10, 2017

Copy link
Copy Markdown

@tseaver Thank you for the update.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

tswast pushed a commit that referenced this pull request Oct 12, 2017
@tseaver @tswast
Add new scalar statistics properties to 'QueryJob' (#3800)
2583611
* Add 'QueryJob.total_bytes_processed' property.
* Add 'QueryJob.total_bytes_billed' property.
* Add 'QueryJob.billing_tier' property.
* Add 'QueryJob.cache_hit' property.
* Add 'QueryJob.num_dml_affected_rows' property.
* Add 'QueryJob.statement_type' property.
tswast pushed a commit that referenced this pull request Oct 16, 2017
@tseaver @tswast
Add new scalar statistics properties to 'QueryJob' (#3800)
9103ba0
* Add 'QueryJob.total_bytes_processed' property.
* Add 'QueryJob.total_bytes_billed' property.
* Add 'QueryJob.billing_tier' property.
* Add 'QueryJob.cache_hit' property.
* Add 'QueryJob.num_dml_affected_rows' property.
* Add 'QueryJob.statement_type' property.
@tseaver tseaver mentioned this pull request Oct 18, 2017
How to retrieve 'totalBytesBilled' #3706
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@tswast tswast tswast approved these changes
@dhermes dhermes Awaiting requested review from dhermes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

api: bigquery Issues related to the BigQuery API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@tseaver @sschatts @tswast @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.