Ignite Discussions : Ask Questions, Find Answers, Share Expertise about Sparkflows
Hello Lily, find the solution below.
In Sparkflows, we can use ‘Cast To Single Type’ processor to convert String value to Numeric value. To use the ‘Cast To Single Type’ processor:
- Select String column to be casted from the incoming DataFrame.
- Select a numeric data type in the ‘New Data Type’ field.
- Select whether output would replace the incoming field. Otherwise casted value would
be added as a new column to the outgoing DataFrame.