DATASET Definitions | C Library Functions | Teradata Vantage - DATASET Definitions - 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
ft:locale
en-US
ft:lastEdition
2025-03-30
dita:mapPath
iiv1628111441820.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
qnu1472247494689
lifecycle
latest
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

An external routine may 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, which specifies the storage format of a DATASET type, 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;