DataFrameWriter.PartitionBy(String[]) 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.
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