VARCHAR and VARBYTE Result Behavior - Teradata Vantage - Analytics Database

SQL External Routine Programming

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2026-03-06
dita:mapPath
iiv1628111441820.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
qnu1472247494689
lifecycle
latest
Product Category
Teradata Vantageā„¢

Vantage does not truncate VARCHAR or VARBYTE return values.

Any attempt by the function to return a VARCHAR or VARBYTE value where the length is greater than the length specified in the RETURNS clause of the CREATE FUNCTION or REPLACE FUNCTION statement generates a 7509 error.

For details on using the C types that map to VARCHAR and VARBYTE, see SQL Data Type Mapping.