pyspark.sql.table_arg.TableArg#

class pyspark.sql.table_arg.TableArg[source]#

Represents a table argument in PySpark.

This class provides methods to specify partitioning, ordering, and single-partition constraints when passing a DataFrame as a table argument to TVF(Table-Valued Function)s including UDTF(User-Defined Table Function)s.

Methods

orderBy(*cols)

Orders the data within each partition by the specified columns.

partitionBy(*cols)

Partitions the data based on the specified columns.

withSinglePartition()

Forces the data to be processed in a single partition.