list[s] is a string. Why doesn’t this work?
I am writing a Spark application and want to combine a set of Key-Value pairs
(K, V1), (K, V2), ..., (K, Vn) into one Key-Multivalue pair
(K, [V1, V2, ..., Vn]). I feel like I should be able to do this using the
reduceByKey function with something of the flavor: