Build array based on add and remove event rows in BigQuery
问题 I have a table in BigQuery with the following structure: datetime | event | value ========================== 1 | add | 1 ---------+--------+------- 2 | remove | 1 ---------+--------+------- 6 | add | 2 ---------+--------+------- 8 | add | 3 ---------+--------+------- 11 | add | 4 ---------+--------+------- 23 | remove | 3 ---------+--------+------- I'm trying to build a view which adds a list column to each row containing the current state of the array. The array will never contain duplicate