SQL(Convert multiple rows into one with comma as separator)已被提問並回答,所提及的任何方法是否均可在Hive中使用,例如,從這個去:在Hive中以逗號分隔值的列
+------+------+
| Col1 | Col2 |
+------+------+
| a | 1 |
| a | 5 |
| a | 6 |
| b | 2 |
| b | 6 |
+------+------+
這樣:
+------+-------+
| Col1 | Col2 |
+------+-------+
| a | 1,5,6 |
| b | 2,6 |
+------+-------+