What kind of hash algorithm is used for Hive's built-in HASH() Function

前端 未结 2 2057
梦如初夏
梦如初夏 2020-12-16 02:45

What kind of hashing algorithm is used in the built-in HASH() function?

I\'m ideally looking for a SHA512/SHA256 hash, similar to what the SHA() function offers with

2条回答
  •  轮回少年
    2020-12-16 03:21

    As of Hive 2.1.0 there is a mask_hash function that will hash string values.

    For Hive 2.x it uses md5 as the hashing algorithm. This was changed to sha256 for Hive 3.x

提交回复
热议问题