DATASET Definitions | C Library Functions | Teradata Vantage - 17.10 - DATASET Definitions - Advanced SQL Engine - Teradata Database

Teradata Vantageā„¢ - SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1147-171K
Language
English (United States)

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;