CSV_TO_JSON Syntax - Teradata VantageCloud Lake

Lake - Working with SQL

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Published
February 2025
ft:locale
en-US
ft:lastEdition
2025-11-21
dita:mapPath
jbe1714339405530.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
jbe1714339405530
CSV_TO_JSON ( ON
  ( SELECT CSV_expression select_stmt_options )
  [ USING { SCHEMA ( schema ) | AGGREGATE ( {'Y'|'N'} ) } ]
)

Syntax Elements

CSV_expression
Any expression that evaluates to character data in the CSV format or a DATASET STORAGE FORMAT CSV value.
select_stmt_options
The select_stmt_options are the allowable or necessary options in Vantage for a SQL SELECT statement.
USING
Variables used as input to the SQL statement specified by select_stmt_options.
schema
The CSV schema.
AGGREGATE
Specify AGGREGATE for the output instances to be composed of one row of input data.