New XML Type Instances | XML Data Type | VantageCloud Lake - XML Type Usage Notes - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
Language
English (United States)
Last Update
2024-04-03
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905
You can use the XML type the same way as other SQL data types. For example, you can specify the XML type as follows:
  • In table definitions
  • As part of a structured UDT
    Structured/Distinct/Variant UDTs are only supported on the Block File System on the primary cluster. They are not available for the Object File System.
  • As parameters and return types for UDFs written in C, C++, or Java. This includes scalar and aggregate UDFs, table functions, and table operators.
  • As IN, INOUT, and OUT parameters of stored procedures and external stored procedures written in C, C++, or Java.
  • As parameters and return types for UDMs written in C or C++.

XML 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 an XML parameter, or to get information about the XML type parameter.