We have used Hash_MD5(col1,col2) in exasol. Now we are migrating to data bricks and we want to retain all Hash id's. Problem is data brick doesnot support multiple arguments in MD5 and concat MD5(Concat(col1,col2)) giving us different result. Any way we can retain haah id's after migration?
We are expecting same hash id,s between exasol and data bricks
I'm not familiar with exosol but according to the exosol documentation:
https://docs.exasol.com/db/7.1/sql_references/functions/alphabeticallistfunctions/hash_md5.htm
Therefore, you should use the binary representation of your values instead of concatenation alone. Here are a few options for demonstration:
As shown,
(a)is what you tried and doesn't work, but is different than(b)and(c). Based on the documentation,(b)should be the same transformation that Exasol is doing.(c)is included just for demonstration.