AWS DMS migration task Postgres > Redshift problem with NaN

0

Hi, I am trying to migrate a table from Postgres to Redshift using a migration task

Simplified table structure:

NameType
idinteger
timetimestamp with time zone
avgreal

the avg values sometimes is a NaN in Postgres I created a transformation rule : where schema name is like 'public' and Source table name is like 'my_table', and Column name is like 'avg', change-data-type > real8

This fails and in the stl_load_errors i can see error because of "+nan" values. (screenshot attached) Enter image description here

(Edit : To be clear in the Postgres database the value is NaN not +nan)

If I replace the datatype in my transformation rule from real8 to string it works.

real8 is supposed(?) to handle NaN so I'm not sure what I am missing here.

Any help is greatly appreciated! Thank you!

No hay respuestas

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