Skip to content

Commit f7065fd

Browse files
author
Ace Nassri
committed
Change comments
1 parent 4001e27 commit f7065fd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bigquery/query.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ var bigquery = gcloud.bigquery();
3535

3636
// [START sync_query]
3737
/**
38-
* Run an example synchronous query.
38+
* Run a synchronous query.
3939
* @param {object} queryObj The BigQuery query to run, plus any additional options
4040
* listed at https://cloud.google.com/bigquery/docs/reference/v2/jobs/query
4141
* @param {function} callback Callback function to receive query results.
@@ -58,7 +58,7 @@ function syncQuery (queryObj, callback) {
5858

5959
// [START async_query]
6060
/**
61-
* Run an example asynchronous query.
61+
* Run an asynchronous query.
6262
* @param {object} queryObj The BigQuery query to run, plus any additional options
6363
* listed at https://cloud.google.com/bigquery/docs/reference/v2/jobs/query
6464
* @param {function} callback Callback function to receive job data.
@@ -81,7 +81,7 @@ function asyncQuery (queryObj, callback) {
8181
/**
8282
* Poll an asynchronous query job for results.
8383
* @param {object} jobId The ID of the BigQuery job to poll.
84-
* @param {function} callback Callback function to receive job data.
84+
* @param {function} callback Callback function to receive query results.
8585
*/
8686
function asyncPoll (jobId, callback) {
8787
if (!jobId) {
@@ -96,7 +96,7 @@ function asyncPoll (jobId, callback) {
9696
}
9797
console.log('Job status: %s', metadata.status.state);
9898

99-
// If job is done, get query results
99+
// If job is done, get query results; if not, return an error.
100100
if (metadata.status.state === 'DONE') {
101101
job.getQueryResults(function (err, rows) {
102102
if (err) {

0 commit comments

Comments
 (0)