What is the best way to persist a value in BigQuery? For example, if the value in the cell is (none) then it should get the last known value that is not (none) but if the value then changes, begin persisting that value. See below for an example of what I'd like. I tried using the LAG function but it only works for one row.
Row Value Persisted
1 Apple Apple
2 (none) Apple
3 (none) Apple
4 (none) Apple
5 Orange Orange
6 (none) Orange