getNodeIds() - Advanced SQL Engine - Teradata Database

SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-24
dita:mapPath
qwr1571437338192.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1147
lifecycle
previous
Product Category
Teradata Vantage™

Returns an array of node information, where each array element is the unique number of a node.

Return Value

The number of elements in the array can be determined by NodeInfo.getNumAMPs().

The array elements map one-to-one with the array elements from NodeInfo.getAMPIds(). For example, the second array element from NodeInfo.getNodeIds() is the node number for the AMP in the second array element from NodeInfo.getAMPIds().

Node numbers occur in ascending order and each node number is repeated for the total number of AMPs on that particular node.

In the event of a node failure, a HSN (hot standby node) takes over the online AMP vprocs from the failed node. In this case, getNodeIds() returns the node ID of the HSN instead of the failed node. Therefore, you may get results that are not in the order expected with regards to the node ID.