Skip to content

bigquery: make query() return iterator#2685

Merged
pongad merged 4 commits intogoogleapis:bq-perffrom
pongad:bq-wait
Dec 12, 2017
Merged

bigquery: make query() return iterator#2685
pongad merged 4 commits intogoogleapis:bq-perffrom
pongad:bq-wait

Conversation

@pongad
Copy link
Contributor

@pongad pongad commented Dec 7, 2017

This also makes queries require fewer RPCs if detailed job statuses are
not required.

If a query fails, then query() throws an exception detailing why
it fails and provides the job ID so users can retrieve more details
themselves.

Updates #2591.

This also makes queries require fewer RPCs if detailed job statuses are
not required.

If a query fails, then query() throws an exception detailing why
it fails and provides the job ID so users can retrieve more details
themselves.

Updates #2591.
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 7, 2017
@pongad pongad requested a review from tswast December 7, 2017 09:04
@pongad
Copy link
Contributor Author

pongad commented Dec 7, 2017

I still have to fix the examples. I'll do that in a follow up commit. Putting this for review now to reduce review latency.

public Job query(QueryJobConfiguration configuration, JobOption... options)
throws InterruptedException {
public QueryResult query(QueryJobConfiguration configuration, JobOption... options)
throws InterruptedException, JobException {

This comment was marked as spam.

This comment was marked as spam.


abstract long getTotalRows();

abstract ImmutableList<BigQueryError> getErrors();

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@pongad
Copy link
Contributor Author

pongad commented Dec 11, 2017

@tswast PTAL

@pongad pongad merged commit 0e2e9ed into googleapis:bq-perf Dec 12, 2017
@pongad pongad deleted the bq-wait branch December 12, 2017 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants