FNC_GetHashAmp Function | C Library Functions | Teradata Vantage - FNC_GetHashAmp - 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
Language
English (United States)
Last Update
2023-07-11
dita:mapPath
iiv1628111441820.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
B035-1147
lifecycle
latest
Product Category
Teradata Vantageā„¢

Returns an integer representing the number of the AMP responsible for the specified key.

Syntax

int
FNC_GetHashAmp(FNC_HashRow_t *data,
               int            size,
               int           *retCode)

Syntax Elements

data
IN parameter
A pointer to an array of structures representing table columns.
FNC_HashRow_t is defined as follows:
typedef struct {
   void *data;
   parm_tx type;
} FNC_HashRow_t;
size
IN parameter
The size of the data and return arrays.
retCode
OUT parameter
A pointer to an integer value to indicate success or an error number. 0 indicates success.

Usage Notes

This routine is callable on a PE vproc only by a table operator.