spark-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bryan Cutler <>
Subject Re: Why is there no flatten method on RDD?
Date Wed, 14 Dec 2016 17:46:26 GMT
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

On Mon, Dec 5, 2016 at 2:55 PM, Tarun Kumar <> 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

View raw message