Direkt zum Inhalt

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?

gefragt vor 2 Jahren2227 Aufrufe
2 Antworten
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
beantwortet vor 2 Jahren
EXPERTE
überprüft vor 2 Jahren
  • Could you please provide me with an example for a visual ELT?

1
AWS
beantwortet vor 2 Jahren
EXPERTE
überprüft vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.