Multiple problems here :
- If you want to convert from String to Double you should use Double.parseDouble().
"," is not the expected char : it should be "." : You will have to convert "," char to "." char : if your input comes from an excel or delimited file, you can set this option on the advanced settings of tFileInput component ("advanced separator"). Otherwise you should use
yourString.replaceAll(",", "."))there is a non-standard space in the String that you should replace with
yourString.replaceAll(" ", ""))
Multiple problems here :
- If you want to convert from String to Double you should use Double.parseDouble().
"," is not the expected char : it should be "." : You will have to convert "," char to "." char : if your input comes from an excel or delimited file, you can set this option on the advanced settings of tFileInput component ("advanced separator"). Otherwise you should use
yourString.replaceAll(",", "."))there is a non-standard space in the String that you should replace with
yourString.replaceAll(" ", ""))
To do so u can use so many fucntions in t_Map :
columnValue = columnValue.replaceAll("\\W","");
\w = Anything that is a word character
\W = Anything that isn't a word character (including punctuation etc)
\s = Anything that is a space character (including space, tab characters etc)
`\S = Anything that isn't a space character (including both letters and numbers, as well as punctuation etc)
or if u want to ignore any thing other then a letter or a number u can use simply :
.replaceAll("[^a-zA-Z0-9]", "")