
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to implement COALESCE in Talend?
Hi
May I ask if there is any way to implement COALESCE in Talend?
I only see 'First Match', 'Unique Match', 'All Matches' with Tmap, however none of them can catch the right values that COALESCE does in SQL.
Your help is much appreciated!
Best,
Billy

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Are you referring to this function https://docs.trifacta.com/display/PE/COALESCE+Function in talend ?
Best regards
Sabrina

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Sabrina,
Yes, that's the function I'm looking for, to get the first non null value in an array of columns. It's one of the function in SQL but I could not find how to do it in Talend. My alternative way is to sort on 'All Matches' in tMap and followed by tUniqRow which is very inefficient.
Thanks!
Best,
Billy

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
U can try like this.It works.
row1.ConDate!=null?row1.ConDate:TalendDate.parseDate("yyyy-MM-dd HH:mm:ss","1970-01-01 00:00:00")
