hypot function

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

Returns sqrt(expr1 * expr1 + expr2 * expr2).

Syntax

hypot(expr1, expr2)

Arguments

  • expr1: An expression that evaluates to a numeric.

  • expr2: An expression that evaluates to a numeric.

Returns

A DOUBLE.

Examples

> SELECT hypot(3, 4);
 5.0