Share via


DataFrameWriter.PartitionBy(String[]) Method

Definition

Partitions the output by the given columns on the file system. If specified, the output is laid out on the file system similar to Hive's partitioning scheme.

public Microsoft.Spark.Sql.DataFrameWriter PartitionBy (params string[] colNames);
member this.PartitionBy : string[] -> Microsoft.Spark.Sql.DataFrameWriter
Public Function PartitionBy (ParamArray colNames As String()) As DataFrameWriter

Parameters

colNames
String[]

Column names to partition by

Returns

This DataFrameWriter object

Applies to