Skip to content
Advertisement

Adding missing date rows to a BigQuery Table

I have a table where 1 of the rows is an integer that represents the rows time. Problem is the table isn’t full, there are missing timestamps.

I would like to fill missing values such that every 10 seconds there is a row. I want the rest of the columns to be nuns (later I’ll forward fill these nuns).

10 secs is basically 10,000. If this was python the range would be:

Advertisement

Answer

I ended up using the following query through python API:

Thanks to both answers

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