FNC_GetPhase Function | C Library Functions | Teradata Vantage - FNC_GetPhase - Analytics Database - Teradata Vantage

SQL External Routine Programming

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2023-07-11
dita:mapPath
iiv1628111441820.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
B035-1147
lifecycle
latest
Product Category
Teradata Vantage™

Returns information that a table function uses to determine how it was called in the FROM TABLE clause of the SELECT statement and what action to perform.

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
{
   TBL_MODE_VARY = 1,
   TBL_MODE_CONST = 2
} 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.