FNC_UdtDeserialize Function | C Library Functions | Teradata Vantage - FNC_UdtDeserialize - 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
Language
English (United States)
Last Update
2023-07-11
dita:mapPath
iiv1628111441820.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
B035-1147
lifecycle
latest
Product Category
Teradata Vantage™

Deserializes data in the UDT’s serialized format back into the UDT.

Returns 0 if the operation was successful, 1 otherwise.

Syntax

int
FNC_UdtDeserialize (UDT_HANDLE        udt, 
                    BYTE             *buffer,
                    FNC_LobLength_t   data_length)

Syntax Elements

udt
the handle of the UDT.
buffer
the user buffer that contains the UDT value in its serialized format.
data_length
the length of the data in the buffer.

Usage Notes

When invoking FNC_UdtDeserialize, you must pass in a buffer that contains all of the serialized data. FNC_UdtDeserialize deserializes this data back into the UDT, but this must be done in a single call to FNC_UdtDeserialize.

The query will fail if the UDT does not support serialize/deserialize.