I would like to query BigQuery where two columns are returned, a distinct object ID column, and a distinct combination of array values based on values of the arrays where the object IDs were the same.
For example, say I have this table in BigQuery:
+-----------+-----------+
| object_id | array |
+-----------+-----------+
| a | 1,2,3,4,5 |
| a | 2,3,4,5,6 |
| b | 9,8,7,6 |
+-----------+-----------+
I would like to run a query that returns the following data:
+-----------+-------------+
| object_id | array |
+-----------+-------------+
| a | 1,2,3,4,5,6 |
| b | 9,8,7,6 |
+-----------+-------------+
I think the query should be something similar to this but am a little unclear on how to get the distinct object ID with the distinct combination of array elements.