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 properties for new job statistics by tseaver · Pull Request #3721 · googleapis/google-cloud-python

Conversation

@tseaver

@tseaver tseaver commented Aug 2, 2017

Copy link
Copy Markdown
Contributor

Closes #3706.

Note for reviewers: commit-by-commit might be an easier path.

Sorry, something went wrong.

Uh oh!

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

All reactions
tseaver added 14 commits August 2, 2017 17:30
@tseaver
Add 'QueryJob.query_plan' property.
a3dcf11
@tseaver
Add 'QueryJob.total_bytes_processed' property.
691f221
@tseaver
Add 'QueryJob.total_bytes_billed' property.
913db1c
@tseaver
Add 'QueryJob.billing_tier' property.
9e88976
@tseaver
Add 'QueryJob.cache_hit' property.
53ed914
@tseaver
Add 'Client._clone' helper.
941ad92
Eases construction of a client with a new project, but the same
credentials / http implementation.
@tseaver
Add 'QueryJob.referenced_tables' property.
1e34f2d
@tseaver
Add 'QueryJob.num_dml_affected_rows' property.
3042da1
@tseaver
Add 'QueryJob.schema' property.
da1112a
@tseaver
Add 'QueryJob.undeclared_schema_parameters' property.
6009e30
@tseaver
Add 'QueryJob.statement_type' property.
419c8b6
@tseaver
Add 'ExtractTableToStorageJob.destination_uri_file_counts' property.
0f443ea
@tseaver
Factor out job-specific stats helper.
ed3aacc
@tseaver
Coverage.
6380fb9
@tseaver tseaver added api: bigquery Issues related to the BigQuery API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. labels Aug 2, 2017
@tseaver
tseaver requested review from dhermes and theacodes August 2, 2017 23:27
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Aug 2, 2017
@theacodes

theacodes commented Aug 2, 2017

Copy link
Copy Markdown
Contributor

I'm going to defer to @tswast for this.

All reactions

Sorry, something went wrong.

Uh oh!

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

@tseaver
Fix docs build.
0cd8fa5
tswast
tswast requested changes Aug 3, 2017
View reviewed changes

@tswast tswast left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! A couple suggestions.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread bigquery/google/cloud/bigquery/job.py
See:
https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs#statistics.query.queryPlan

:rtype: list of dict

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
return job

@property
def query_plan(self):

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/client.py
project=project, credentials=credentials, _http=_http)
self._connection = Connection(self)

def _clone(self, project):

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
t_project = table['projectId']
t_client = clients_by_project.get(t_project)
if t_client is None:
t_client = client._clone(t_project)

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.

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
return tables

@property
def num_dml_affected_rows(self):

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

See:
https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs#statistics.query.schema

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
See:
https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs#statistics.query.undeclaredQueryParamters

:rtype: list of dict

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.

dhermes
dhermes reviewed Aug 10, 2017
View reviewed changes
Comment thread bigquery/google/cloud/bigquery/client.py
:returns: a new instance, bound to the supplied project, using
the same credentials / http object as this instance.
"""
return self.__class__(project, self._credentials, self._http)

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 tseaver mentioned this pull request Aug 12, 2017
Bigquery Beta 2 Tracking #3746
Closed
3 of 18 tasks
@tseaver

tseaver commented Aug 12, 2017

Copy link
Copy Markdown
Contributor Author

@tswast I'm going to break this up into separate PRs, targeting the bigquery-b2 branch.

All reactions

Sorry, something went wrong.

Uh oh!

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

@tseaver tseaver closed this Aug 12, 2017
This was referenced Aug 12, 2017
Add 'QueryJob.query_plan' property. #3799
Merged
Add new scalar statistics properties to 'QueryJob' #3800
Merged
Add 'QueryJob.referenced_tables' property. #3801
Merged
Add 'QueryJob.undeclared_query_parameters' property. #3802
Merged
@tseaver tseaver mentioned this pull request Aug 12, 2017
Add 'ExtractTableStorageJob.destination_uri_file_counts' property. #3803
Merged
@tseaver
tseaver deleted the 3706-bigquery-new-job-statistics branch September 8, 2017 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@tswast tswast tswast requested changes
@theacodes theacodes Awaiting requested review from theacodes
+1 more reviewer
@dhermes dhermes dhermes left review comments
Reviewers whose approvals may not affect merge requirements

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. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

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.

5 participants

@tseaver @theacodes @tswast @dhermes @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.