16.20 - UDF Arguments - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Operators and User-Defined Functions

Product
Advanced SQL Engine
Teradata Database
Release Number
16.20
Release Date
April 2020
Content Type
Administration
Programming Reference
Publication ID
B035-1210-162K
Language
English (United States)

When Teradata Database evaluates a UDF expression, it invokes the function with the arguments passed to it. The following rules apply to the arguments in the function call:

  • The arguments must be comma-separated expressions in the same order as the parameters declared in the function.
  • The number of arguments passed to the UDF must be the same as the number of parameters declared in the function.
  • The data types of the arguments must be compatible with the corresponding parameter declarations in the function and follow the precedence rules that apply to compatible types.