Rules for Order Mapping UDFs | CREATE ORDERING | Teradata Vantage - Rules for Order Mapping UDFs - Analytics Database - Teradata Vantage

SQL Data Definition Language Detailed Topics

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2023-07-11
dita:mapPath
vuk1628111288877.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
B035-1184
lifecycle
latest
Product Category
Teradata Vantage™
If you specify a UDF as the MAP routine for an ordering, it must obey the following rules:
  • It must have one and only one parameter.
  • The data type of the single parameter you specify must be the same as that of the UDT specified as UDT_name.
  • The result data type must be a predefined data type.
    Its predefined data type is valid except the following:
    • BLOB
    • CLOB
  • It must be declared to be DETERMINISTIC.
  • The name you specify for it in the ordering definition must be the name of a UDF contained within the SYSUDTLIB database.

See CREATE FUNCTION and REPLACE FUNCTION (External Form) for details about UDF parameters, result data types, and the DETERMINISTIC option.