Running Table Operators on a Set of AMPs - Analytics Database - Teradata Vantage

SQL External Routine Programming

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2025-03-30
dita:mapPath
iiv1628111441820.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
qnu1472247494689
lifecycle
latest
Product Category
Teradata Vantage™

You can run table operators on a set of AMPs based on a contiguous or sparse map that is associated with the table operator. The database distributes input rows to the AMPs in the specified or default map before running the table operator on the specified or default map if the input rows are not already distributed per that map.

For example, you may want to configure nodes with extra memory so those nodes can run table operator queries such as SQL-H queries, SAS jobs, or R scripts. You can define a map that includes only the AMPs on those nodes and then specify that map in a CREATE/REPLACE FUNCTION statement using the EXECUTE MAP clause.

You can also use the EXECUTE MAP clause when invoking a table operator so that the table operator runs only on the AMPs specified in the map. This overrides any map and colocation name specified when the table operator was created.

For more information, see CREATE FUNCTION (Table Form) information in Teradata Vantage™ - SQL Data Definition Language Syntax and Examples, B035-1144 and FROM clause of the SELECT statement in Teradata Vantage™ - SQL Data Manipulation Language, B035-1146.