Redshift varchar(max) not enough to store json data type column from Postgres

0

Redshift varchar(max) not enough to store json data type column from Postgres. Which data type should I use to store the column, I am using glue to perform the ETL and storing to Redshift, Postgres has Json data type but in Redshift the limit is exceeding even by varchar(max). Getting below error in STL_LOAD_ERRORS table-redshift ->String length exceeds DDL length
Is there any workaround or direct solution, as super data type is not supported in Glue, so can't map that to the column.

  • How big is your JSON data?

  • try using text data type, supported in postgres and redshift.

preguntada hace 2 años2986 visualizaciones
2 Respuestas
0

Hi,

In Redshift for storing JSON data we have introduced the SUPER data type.

However, the SUPER data type only supports up to 1MB of data for an individual SUPER field or object. For more information, see Ingesting and querying semistructured data in Amazon Redshift.

hope this helps,

AWS
EXPERTO
respondido hace 2 años
0

We are encountering a similar issue where we're utilizing the "super" datatype, which has a maximum length of 65K. However, the column in the Parquet file we receive has a maximum length of 192K. How should we handle this data? Are there alternative datatypes we can use to accommodate such large data sizes?

msve
respondido hace un mes

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas