I want to aggregate two array rows. For example, in the table below, colour column already shows the values in array format.
| id | colour |
|---|---|
| 1 | [[Red,Blue,Yellow]] |
| 2 | [[Green]] |
| 1 | [[White,Blue]] |
| 2 | [[Green,Black]] |
By aggregating on id and distinct-selecting the colour column, I want to create a result like below.
| id | colour |
|---|---|
| 1 | [[Red,Blue,Yellow,White]] |
| 2 | [[Green,Black]] |
How do I achieve this?