Rows to Columns
Rows to Comma Separated String
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
FROM: +-----+-----+ | uid | tag | +-----+-----+ | 1 | 1 | | 1 | 2 | | 1 | 3 | | 2 | 1 | | 2 | 4 | | 3 | 5 | +-----+-----+ TO: +-----+----------+ | uid | tag_list | +-----+----------+ | 1 | 1,2,3 | | 2 | 1,4 | | 3 | 5 | +-----+----------+ |
MySQL
Use GROUP_CONCAT(). This function also works in Infobright.
Continue reading “MySQL/Hive/Presto/Impala Transposition” »
MySQL/Hive/Presto/Impala Transposition by @sskaje: https://sskaje.me/2014/02/mysql-hive-presto-impala-transposition/
Incoming search terms:
- group concat hive
- hive transpose
- transpose row to column in impala
- presto concat
- hive group concat
- rows to columns impala
- HIVE group_concat
- impala concat
- impala Comma Separated String to Rows
- mysql transposion
- hive transpose columns to rows
- hive transpose column to row
- presto concat_ws
- hadoop impala transpose
- guessd65
- whisperedvcb
- goose2nd
- flykne
- convert row to column in impala
- certain9h5