getContractPhase - 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
ft:locale
en-US
ft:lastEdition
2023-07-11
dita:mapPath
iiv1628111441820.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
B035-1147
lifecycle
latest
Product Category
Teradata Vantageā„¢
Indicates the phase in the parser from which the contract function is being called. The parser phases are as follows:
Parser Phase Meaning
FNC_CTRCT_GET_ALLCOLS_PHASE = 0 Function returns all remote table columns.
FNC_CTRCT_VALIDATE_PHASE = 1 Validates that inputs are correct. Contract function can be called multiple times from this phase.
This phase is currently not used.
FNC_CTRCT_COMPLETE_PHASE = 2 Last call of contract function. Necessary foreign server actions must be completed.
FNC_CTRCT_DDL_PHASE = 3 CREATE SERVER statement execution is being completed and connectivity must be verified.
FNC_CTRCT_DEFINE_SERVER_PHASE = 4 CREATE VIEW or CREATE MACRO statement is being executed. Custom clause data may be invalid.

This routine is callable on a PE vproc only by a table operator.

Syntax

public ContractPhase  getContractPhase();