15.10 - Example: Error - Combine Two JSON ARRAYs and State the Result Is a JSON OBJECT - Teradata Database

Teradata Database Teradata JSON

Product
Teradata Database
Release Number
15.10
Published
December 2015
Language
English (United States)
Last Update
2018-06-05
dita:mapPath
TeradataJSON_15_10.ditamap
dita:ditavalPath
ft:empty
The example specifies the 'OBJECT' parameter; however, the data being combined are both JSON array instances, so the result must be a JSON ARRAY. This example results in an error because 'OBJECT' was specified.
The example uses the table(s) created earlier.
/*Error case*/

SELECT edata.Combine(edata2, 'OBJECT') FROM my_table WHERE eno=3;

The example results in an error similar to this: *** Failure 7548: Invalid options for JSON Combine method.