FNC_UdtGetSerializeSize Function | C Library Functions | Teradata Vantage - FNC_UdtGetSerializeSize - 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™

Returns the actual size of the UDT in its serialized form.

Syntax

FNC_LobLength_t
FNC_UdtGetSerializeSize(UDT_HANDLE  udt)

Syntax Elements

udt
the handle of the UDT.

Usage Notes

Use the size returned by this function to allocate the buffer that will hold the serialized or deserialized data in calls to FNC_UdtSerialize and FNC_UdtDeserialize.

The upper limit on the amount of memory that a UDF can allocate using FNC_malloc is specified by the MallocLimit field in the cufconfig utility. For more information about cufconfig, see Teradata Vantage™ - Database Utilities, B035-1102.

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