16.20 - Example: Function Mapping with (ANY) IN TABLE Clause Substitution - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ SQL Data Definition Language Syntax and Examples

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Published
March 2019
Content Type
Programming Reference
Publication ID
B035-1144-162K
Language
English (United States)
Last Update
2019-05-24

The function mapping definition for user_attribution specifies an (ANY) IN TABLE clause substitution.

If a single table name is specified without a correlation during function processing, ConversionEvents is used.

CREATE FUNCTION MAPPING user_attribution
FOR Attribution SERVER coprocessor
USING
inputtable IN TABLE,
inputtable1 IN TABLE,
ConversionEvents(ANY) IN TABLE,
excluding IN TABLE,
optional IN TABLE,
model1   IN TABLE,
model2   IN TABLE,
EVENT_COLUMN_NAME ('event'),
TIMESTAMP_COLUMN_NAME ('time_stamp' ),
WINDOW(WindowSize);