Example: Creating a Table with the DATASET Data Type

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

To create a table with a DATASET data type, based on Avro, with a schema specification, use the following statement:

CREATE TABLE myDatasetTable03(
	id INTEGER,
	avroFile DATASET STORAGE FORMAT Avro WITH SCHEMA chemDatasetSchema
);

To create a table based on the storage format CSV, use this example:

CREATE TABLE csv_table(
id INTEGER,
csv DATASET STORAGE FORMAT CSV CHARACTER SET LATIN);