Spark Group By Key to (Key,List) Pair

后端 未结 2 360
孤街浪徒
孤街浪徒 2021-02-02 00:14

I am trying to group some data by key where the value would be a list:

Sample data:

A 1
A 2
B 1
B 2

Expected result:

(A         


        
2条回答
提交回复
热议问题