-
Notifications
You must be signed in to change notification settings - Fork 1
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
refactor(bigquery): update code sample of quey job #104
base: master
Are you sure you want to change the base?
Conversation
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.
Couple nits. Tim can ask to delete excess variables,. So I would got rid of them
bigquery/docs/usage/jobs.rst
Outdated
:start-after: [START bigquery_get_job] | ||
:end-before: [END bigquery_get_job] | ||
|
||
CancelJob |
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.
Looks like whitespace lost in here
bigquery/samples/cancel_job.py
Outdated
""" | ||
location = "us" | ||
job = client.query(sql, location=location) | ||
job_id = job.job_id |
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.
This variable looks excess. It used only once, and it won't be changed within cancel_job()
method
bigquery/samples/get_job.py
Outdated
""" | ||
location = "us" | ||
job = client.query(sql, location=location) | ||
job_id = job.job_id |
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.
Excess as well
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.
Some really minor things but otherwise OK.
bigquery/samples/cancel_job.py
Outdated
""" | ||
location = "us" | ||
job = client.query(sql, location=location) | ||
|
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.
A nit: Even though it's probably copied from the original, I'm not sure if this blank line makes much sense.
bigquery/samples/get_job.py
Outdated
|
||
job = client.get_job(job.job_id, location=location) # Make an API request. | ||
print("Details for job {} running in {}:".format(job.job_id, location)) | ||
|
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.
Same here...
Towards [8989]
List of changes