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: ANULLSTRINGin Databricks SQL.dbsql_version: ASTRINGwith the current version of Databricks SQL.u_build_hash: ASTRINGused by Databricks support.r_build_hash: ASTRINGused by Databricks support.
Applies to: Databricks Runtime
dbr_version: ASTRINGwith the current version of Databricks Runtime.dbsql_version: ANULLSTRINGin Databricks Runtime.u_build_hash: ASTRINGused by Databricks support.r_build_hash: ASTRINGused by Databricks support.
Examples
SQL
> SELECT current_version().dbsql_version;
2022.25
> SELECT current_version();
{ NULL, 2022.25, ..., ... }