Example: Unsuccessful INSERT-SELECT Statements - 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ā„¢

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; 

Result:

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

Result:

*** Failure 7548: The CSV value exceeds the maximum size of 100 specified for this Dataset type