17.05 - Example: Unsuccessful INSERT-SELECT Statements - 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

The following are examples of unsuccessful INSERT-SELECT statements, due to length incompatibilities.

For AVRO:

CREATE TABLE myAVROTable02(
	id INT,
	avroFile DATASET(100) STORAGE FORMAT Avro); 
INSERT INTO myAVROTable02 SELECT * FROM myAVROTable01; 
*** Failure 7548: The Avro value exceeds the maximum size of 100 specified for this Dataset type
For CSV:
CREATE TABLE MyCSVTable02(
	id INT,
	csvFile DATASET(100) STORAGE FORMAT CSV); 
INSERT INTO MyCSVTable02 SELECT * FROM myCSVTable01; 
*** Failure 7548: The CSV value exceeds the maximum size of 100 specified for this Dataset type