Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jdpedrie
Copy link
Contributor

No description provided.

@jdpedrie jdpedrie added the api: bigquery Issues related to the BigQuery API. label Aug 18, 2017
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Aug 18, 2017
Copy link
Contributor

@dwsupplee dwsupplee left a comment

Choose a reason for hiding this comment

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

It looks like the examples should be updated to use standard SQL, something like this should do the trick:

$queryResults = $bigQuery->runQuery('SELECT commit FROM `bigquery-public-data.github_repos.commits` LIMIT 100');

Otherwise, LGTM! :)

* @type bool $useLegacySql Specifies whether to use BigQuery's legacy
* SQL dialect for this query. **Defaults to** `true`. If set to
* false, the query will use
* SQL dialect for this query. **Defaults to** `false`. Unless set to

This comment was marked as spam.

@jdpedrie
Copy link
Contributor Author

@dwsupplee updated

Copy link
Contributor

@dwsupplee dwsupplee left a comment

Choose a reason for hiding this comment

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

Beautiful!

@jdpedrie jdpedrie merged commit 411f3d2 into googleapis:bigquery Aug 18, 2017
@jdpedrie jdpedrie deleted the bigquery-standard-sql branch August 18, 2017 19:23
dwsupplee pushed a commit to dwsupplee/gcloud-php that referenced this pull request Oct 16, 2017
* Switch to standard SQL by default

* Fix setting of useLegacySql option

* Fix job config logic

* Address code review
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.

3 participants