spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeetendra Gangele <gangele...@gmail.com>
Subject Re: Create multiple rows from elements in array on a single row
Date Mon, 08 Jun 2015 18:00:05 GMT
mapTopair that time you can break the key.

On 8 June 2015 at 23:27, Bill Q <bill.q.hdp@gmail.com> wrote:

> Hi,
> 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.
>
>
> Bill
>

Mime
View raw message