Skip to content

CURRENT_RELEASE

Returns the name of the release currently selected by the user for pattern/release group.

Syntax

sql
CURRENT_RELEASE(pattern_name)

Arguments

pattern_name: The name of the pattern, for which you want the currently selected release.

Return Values

Currently selected release as text.

Example

sql
SELECT CURRENT_RELEASE('MY_PATTERN');

-- OR

SELECT CURRENT_RELEASE('@INSTANCES.MY_PATTERN');
txt
+-------------------+
| 'R.2025.Q1'       |
+-------------------+
|  R.2025.Q1        |
+-------------------+