Skip to content
Advertisement

Is there a wait method for Google BigQuery SQL

I’m scheduling a query to run every day that picks up data from a table that get’s written to Google BigQuery automatically. Usually the table is there, but I’d like to be sure before I execute the query depending on this table.

I’m looking into other ways as well, but the simplest way seems to be to use just SQL and integrate the checking and retrying into the scheduled query. I’m able to check if the table exists and retry if it doesn’t. I can’t seem to find a way to not do this immediately and have the query wait for 30 minutes before the next retry. Is there something available, possibly similar to ‘WAITFOR’ that will achieve this?

Current SQL;

Advertisement

Answer

I hope you found ways to get the time delay added. I too recently came across such a situation and this is how I handled it –

Thanks, Anusha

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement