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!

Sem respostas

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas