Reynold Xin created SPARK-8237:
----------------------------------
Summary: misc function: sha2
Key: SPARK-8237
URL: https://issues.apache.org/jira/browse/SPARK-8237
Project: Spark
Issue Type: Sub-task
Reporter: Reynold Xin
sha2(string/binary, int): string
Calculates the SHA-2 family of hash functions (SHA-224, SHA-256, SHA-384, and
SHA-512) (as of Hive 1.3.0). The first argument is the string or binary to be
hashed. The second argument indicates the desired bit length of the result,
which must have a value of 224, 256, 384, 512, or 0 (which is equivalent to
256). SHA-224 is supported starting from Java 8. If either argument is NULL or
the hash length is not one of the permitted values, the return value is NULL.
Example: sha2('ABC', 256) =
'b5d4045c3f466fa91fe2cc6abe79232a1a57cdf104f7a26e716e0a1e2789df78'.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]