Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

BigQuery Row-Level Expiration

Is it possible to set an expiration time on the individual rows of a table in BigQuery?

I don't want the entire table to expire, but I would like to be able to set an expiration date on rows. For example, if the expiration date was 31 days, I would like any row that was inserted more than 31 days ago to be removed from the table.

like image 437
Mark Wunsch Avatar asked Mar 11 '23 14:03

Mark Wunsch


1 Answers

There is no expiration on row level (at least as of now)!
What you can do to accomplish very similar (by result) is to use relatively recently introduced Partitioned Tables
Each partition can have its own expiration - so you can set your table in such a way that all rows belonging to particular day will expire when you need them to

like image 158
Mikhail Berlyant Avatar answered Mar 26 '23 14:03

Mikhail Berlyant