id col1 col2 ... coln
---------------------
foo barA barB ...
foo barD barX
boo barA barC
foo barC barC
I'd like to combine this into 'collapsed' rows which look like this:
foo barA;barD;barC barB;barX;barC
boo barD barC
At the moment the source document is a hive 'table', [which is essentially the same as a flat text file I suppose] - and I am wondering what is the most efficient way to accomplish this?
EDIT: related earlier question (for SQL, alas not hive) Combine multiple rows into one space separated string