hadoop - Hive Query to group by id -


i have table in hive

id|name

1 "a"

2 "b"

1 "c"

i want output of query

1 "a,b"

2 "c"

according id must group name how can achieve above in hive?,is there built-in function in hive this? pointers of great help

regards,

as far understood looking kind of group_concat(sql function) in hive ...

you can achieve same functionality select id , collect_set(name) tblname group id.


Comments

Popular posts from this blog

html - jquery - p element wont show after I hid it -

python - BeautifulSoup: How to get the nearest tag -

php - Return Last Insert ID with PDO -