transform

The transform method applies a function to all constituents of a partitioned table.

Syntax

Parameters

ParameterTypeDescription
funcCallable[[Table], Table]

A function that takes a table as input and returns a table. The table operations applied within the function must be done from within an execution context. The function must also be stateless, safe for concurrent use, and able to return a valid result for an empty input table.

dependencies optionalOptional[Sequence[Union[Table, PartitionedTable]]]

Additional dependencies that must be satisfied before applying func to added or modified constituents during update processing. If func uses any other refreshing table or refreshing partitioned table, include it in this argument. The default is None.

Returns

A PartitionedTable.

Examples

This first example applies a transformation to add a new column to each constituent of a partitioned table.

This second example applies aggregations to each constituent of a partitioned table via transform.