Reputation: 735
I'm trying to find the number of differences when comparing two columns. For example:
Column 1: 'ABCDEFGH!' Column 2: 'aBcDSfGh?'
Number of differences is 6.
How can I achieve such thing in Hive?
Upvotes: 0
Views: 271
Reputation:
You can use Levenshtein distance function
select levenshtein(column1, column2) from table
Upvotes: 1