Is it possible to select the record with highest version of each group and store it as a materialised view in bigquery?
Source table
version name value
1 a 100
1 b 200
1 c 300
2 c 400
I only want to get the last record of each group (group by version), so the output should be like this:
version name value
1 a 100
1 b 200
2 c 400
Tried with answer from: https://stackoverflow.com/a/1313293/5839247, got an error:
Materialized views do not support analytic functions or WITH OFFSET.
Tried with the method from this answer: https://stackoverflow.com/a/7745635/5839247, got Unsupported operator in materialized view: Join.
Documentation: https://cloud.google.com/bigquery/docs/materialized-views#supported_mvs