spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yong Zhang <java8...@hotmail.com>
Subject Re: Need help for RDD/DF transformation.
Date Wed, 29 Mar 2017 12:03:51 GMT
What is the desired result for


RDD/DF 1

1, a
3, c
5, b

RDD/DF 2

[1, 2, 3]
[4, 5]

Yong

________________________________
From: Mungeol Heo <mungeol.heo@gmail.com>
Sent: Wednesday, March 29, 2017 5:37 AM
To: user@spark.apache.org
Subject: Need help for RDD/DF transformation.

Hello,

Suppose, I have two RDD or data frame like addressed below.

RDD/DF 1

1, a
3, a
5, b

RDD/DF 2

[1, 2, 3]
[4, 5]

I need to create a new RDD/DF like below from RDD/DF 1 and 2.

1, a
2, a
3, a
4, b
5, b

Is there an efficient way to do this?
Any help will be great.

Thank you.

---------------------------------------------------------------------
To unsubscribe e-mail: user-unsubscribe@spark.apache.org


Mime
View raw message