Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Talend Folks,
I want know how to use StringHandling.LEN() function for integer column. I am facing error in below query. could please tell me?
StringHandling.LEN(row1.CARID)>2?0:1
Hi RAJESH_GJ,
Try to convert the integer value to string and use the length function.
Below is the function.
StringHandling.LEN(row1.newColumn.toString())
Thanks,
Bharath.
Dear cterenzi,
THANK YOU FOR IMMEDIATE RESPONSE
HOW TO FIND COLUMN VALUE LENGTH?
FOR EXAMPLE:
IF CARID Column VALUE LENGTH IS GREATER THAN 2 I NEED TO SET 0 ELSE I NEED TO SET 1
LEN(ROW1.CARID)>2 ? 0 : 1
Hi RAJESH_GJ,
Try to convert the integer value to string and use the length function.
Below is the function.
StringHandling.LEN(row1.newColumn.toString())
Thanks,
Bharath.