17.05 - Example: Creating a Table with the DATASET Data Type - Teradata Database

Teradata Vantageā„¢ - DATASET Data Type

prodname
Advanced SQL Engine
Teradata Database
vrm_release
17.00
17.05
created_date
June 2020
category
Programming Reference
featnum
B035-1198-170K

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);