Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi talend folks,
How to convert this sql case statement for tmap
case
when CHL= 'S' then date_trunc('day',"DATE")
end DATE
Hi,
To have the result as a date try this:
row1.CHL == 'S' ?
TalendDate.parseDate("dd/MM/yyyy", TalendDate.formatDate("dd/MM/yyyy", row1.yourField))) : row1.yourFieldHope this helps.