16.20 - Example: Returning a JSON-Encoded Avro Value Instead of an Avro Instance as its Result - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ DATASET Data Type

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Published
March 2019
Language
English (United States)
Last Update
2019-05-02
dita:mapPath
pgs1512082344257.ditamap
dita:ditavalPath
TD_DBS_16_20_Update1.ditaval
SELECT id, 
avroCol.AvroProjectToJSON('{"type":"record","name":"rec_0","fields":[{"name":"First","type":"string"},{"name":"Age","type":"int"}]}') 
FROM avroTable ORDER BY id;
id
avroCol.AvroProjectToJSON(…)
1
{"First":"Leo","Age":187}
2
{"First":"Mark","Age":180}
3
{"First":"William","Age":451}
4
{"First":"Charles","Age":203}