current_version function (Databricks SQL)

Returns the current version of Databricks SQL.

Syntax

current_version()

Arguments

This function takes no arguments.

Returns

A STRUCT with the following fields:

  • dbr_version: A NULL STRING in Databricks SQL.

  • dbsql_version: A STRING with the current version of Databricks SQL.

  • u_build_hash: A STRING used by Databricks support.

  • r_build_hash: A STRING used by Databricks support.

Examples

> SELECT current_version().dbsql_version;
  2022.25

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