17.05 - Example: Function Mapping Definition with Multiple Variable Substitutions - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
Release Date
January 2021
Content Type
Programming Reference
Publication ID
B035-1144-175K
Language
English (United States)
The function mapping definition usr_SVMSparse specifies the following variable substitutions:
  • AttributeColumn is substituted for AttributeNameColumn
  • LabelColumn is substituted for ResponseColumn
  • ValueColumn is substituted for AttributeValueColumn

If the parameter AttributeNameColumn is specified during function processing, AttributeColumn is substituted for function processing. Similarly, if ResponseColumn is specified during function processing, LabelColumn is used. If AttributeValueColumn is specified during function processing, ValueColumn is used.

CREATE FUNCTION MAPPING usr_SVMSparse
FOR SparseSVMTrainer SERVER TD_SERVER_DB.coprocessor
USING
InputTable IN TABLE ,
ModelTable OUT TABLE ,
IDColumn ,
SampleIdColumn ,
AttributeColumn(AttributeNameColumn) ,
LabelColumn(ResponseColumn),
ValueColumn(AttributeValueColumn),
HashProjection , "Hash" , HashBuckets ,
Cost , Bias , ClassWeights ,
MaxStep ,
Epsilon , Seed , SequenceInputBy
;