17.10 - Dropping a Function For Which Statistics Are Being Collected - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Data Definition Language Detailed Topics

Advanced SQL Engine
Teradata Database
Release Number
Release Date
July 2021
Content Type
Programming Reference
Publication ID
English (United States)

If you drop a UDF, the database no longer uses any statistics that involve it.

However, if the UDF is recreated with the same name and same return type, the database uses the statistics again.

If you change the functionality of the UDF however, you should recollect all of the statistics that had previously been collected on it.