इसके माध्यम से साझा किया गया


sha1 function

Applies to: check marked yes Databricks SQL check marked yes Databricks Runtime

Returns a sha1 hash value as a hex string of expr. This function is a synonym for sha function.

Syntax

sha1(expr)

Arguments

  • expr: A BINARY or STRING expression.

Returns

A STRING.

Examples

> SELECT sha1('Spark');
 85f5955f4b27a9a4c2aab6ffe5d7189fc298b92c