TransformFunctionPhase

class vertica_sdk.TransformFunctionPhase

Interface to provide compile-time information for a single phase of a multi-phase user-defined transform function.

classmethod createTransformFunction(cls, server_interface)

Create and return an instance of the associated vertica_sdk.TransformFunction class for execution of this phase.

Parameters for this function can be read from the server_interface argument (a vertica_sdk.ServerInterface object).

getReturnType

Report, via the vertica_sdk.SizedColumnTypes argument return_types, the concrete return types of this UDX.

Returns None.

isPrepass

Returns the prepass status of this phase

setPrepass

Indicates that this phase is a pre-pass and runs on local data (i.e., runs before any data movement)

Note: Only the first phase of a multi-phase transform function can be marked as prepass. When it is not marked as prepass and the OVER clause contains no PARTITION BY, the input data is moved to initiator before running the first phase.