Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
there is a flat file with about 100 fields (fixed length)
I would like to filter the records with city in (city1,city2,city3,........city20) and output the file.
Is there any talend function or java function similar sql in () function?
city.equals(city1) || city.equals(city2)||..will work, but it is not convenient
thank you.
StringHandling.INDEX(context.cities,row1.city)!=-1
tMap filter (possible with little modifications for prevent partial matches), also will work
Hi JaneYu
No similar function exists yet, however, you can create a routine function and call it in the job whenever you need to call it. Please refer to documentation Creating an user routine and call it in a job
Regards
Shong
StringHandling.INDEX(context.cities,row1.city)!=-1
tMap filter (possible with little modifications for prevent partial matches), also will work