I need to merge arrays in a GROUP BY in HiveSQL. The table schema is something like this:
key int,
value ARRAY<int>
Now here is the SQL I would like to run:
SELECT key, array_merge(value)
FROM table_above
GROUP BY key
If this array_merge function only keeps unique values, that will be even better but not must.
Cheers, K