control() - 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
2023-07-11
dita:mapPath
iiv1628111441820.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
B035-1147
lifecycle
latest
Product Category
Teradata Vantageā„¢

Designates a table function as the controlling copy of all other copies of the table function running on other AMP vprocs.

This method returns true if the call is successful and the copy of table function can take the control role of the table function. If the method returns false, the copy of the table function should not assume the role of the control copy.

Usage Notes

Setting up a controlling copy of a table function is useful when there is a need to distribute certain external control data among various copies of the table function that run on different AMP vprocs, but the external control data is on a particular node that only one copy of the table function can access.

Only one copy of the table function can successfully call Tbl.control().

After calling Tbl.control(), the controlling copy of a table function can distribute control data to other table function copies by calling Tbl.setCtrlCtx().