Skip to content

Commit 290cd98

Browse files
authored
fix: Remove BigQuery Job URL and replace with the current job state (#382)
1 parent 731d9cf commit 290cd98

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

advanced/bigquery.gs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,8 @@ function loadCsv() {
136136
}
137137
};
138138
try {
139-
BigQuery.Jobs.insert(job, projectId, data);
140-
console.log('Load job started. Check on the status of it here: ' +
141-
'https://bigquery.cloud.google.com/jobs/%s', projectId);
139+
const jobResult = BigQuery.Jobs.insert(job, projectId, data);
140+
console.log(`Load job started. Status: ${jobResult.status.state}`);
142141
} catch (err) {
143142
console.log('unable to insert job');
144143
}

0 commit comments

Comments
 (0)