Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: addreload argument to*Job.done() functions#341

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@tswast
Copy link
Contributor

This enables checking the job status without making an API call.

It also fixes an inconsistency inQueryJob, where a job can be
reported as "done" without having the results of agetQueryResults API
call.

Follow-up to#340

This enables checking the job status without making an API call.It also fixes an inconsistency in `QueryJob`, where a job can bereported as "done" without having the results of a `getQueryResults` APIcall.
@tswasttswast requested a review froma teamOctober 23, 2020 20:04
@google-clagoogle-clabot added the cla: yesThis human has signed the Contributor License Agreement. labelOct 23, 2020
Copy link
Contributor

@shollymanshollyman left a comment

Choose a reason for hiding this comment

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

Do the changes here indicate there's further changes for registering the done callback? My mental model has them independent, but I wanted to make sure.

is_done= (
# Only consider a QueryJob complete when we know we have the final
# query results available.
self._query_resultsisnotNone
Copy link
Contributor

Choose a reason for hiding this comment

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

checking: What about DDL statements, where we have no results? Or would this already retain the empty row iterator?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

DDL statements don't 404 forjobs.getQueryResults, do they? This is the full response object ofjobs.getQueryResults, not just the rows.

@tswast
Copy link
ContributorAuthor

Do the changes here indicate there's further changes for registering the done callback?

No callbacks here. Maybe when we implement the async client#18

done does get called byresult viaPollingFuture._blocking_poll, which is why I can now remove the extra call to_get_query_results fromQueryJob.result().

@tswast
Copy link
ContributorAuthor

Do the changes here indicate there's further changes for registering the done callback?

Maybe you meant -- How do we get the needed arguments toget_query_results fromresult? I'm planning to do something a little bit hacky inhttps://github.com/googleapis/python-bigquery/pull/347/files -- which maybe is a bad idea, as it means you can't callresult from two threads simultaneously. Hmmm...

@tswasttswast added the automergeMerge the pull request once unit tests and other checks pass. labelOct 28, 2020
@gcf-merge-on-greengcf-merge-on-greenbot merged commite51fd45 intogoogleapis:masterOct 28, 2020
@gcf-merge-on-greengcf-merge-on-greenbot removed the automergeMerge the pull request once unit tests and other checks pass. labelOct 28, 2020
@tswasttswast deleted the issue339-queryjob branchNovember 3, 2020 20:37
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@shollymanshollymanshollyman approved these changes

Assignees

No one assigned

Labels

cla: yesThis human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@tswast@shollyman

[8]ページ先頭

©2009-2025 Movatter.jp