DataFrame.Coalesce(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a new DataFrame
that has exactly numPartitions
partitions, when the
fewer partitions are requested. If a larger number of partitions is requested,
it will stay at the current number of partitions.
public Microsoft.Spark.Sql.DataFrame Coalesce (int numPartitions);
member this.Coalesce : int -> Microsoft.Spark.Sql.DataFrame
Public Function Coalesce (numPartitions As Integer) As DataFrame
Parameters
- numPartitions
- Int32
Number of partitions
Returns
DataFrame object