I have a case where I need to calculate the Levenshtein distance between two columns for a row in MySQL. There are UDF's available for this, but I need to do this without a UDF. The reason for this is that I am using MemSQL, which is an extremely fast in-memory database, but does not support UDFs - but it does support nearly any query you can run in MySQL. Is anyone aware of a non-udf implementation of the Levenshtein distance algorithm as a query? Something like the following UDF:
http://www.artfulsoftware.com/infotree/qrytip.php?id=552
I'm working on converting this myself as well. I'm open to other solutions as well (aka, other ways to make this happen in MemSQL).
Note: I cannot using Hamming distance. That would be simpler, but the use case calls for Levenshtein distance.