Skip to content

Conversation

@dwsupplee
Copy link
Contributor

Introduced by this PR:

  • It's no longer necessary to manually poll jobs for completion. Google\Cloud\BigQuery\Job::waitUntilComplete() has been added to help simplify the process. Closes Make an ExponentialBackoff for Jobs #89.
  • Google\Cloud\BigQuery\QueryResults no longer inherits reload options.
  • Google\Cloud\BigQuery\Job::queryResults() now blocks until the query is complete.
  • Google\Cloud\BigQuery\QueryResults::isComplete() has been marked internal, as by the time
    QueryResults are passed back to the user rows are now guaranteed to be loaded.
  • Google\Cloud\BigQuery\QueryResults now implements IteratorAggregate, allowing users to iterate directly over the QueryResults.
  • Google\Cloud\BigQuery\BigQueryClient::runQuery() now implements jobs.insert instead of jobs.query and calls Google\Cloud\BigQuery\Job::queryResults() under the hood.

@dwsupplee dwsupplee added the api: bigquery Issues related to the BigQuery API. label Aug 21, 2017
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Aug 21, 2017
* query has completed. **Defaults to** `100`.
* @type bool $useQueryCache Whether to look for the result in the query
* cache.
* @type bool $useLegacySql If set to true the query will use

This comment was marked as spam.

This comment was marked as spam.

@dwsupplee dwsupplee merged commit a105bfa into googleapis:bigquery Aug 21, 2017
dwsupplee added a commit to dwsupplee/gcloud-php that referenced this pull request Oct 16, 2017
…ery results (googleapis#642)

* implement waitUntilComplete on job and block waiting for queryResults

* fix getIterator docblock
dwsupplee added a commit that referenced this pull request Oct 16, 2017
* Run query and wait for it to complete (#604)

* Run query and wait for it to complete

* Document exception on BigQueryClient::runQuery()

* Update snippet test

* Add support for etags on bigquery tables and datasets (#634)

* [BC Break] Switch to standard SQL by default (#640)

* Switch to standard SQL by default

* Fix setting of useLegacySql option

* Fix job config logic

* Address code review

* [BC Break] Implement waitUntilComplete and block while waiting for query results (#642)

* implement waitUntilComplete on job and block waiting for queryResults

* fix getIterator docblock

* Generate BigQuery Job ID on client side with optional prefix (#643)

* address code review

* Introduce remaining BigQuery to GA items (#686)

* introduce job configuration classes

* update tests/docs and add copy/load

* modify retry logic

* add create on insert logic
@jdpedrie jdpedrie mentioned this pull request Oct 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigquery Issues related to the BigQuery API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants