mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Merge pull request #6788 from den-crane/patch-3
Doc change. identity function + translation to russian for throwIf / modelEvaluate
This commit is contained in:
commit
bc37ede1e6
@ -409,7 +409,7 @@ WHERE diff != 1
|
||||
│ 65536 │ 0 │
|
||||
└────────┴──────┘
|
||||
|
||||
set max_block_size=100000 // default value is 65536!
|
||||
set max_block_size=100000 -- default value is 65536!
|
||||
|
||||
SELECT
|
||||
number,
|
||||
@ -746,11 +746,32 @@ Gets data from [Join](../../operations/table_engines/join.md) tables using the s
|
||||
Only supports tables created with the `ENGINE = Join(ANY, LEFT, <join_keys>)` statement.
|
||||
|
||||
## modelEvaluate(model_name, ...)
|
||||
Evaluate external model.
|
||||
Evaluate model.
|
||||
Accepts a model name and model arguments. Returns Float64.
|
||||
|
||||
## throwIf(x)
|
||||
## throwIf(x\[, custom_message\])
|
||||
|
||||
Throw an exception if the argument is non zero.
|
||||
custom_message - is an optional parameter: a constant string, provides an error message
|
||||
|
||||
```sql
|
||||
SELECT throwIf(number = 3, 'Too many') FROM numbers(10);
|
||||
|
||||
↙ Progress: 0.00 rows, 0.00 B (0.00 rows/s., 0.00 B/s.) Received exception from server (version 19.14.1):
|
||||
Code: 395. DB::Exception: Received from localhost:9000. DB::Exception: Too many.
|
||||
```
|
||||
|
||||
## identity()
|
||||
|
||||
Returns the same value that was used as its argument.
|
||||
|
||||
```sql
|
||||
SELECT identity(42)
|
||||
|
||||
┌─identity(42)─┐
|
||||
│ 42 │
|
||||
└──────────────┘
|
||||
```
|
||||
Used for debugging and testing, allows to "break" access by index, and get the result and query performance for a full scan.
|
||||
|
||||
[Original article](https://clickhouse.yandex/docs/en/query_language/functions/other_functions/) <!--hide-->
|
||||
|
@ -386,7 +386,7 @@ WHERE diff != 1
|
||||
└────────┴──────┘
|
||||
|
||||
|
||||
set max_block_size=100000 // по умолчанию 65536!
|
||||
set max_block_size=100000 -- по умолчанию 65536!
|
||||
|
||||
SELECT
|
||||
number,
|
||||
@ -721,4 +721,34 @@ SELECT filesystemAvailable() AS "Free space", toTypeName(filesystemAvailable())
|
||||
|
||||
Поддержаны только таблицы, созданные запросом с `ENGINE = Join(ANY, LEFT, <join_keys>)`.
|
||||
|
||||
## modelEvaluate(model_name, ...)
|
||||
|
||||
Вычислить модель.
|
||||
Принимает имя модели и аргументы модели. Возвращает Float64.
|
||||
|
||||
## throwIf(x\[, custom_message\])
|
||||
|
||||
Бросает исключение, если аргумент не равен нулю.
|
||||
custom_message - необязательный параметр, константная строка, задает текст сообщения об ошибке.
|
||||
|
||||
```sql
|
||||
SELECT throwIf(number = 3, 'Too many') FROM numbers(10);
|
||||
|
||||
↙ Progress: 0.00 rows, 0.00 B (0.00 rows/s., 0.00 B/s.) Received exception from server (version 19.14.1):
|
||||
Code: 395. DB::Exception: Received from localhost:9000. DB::Exception: Too many.
|
||||
```
|
||||
|
||||
## identity()
|
||||
|
||||
Возвращает то же значение, которое использовалось в качестве аргумента.
|
||||
|
||||
```sql
|
||||
SELECT identity(42)
|
||||
|
||||
┌─identity(42)─┐
|
||||
│ 42 │
|
||||
└──────────────┘
|
||||
```
|
||||
Используется для отладки и тестирования, позволяет "сломать" доступ по индексу, и получить результат и производительность запроса для полного сканирования.
|
||||
|
||||
[Оригинальная статья](https://clickhouse.yandex/docs/ru/query_language/functions/other_functions/) <!--hide-->
|
||||
|
Loading…
Reference in New Issue
Block a user