You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Ivan Gozali (JIRA)" <ji...@apache.org> on 2016/11/03 19:36:58 UTC

[jira] [Commented] (SPARK-11914) [SQL] Support coalesce and repartition in Dataset APIs

    [ https://issues.apache.org/jira/browse/SPARK-11914?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15633984#comment-15633984 ] 

Ivan Gozali commented on SPARK-11914:
-------------------------------------

Hi, apologies for bringing this up in an old issue. I was wondering if there's any particular reason the {{shuffle}} argument that's present in [JavaRDD.coalesce()|https://spark.apache.org/docs/latest/api/java/org/apache/spark/api/java/JavaRDD.html#coalesce(int,%20boolean)] is not present in the Dataset API? Also are there plans of bringing it into the Dataset API?

Thank you!

> [SQL] Support coalesce and repartition in Dataset APIs
> ------------------------------------------------------
>
>                 Key: SPARK-11914
>                 URL: https://issues.apache.org/jira/browse/SPARK-11914
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 1.6.0
>            Reporter: Xiao Li
>            Assignee: Xiao Li
>             Fix For: 1.6.0
>
>
> repartition: Returns a new [[Dataset]] that has exactly `numPartitions` partitions.
> coalesce: Returns a new [[Dataset]] that has exactly `numPartitions` partitions. Similar to coalesce defined on an [[RDD]], this operation results in a narrow dependency, e.g. if you go from 1000 partitions to 100 partitions, there will not be a shuffle, instead each of the 100 new partitions will claim 10 of the current partitions.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org