bigquery: make query() return iterator#2685
Conversation
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.
|
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.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
|
||
| abstract long getTotalRows(); | ||
|
|
||
| abstract ImmutableList<BigQueryError> getErrors(); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
@tswast PTAL |
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.