schedule a daily load data in bigquery

676 views
Skip to first unread message

Y...@globalindustrial.com

unread,
Aug 20, 2018, 3:18:01 PM8/20/18
to Google Cloud Developers
Hi,
I found a solution to load the data in a bigquery table daily:
However, I can't reproduce the result.
when I run the transfer job, the query does run, but there's no table created for the query.
Could anyone advise if the method is still working, because I can't find the bigquery.createQueryJob in the cloud documentation.
If the method is not working, is there any other method I can use to schedule the daily load from a query?
Thanks,
Kara

Katayoon (Cloud Platform Support)

unread,
Aug 21, 2018, 7:24:04 PM8/21/18
to Google Cloud Developers

Hi,


Here you can find the documentation for createQueryJob. It is noted that “no results are immediately returned. Instead, your callback will be executed with a Job object that you must ping for the results.”


Y...@globalindustrial.com

unread,
Aug 22, 2018, 3:46:45 PM8/22/18
to Google Cloud Developers
Hi,
Thank you so much for the reply.
I created the cloud function. the function should be triggered when I have the file created in the folder call "trigger".
When it trigger, it should run the query and create a table to store the result in bigquery.dataset('email_test').table('test')
However, when I create a the folder, it does trigger the function, but I don't get the table created in bigquery.
Is that because of the "timeout" or is that because the function is not working?
Capture.JPG



Could you please check why? I have the code attached.
Thank you so much,
Kara
cloud function.txt

Katayoon (Cloud Platform Support)

unread,
Aug 23, 2018, 12:48:02 PM8/23/18
to Google Cloud Developers

Hi,


I should note that Issue Tracker is reserved for reporting Google Cloud Platform-end issues and feature requests. For technical questions, I recommend to post your full detailed question to Stack Overflow, using the supported Cloud tags.
Reply all
Reply to author
Forward
0 new messages