16.20 - Usage Notes - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
16.20
Release Date
April 2020
Content Type
Programming Reference
Publication ID
B035-1147-162K
Language
English (United States)

You can use FNC_GetArrayTypeInfo but it truncates a retrieved object name after 30 characters. Use FNC_GetArrayTypeInfo_EON to avoid truncation of longer object names.

FNC_GetArrayTypeInfo takes an ARRAY handle as input and returns information about the ARRAY argument as follows:

  • The number of dimensions, total number of elements, and information about the element data type are returned in the arrayInfo buffer.
  • The scope of each dimension of the ARRAY is returned in the arrayScope output parameter.

You must allocate the arrayInfo buffer before calling FNC_GetArrayTypeInfo. Be sure to free the memory allocated to the buffer after you process the information.