DATASET Definitions | C Library Functions | Teradata Vantage - DATASET Definitions - 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™

This section describes the data structures defined in sqltypes_td.h for use with external routines that access or manipulate DATASET data.

DATASET_HANDLE

A DATASET argument is passed to an external routine using a DATASET_HANDLE. The DATASET_HANDLE used to pass DATASET data is defined in sqltypes_td.h as follows:
typedef int DATASET_HANDLE;

dataset_schema_encoding_en

Some external routines require a specification of the encoding of the schema text being handled. The dataset_schema_encoding_en enum includes the following information. See sqltypes_td.h for the complete definition.
  • datasetSchemaUTF8 = 0
  • datasetSchemaUTF16 = 1
sqltypes_td.h also includes the following definition:
typedef Byte dataset_schema_encoding_t;

dataset_storage_en

The dataset_storage_en enum specifies the storage format of a DATASET type. It includes the following values. See sqltypes_td.h for the complete definition.
  • DATASET_INVALID_EN=-1
  • DATASET_Avro_EN=0
  • DATASET_CSV_EN=1
sqltypes_td.h also includes the following definition:
typedef BYTE dataset_storage_et;