Hi Tarun,

I think there just hasn't been a strong need for it when you can accomplish the same with just rdd.flatMap(identity).  I see a JIRA was just opened for this https://issues.apache.org/jira/browse/SPARK-18855

On Mon, Dec 5, 2016 at 2:55 PM, Tarun Kumar <tarunk1407@gmail.com> wrote:
Hi,

Although a flatMap would yield me the results which I look from map followed by flatten, but just out of curiosity, Why there is no flatten method provided on RDD.

Would it make sense to submit a PR adding flatten on RDD?

Thanks
Tarun