[ https://issues.apache.org/jira/browse/SPARK-8237?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Davies Liu resolved SPARK-8237. ------------------------------- Resolution: Fixed Fix Version/s: 1.5.0 Issue resolved by pull request 6934 [https://github.com/apache/spark/pull/6934] > misc function: sha2 > ------------------- > > Key: SPARK-8237 > URL: https://issues.apache.org/jira/browse/SPARK-8237 > Project: Spark > Issue Type: Sub-task > Components: SQL > Reporter: Reynold Xin > Fix For: 1.5.0 > > > 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: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org