Example: Returning a JSON-Encoded Avro Value Instead of an Avro Instance as its Result

Teradata Vantage™ DATASET Data Type

brand
Software
Teradata Vantage
prodname
Teradata Database
Teradata Vantage NewSQL Engine
vrm_release
16.20
category
Programming Reference
featnum
B035-1198-162K
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}