sha 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 sha1 function.

Syntax

sha(expr)

Arguments

  • expr: A BINARY or STRING expression.

Returns

A STRING.

Examples

> SELECT sha('Spark');
 85f5955f4b27a9a4c2aab6ffe5d7189fc298b92c