JSON Data Type | JSON Type and UDFs | Teradata Vantage - Using the JSON Type with UDFs - Advanced SQL Engine - Teradata Database

JSON Data Type

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
September 2020
Language
English (United States)
Last Update
2021-01-23
dita:mapPath
gzn1554761068186.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1150
lifecycle
previous
Product Category
Teradata Vantageā„¢
You can create a UDF containing one or more parameters and return type that are a JSON data type. The JSON type is supported for the following types of UDFs:
  • Scalar and aggregate UDFs, table functions, and table operators written in C, C++, or Java.
  • SQL UDFs

For SQL UDFs, the RETURN clause can be an SQL statement that evaluates to the JSON data type.

You can specify the JSON type with the STORAGE FORMAT specification to pass binary JSON data to an external routine.

JSON FNC functions and Java classes and methods are provided to enable a UDF, UDM, or external stored procedure to access and set the value of a JSON parameter, or to get information about the JSON type parameter. For information about these functions and methods, see Teradata Vantageā„¢ - SQL External Routine Programming , B035-1147 .