JSON_SHRED_BATCH[_U] Procedure | JSON Shredding | Teradata Vantage - JSON_SHRED_BATCH and JSON_SHRED_BATCH_U - 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ā„¢

JSON_SHRED_BATCH and JSON_SHRED_BATCH_U are SQL stored procedures that use any number of JSON instances to populate existing tables, providing a flexible form of loading data from the JSON format into a relational model. Two shred procedures are provided; however, the only difference between them is the character set of the data. To explain the functionality, we only describe JSON_SHRED_BATCH (the version that operates on LATIN character set data), but the explanation applies equally to JSON_SHRED_BATCH_U (the UNICODE version).

The batch shredding procedures map into a number of successive calls to JSON_TABLE to create a conglomerate temporary table, the values of which can be assigned to existing tables.

Condition Return Value
Shred operation succeeds. 0
Shred operation fails. Nonzero value indicating specific error condition and appropriate error message