current_version
function
Applies to: Databricks SQL Databricks Runtime 11.3 LTS and above
Returns the current version of Databricks SQL or Databricks Runtime.
Syntax
current_version()
Arguments
This function takes no arguments.
Returns
A STRUCT with the following fields:
Applies to: Databricks SQL
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 Azure Databricks support.r_build_hash
: A STRING used by Azure Databricks support.
Applies to: Databricks Runtime
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 Azure Databricks support.r_build_hash
: A STRING used by Azure Databricks support.
Examples
> SELECT current_version().dbsql_version;
2022.25
> SELECT current_version();
{ NULL, 2022.25, ..., ... }