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!

답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인