16.20 - FNC_TblOpGetInnerContract - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL External Routine Programming

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


Gets the contract definition of a nested inner table operator for the outer table operator to use.


FNC_TblOpGetInnerContract(void **innerContract,
                          int   *contractLen)
void **innerContract
IN/OUT parameter

Input argument: Identifies the buffer which will hold the contract definition information.

Return value:
  • The contract definition of the inner table operator.
  • NULL, if the inner contract function does not exist.
int *contractLen
OUT parameter

The length of the contract definition.

Usage Notes

This routine is callable on a PE vproc only by a table operator.
FNC_TblOpGetInnerContract calls FNC_malloc to allocate memory for the buffer specified by *innerContract. Unless the routine returns *innerContract as NULL, you must use FNC_free to free the allocated memory after processing the data.