I want to group by column and then select random rows from another column. The Presto exists arbitrary
.
eg. my request:
SELECT a, arbitrary(b)
FROM foo
GROUP BY a
How do I do this in Hive?
Edit:
By "random" I mean "arbitrary". This can only be the first row each time.
source
to share