Skip to content

String length exceeds DDL length

0

When creating the temporary table to perform the MERGE in Redshift, I get the error "String length exceeds DDL length." I am using visual ETL. How can I make Redshift use the maximum length for a varchar column instead of the default 256 when creating the temporary table?

asked 2 years ago2.2K views
2 Answers
1

In the AWS Glue Studio, when creating a new job, add a source node that connects to your data source. In the source node properties, you can specify the desired column length for the VARCHAR columns. For example, you can set the name column to have a length of 1000 characters. When creating the target node for the temporary table, the column definitions will be automatically generated based on the source schema. Verify that the VARCHAR column lengths are set as desired.

Alternatively, you can create the temporary table first, outside of the visual ETL job, and then use the MERGE statement to insert data from the source table into the temporary table

AWS
answered 2 years ago
EXPERT
reviewed 2 years ago
  • Could you please provide me with an example for a visual ELT?

1
AWS
answered 2 years ago
EXPERT
reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.