Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
elsaaa
Contributor
Contributor

Enter a null value in postgresql for a timestamp field according to a condition in tMap

Hey all , 

I need help , my job is about mapping beetween a csv file and a postegresql table .

According to a condition, if the date is like  99999999, I must map this column as a null value i the database .

After excuting my job , the  99999999's date  is mapping as '100007-06-07 00:00:00' ,so not null  .

0683p000009M3Ua.png0683p000009M43S.png0683p000009M4Ee.png

Labels (2)
1 Reply
Anonymous
Not applicable

Hello,

You could use nested ternary operators.

condition?value if true:value if false

Here is an article about:https://community.talend.com/t5/Design-and-Development/tMap-expression-syntax/ta-p/21575

Best regards

Sabrina