Skip to content

Commit

Permalink
[docs] describe version() builtin (ydb-platform#10237)
Browse files Browse the repository at this point in the history
  • Loading branch information
blinkov authored Oct 10, 2024
1 parent 7c4e268 commit 47bedc0
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
## Version {#version}

`Version()` returns a string describing the current version of the node processing the request. In some cases, such as during rolling upgrades, it might return different strings depending on which node processes the request. It does not accept any arguments.

### Examples

```yql
SELECT Version();
```

2 changes: 2 additions & 0 deletions ydb/docs/en/core/yql/reference/yql-core/builtins/basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

{% include [x](_includes/basic/current_tz.md) %}

{% include [x](_includes/basic/version.md) %}

{% include [x](_includes/basic/max_min.md) %}

{% include [x](_includes/basic/as_container.md) %}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Version {#version}

`Version()` возвращает строку, описывающую текущую версию узла, обрабатывающего запрос. В некоторых случаях, например, во время постепенного обновлений кластера, она может возвращать разные строки в зависимости от того, какой узел обрабатывает запрос. Функция не принимает никаких аргументов.

## Примеры

```yql
SELECT Version();
```
2 changes: 2 additions & 0 deletions ydb/docs/ru/core/yql/reference/yql-core/builtins/basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@

{% include [x](_includes/basic/current_tz.md) %}

{% include [x](_includes/basic/version.md) %}

{% include [x](_includes/basic/max_min.md) %}

{% include [x](_includes/basic/as_container.md) %}
Expand Down

0 comments on commit 47bedc0

Please sign in to comment.