Merge pull request #30468 from sevirov/sevirov-DOCSUP-16363-document_the_getoskernelversion_function

DOCSUP-16363: Document the getOSKernelVersion function
This commit is contained in:
Maksim Kita 2021-10-22 00:17:08 +03:00 committed by GitHub
commit 1467a59f91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 72 additions and 0 deletions

View File

@ -2427,3 +2427,39 @@ Type: [UInt32](../../sql-reference/data-types/int-uint.md).
**See Also**
- [shardNum()](#shard-num) function example also contains `shardCount()` function call.
## getOSKernelVersion {#getoskernelversion}
Returns a string with the current OS kernel version.
**Syntax**
``` sql
getOSKernelVersion()
```
**Arguments**
- None.
**Returned value**
- The current OS kernel version.
Type: [String](../../sql-reference/data-types/string.md).
**Example**
Query:
``` sql
SELECT getOSKernelVersion();
```
Result:
``` text
┌─getOSKernelVersion()────┐
│ Linux 4.15.0-55-generic │
└─────────────────────────┘
```

View File

@ -2375,3 +2375,39 @@ shardCount()
**См. также**
- Пример использования функции [shardNum()](#shard-num) также содержит вызов `shardCount()`.
## getOSKernelVersion {#getoskernelversion}
Возвращает строку с текущей версией ядра ОС.
**Синтаксис**
``` sql
getOSKernelVersion()
```
**Аргументы**
- Нет.
**Возвращаемое значение**
- Текущая версия ядра ОС.
Тип: [String](../../sql-reference/data-types/string.md).
**Пример**
Запрос:
``` sql
SELECT getOSKernelVersion();
```
Результат:
``` text
┌─getOSKernelVersion()────┐
│ Linux 4.15.0-55-generic │
└─────────────────────────┘
```