17.00 - Example: Replacing a Function Mapping Definition - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.00
Release Date
September 2020
Content Type
Programming Reference
Publication ID
B035-1144-170K
Language
English (United States)

This function mapping definition replaces the function mapping Attribution for the function attribution located on the server coprocessor and sets a default value of 10 for WindowSize:

REPLACE FUNCTION MAPPING appl_view_db.Attribution
   FOR attribution SERVER coprocessor 
   MAP JSON ( '{ "function_version": "1.0" }') 
   USING
      ANY IN TABLE,
      conversion IN TABLE,
      excluding IN TABLE,
      optional IN TABLE,
      model1 IN TABLE,
      model2 IN TABLE,
      EventColumn, TimestampColumn, WindowSize (10);