Teradata Database Message 5794 - 5794 - Analytics Database - Teradata Vantage
Teradata® VantageCloud Lake - Analytics Database Messages
- Edition
- Lake
- Product
- Analytics Database
- Teradata Vantage
- Published
- October 2022
- Language
- English (United States)
- Last Update
- 2024-02-26
- dita:mapPath
- tzr1629746512312.ditamap
- dita:ditavalPath
- ft:empty
- dita:id
- vza1585613049811
- lifecycle
- latest
- Product Category
- Teradata® Vantage™
- Message
- UDF used in a context not currently supported.
- Explanation
- A UDF cannot be executed on a PE. There are certain cases where this might happend: 1. used to calculate a unique index hash 2. As an argument to a stored procedure call
- Generated By
- GNC modules.
- For Whom
- End User.
- Notes
- None
- Remedy
- Correct the SQL statement. Don't use a UDF in a where clause of the type: WHERE UDF(x) = A; Where A is the prime key/index or a unique index column. INSERT INTO T1 (UDF(5), 1); Where UDF(5) represents the calculated value for the PI column. Don't use a UDF as an argument to a stored procedure call: CALL UDFPROC(UDF(1), NUM);