FNC_GetPhaseEx Function | C Library Functions | Teradata Vantage - 17.10 - FNC_GetPhaseEx - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL External Routine Programming

Advanced SQL Engine
Teradata Database
Release Number
Release Date
July 2021
Content Type
Programming Reference
Publication ID
English (United States)

An extended version of FNC_GetPhase that provides additional options for variable mode table functions.

FNC_GetPhaseEx returns an FNC_Mode value that indicates whether the arguments to the table function are constant or vary.

FNC_Mode is defined as:

typedef enum FNC_Mode
} FNC_Mode;
This value … Means that the table function arguments …
TBL_MODE_CONST are constant.
TBL_MODE_VARY vary and are based on the rows produced by the correlated table specification in the SELECT statement.

The table function might only be called on specific AMP vprocs in this mode.