current_version function

Returns the current version of Databricks Runtime.

Since: Databricks Runtime 11.0

Syntax

current_version()

Arguments

This function takes no arguments.

Returns

A STRUCT with the following fields:

  • dbr_version: A STRING with the current version of Databricks Runtime.

  • dbsql_version: A NULL STRING in Databricks Runtime.

  • u_build_hash: A STRING used by Databricks support.

  • r_build_hash: A STRING used by Databricks support.

Examples

> SELECT current_version().dbr_version;
  11.0

> SELECT current_version();
  { 11.0, NULL, ..., ... }