I want to generate a different hash for each email, however, I found that I'm generating the same hash for differents emails, for example:
select hash('pipohecho@hotmail.com'),
hash('rozas_huertas@hotmail.com'),
hash('miguelilloooooooooouu@hotmail.com'),
hash('rjdzpmsyi@hotmail.com'),
hash('pepe@hotmail.com')
These cases: hash('pipohecho@hotmail.com'), hash('rozas_huertas@hotmail.com'), hash('miguelilloooooooooouu@hotmail.com'), hash('rjdzpmsyi@hotmail.com') generate the same hash -1517714944, then I have two questions:
- How this is possible?
- How can I generate a unique hash for each email with Spark SQL?
Thanks
