16.20 - FNC_SetDatasetLob - 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)

Purpose

This function allows a user to pass a LOB_LOCATOR to a DATASET data type instance. The LOB_LOCATOR references a UTF-8 encoded schema, null-terminated, followed by the binary-encoded Avro value.

Syntax

void
FNC_SetDatasetLob( DATASET_HANDLE   datasetHandle,
                   LOB_LOCATOR	     instance  )
DATASET_HANDLE datasetHandle
A handle to a DATASET data type instance that is defined to be an input parameter to an external routine.
LOB_LOCATOR instance
A LOB_LOCATOR which references the schema and data that will be used by a DATASET instance.

Usage Notes

This function allows a user to pass a LOB_LOCATOR to a DATASET data type instance. The LOB_LOCATOR references a UTF-8 encoded schema, null-terminated, followed by the binary-encoded Avro value. The instance uses this data to set its schema and binary-encoded Avro value. Note that any invalid data provided results in an error.