Skip to content

Commit

Permalink
fix: Remove BigQuery Job URL and replace with the current job state (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
vinay-google authored Feb 1, 2023
1 parent 731d9cf commit 290cd98
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions advanced/bigquery.gs
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,8 @@ function loadCsv() {
}
};
try {
BigQuery.Jobs.insert(job, projectId, data);
console.log('Load job started. Check on the status of it here: ' +
'https://bigquery.cloud.google.com/jobs/%s', projectId);
const jobResult = BigQuery.Jobs.insert(job, projectId, data);
console.log(`Load job started. Status: ${jobResult.status.state}`);
} catch (err) {
console.log('unable to insert job');
}
Expand Down

0 comments on commit 290cd98

Please sign in to comment.