pyspark.sql.streaming.DataStreamWriter.partitionBy

DataStreamWriter.partitionBy(*cols: str) → pyspark.sql.streaming.readwriter.DataStreamWriter

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.

Parameters
colsstr or list

name of columns

Notes

This API is evolving.