From 290cd98777c6db0db6efdc76b34ab01f4f36825c Mon Sep 17 00:00:00 2001 From: Vinay Vyas <69166360+vinay-google@users.noreply.github.com> Date: Tue, 31 Jan 2023 17:26:51 -0800 Subject: [PATCH] fix: Remove BigQuery Job URL and replace with the current job state (#382) --- advanced/bigquery.gs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/advanced/bigquery.gs b/advanced/bigquery.gs index d03261393..a4127aa1b 100644 --- a/advanced/bigquery.gs +++ b/advanced/bigquery.gs @@ -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'); }