Abhishek,
You can archive this without UDF.
Use standard functions 'endsWith', 'replaceString' and then 'concat'. If input ends with -, then replace - with "" and then concat - at the beginning of string.
Abhishek,
You can archive this without UDF.
Use standard functions 'endsWith', 'replaceString' and then 'concat'. If input ends with -, then replace - with "" and then concat - at the beginning of string.