16.20 - Mapping Between R and C Data Types - 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)

The data types of input and output parameters of R FNC functions conform to typical usage of R data types. However, R FNC functions are implemented using existing C FNC functions. Therefore, wrappers are used to convert data from R data types to C data types and vice versa. The mapping between R and C data types is shown in the following table.

R C
integer
  • signed char
  • signed/unsigned short
  • signed/unsigned int
  • signed/unsigned long
real
  • float
  • double
  • long long
character char, when used for characters and strings
raw
  • pointers
  • unsigned char (byte)
vector array
list struct