Github user felixcheung commented on the issue:
https://github.com/apache/spark/pull/16739
hmm, not as far as I can see:
```
> df2 <- repartition(df1, 10)
> getNumPartitions(df2) # right after repartition the number of partition
is greater than the original numSlices
[1] 10
> foo <- coalesce(df2, 13)
> explain(foo, extended = T)
== Parsed Logical Plan ==
Repartition 13, false
+- Repartition 10, true
+- Repartition 3, false
+- LogicalRDD [speed#2, dist#3]
== Analyzed Logical Plan ==
speed: double, dist: double
Repartition 13, false
+- Repartition 10, true
+- Repartition 3, false
+- LogicalRDD [speed#2, dist#3]
== Optimized Logical Plan ==
Repartition 13, false
+- LogicalRDD [speed#2, dist#3]
== Physical Plan ==
Coalesce 13
+- Scan ExistingRDD[speed#2,dist#3]
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]