spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Q <>
Subject Create multiple rows from elements in array on a single row
Date Mon, 08 Jun 2015 17:57:47 GMT
I have a rdd with the following structure:
row1: key: Seq[a, b]; value: value 1
row2: key: seq[a, c, f]; value: value 2

Is there an efficient way to "de-flat" the rows into?
row1: key: a; value: value1
row2: key: a; value: value2
row3: key: b; value: value1
row4: key: c; value: value2
row5: key: f; value: value2

Many thanks.


View raw message