---
title: current_version function
description: Learn the syntax of the current\_version function of the SQL language in Databricks SQL and Databricks Runtime.
canonical_url: https://docs.databricks.com/aws/en/sql/language-manual/functions/current_version
---

# `current_version` function

**Applies to:** ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) Databricks SQL ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) 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:** ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) 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 Databricks support.
* `r_build_hash`: A `STRING` used by Databricks support.

**Applies to:** ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) 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 Databricks support.
* `r_build_hash`: A `STRING` used by Databricks support.

## Examples

```sql
> SELECT current_version().dbsql_version;
  2022.25

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

## Related functions

* [`version` function](https://docs.databricks.com/aws/en/sql/language-manual/functions/version.md)
