I am new to Scala and Spark. I want to derive a new column from existing columns of data frame by computing edit distance. For example FNAME and LNAME are two columns of data frame, wanted to add new column called NAMESCORE which keeps edit distance of FNAME to LNAME. Kindly please advise with a working or pseudo code.
Here is the link I got some partial answer.
Derive multiple columns from a single column in a Spark DataFrame