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

DATASET Data Type

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2023-10-30
dita:mapPath
bka1628112240653.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
ekk1458586304878
lifecycle
latest
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);