Skip to content

Commit 47bedc0

Browse files
authored
[docs] describe version() builtin (#10237)
1 parent 7c4e268 commit 47bedc0

File tree

4 files changed

+23
-0
lines changed

4 files changed

+23
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
## Version {#version}
2+
3+
`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.
4+
5+
### Examples
6+
7+
```yql
8+
SELECT Version();
9+
```
10+

ydb/docs/en/core/yql/reference/yql-core/builtins/basic.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121

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

24+
{% include [x](_includes/basic/version.md) %}
25+
2426
{% include [x](_includes/basic/max_min.md) %}
2527

2628
{% include [x](_includes/basic/as_container.md) %}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Version {#version}
2+
3+
`Version()` возвращает строку, описывающую текущую версию узла, обрабатывающего запрос. В некоторых случаях, например, во время постепенного обновлений кластера, она может возвращать разные строки в зависимости от того, какой узел обрабатывает запрос. Функция не принимает никаких аргументов.
4+
5+
## Примеры
6+
7+
```yql
8+
SELECT Version();
9+
```

ydb/docs/ru/core/yql/reference/yql-core/builtins/basic.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323

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

26+
{% include [x](_includes/basic/version.md) %}
27+
2628
{% include [x](_includes/basic/max_min.md) %}
2729

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

0 commit comments

Comments
 (0)