planga82 commented on pull request #32496:
URL: https://github.com/apache/spark/pull/32496#issuecomment-840925096
> Looks ok. We should also update the migration guide. Also, please be more
specific in the PR title as this is for float/double type only?
Applies only to floating point types, I have updated the title
> How about other hash functions, e.g., md5?
The other functions require binary types, anyway, I have tested it and it
does not reproduce the problem.
```
spark.sql("select md5(bin(cast('0.0' as double))) == md5(bin(cast('-0.0' as
double)))").show
spark.sql("select sha2(bin(cast('0.0' as double)),224) ==
sha2(bin(cast('-0.0' as double)),224)").show
spark.sql("select sha1(bin(cast('0.0' as double))) == sha1(bin(cast('-0.0'
as double)))").show
spark.sql("select crc32(bin(cast('0.0' as double))) ==
crc32(bin(cast('-0.0' as double)))").show
```
Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]