Blog Archives
Talend Tips & Tricks
This post will contain Talend Tips & Tricks which saves your time while Coding, Java Converts, If Conditions, Expression Builder and many more area.
- Always do Empty string and Null handling before converting.
!Relational.ISNULL(row1.StartDate) && row1.StartDate!=""?TalendDate.parseDate("yyyy-MM-dd", "2015-02-19"): TalendDate.parseDate("yyyy-MM-dd", "1999-01-01")
- Comparing with String values always use like below.
"Umesh".equals(row1.UserName) or "Umesh".equalsIgnoreCase(row1.UserName) instead of "Umesh"=row1.UserName or row1.UserName.equalsIgnoreCase("Umesh")
- Avoid using Short hand method or class methods for string.
Use StringHandling.TRIM(string);
//for Trim
Use String.valueOf(SomeObject)
instead .toString()
Use TalendDate.isDate("yyyy-MM-dd", "2015-02-19")
for date validation
Use Relational.ISNULL(null)
function to check whether string is null or not.
- Exclude unwanted routines from build.
Remove or add required routines to the job, because unnecessarily it will be exported with job. you can manage routines by following below steps.
- Right Click on job from Repository.
- Select Option “Setup routine dependencies”.
- Now you will have new window with two tabs one for “user routines” and other one for ” System routines” by using [+] or remove button on each tab you can manage routines.
- see the Image for more details.
adding more….
If you think I am missing some other areas then do let me know.