version function

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

Returns the Apache Spark version.

Use current_version to retrieve the Databricks SQL 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().dbsql_version;
 2022.25

> SELECT current_version().dbr_version;
 11.0