md5 function

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

Returns an MD5 128-bit checksum of expr as a hex string.

Syntax

md5(expr)

Arguments

  • expr: An BINARY expression.

Returns

A STRING.

Examples

> SELECT md5('Spark');
 8cde774d6f7333752ed72cacddb05126