Deterministic Characteristics Clause: CREATE FUNCTION and REPLACE FUNCTION (External Form) - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
ft:locale
en-US
ft:lastEdition
2024-12-11
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

This optional clause declares whether the function returns the same results for identical inputs or not.

Vantage supports the following deterministic characteristics options:
  • DETERMINISTIC
  • NOT DETERMINISTIC

Vantage must evaluate each row selected by a non-deterministic UDF condition individually because the evaluation of the function can change for each row selected within a query (this qualification includes both specifying NOT DETERMINISTIC explicitly and not specifying DETERMINISTIC, because NOT DETERMINISTIC is the default option for the clause). A predicate that includes a non-deterministic UDF specified on an index causes an all-AMP operation despite the index having been specified in the predicate.