17.10 - Example: Function Mapping Definition with IN TABLE Clause Substitution - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1144-171K
Language
English (United States)

The function mapping definition for user_attribution includes an IN TABLE clause that substitutes ConversionEvents for conversion.

If the correlation variable conversion is specified during function processing, ConversionEvents is substituted.

CREATE FUNCTION MAPPING user_attribution
FOR Attribution SERVER coprocessor
USING
inputtable IN TABLE,
ANY IN TABLE,
ConversionEvents(conversion) 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);