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

DATASET Data Type

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-23
dita:mapPath
des1556232910526.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1198
lifecycle
previous
Product Category
Teradata Vantageā„¢

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