version function

Returns the Apache Spark version.

Use current_version to retrieve the Databricks Runtime version.

Syntax

version()

Arguments

The function takes no argument.

Returns

A STRING that contains two fields, the first being a release version and the second being a git revision.

Examples

> SELECT version();
 3.1.0 a6d6ea3efedbad14d99c24143834cd4e2e52fb40

> SELECT current_version().dbr_version;
 11.0