17.10 - Example: Creating a Table with the DATASET Data Type - Advanced SQL Engine - Teradata Database

Teradata Vantageā„¢ - DATASET Data Type

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1198-171K
Language
English (United States)

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