FNC_TblOpSetOutputColDef Function | C Library Functions | Teradata Vantage - FNC_TblOpSetOutputColDef - 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ā„¢

Communicates the output columns of an output stream to the parser.

Syntax

void
FNC_TblOpSetOutputColDef(int                    streamno,
                         FNC_TblOpColumnDef_t  *coldefs);

Syntax Elements

streamno
the output stream number.
coldefs
the columns definition.

For details about the FNC_TblOpColumnDef_t structure, see Table Operator Data Structures.

Usage Notes

If no contract function is specified, the parser sets the output columns as indicated by the RETURNS clause.

This function will error in the following cases:
  • If both the contract function and an explicit column definition list are specified.
  • The stream number is invalid.
  • coldefs include invalid data types, invalid character set, or coldef->length is invalid for the number of columns in coldef->num_columns.

Example Using FNC_TblOpSetOutputColDef

See C Table Operator for an example of how to use this function.