mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-21 09:10:48 +00:00
Added examples
This commit is contained in:
parent
03fbe8864c
commit
5c9e6900b5
@ -817,4 +817,18 @@ Result:
|
||||
└──────────────┘
|
||||
```
|
||||
|
||||
Query:
|
||||
|
||||
```sql
|
||||
SELECT (SELECT toDate('2015-01-02'), 'Hello') AS x, x, identity((SELECT 1)), identity((SELECT 1) AS y);
|
||||
```
|
||||
|
||||
Result:
|
||||
|
||||
```text
|
||||
─x──────────────────────┬─x──────────────────────┬─identity(_subquery7)─┬─identity(y)─┐
|
||||
│ ('2015-01-02','Hello') │ ('2015-01-02','Hello') │ 1 │ 1 │
|
||||
└────────────────────────┴────────────────────────┴──────────────────────┴─────────────┘
|
||||
```
|
||||
|
||||
[Original article](https://clickhouse.yandex/docs/en/query_language/functions/other_functions/) <!--hide-->
|
||||
|
@ -778,7 +778,7 @@ identity()
|
||||
|
||||
**Возвращаемое значение**
|
||||
|
||||
Возвращает то же значение, которое использовалось в качестве аргумента.
|
||||
Возвращает значение переданное в аргументе.
|
||||
|
||||
**Пример**
|
||||
|
||||
@ -796,6 +796,20 @@ SELECT identity(43)
|
||||
└──────────────┘
|
||||
```
|
||||
|
||||
Запрос:
|
||||
|
||||
```sql
|
||||
SELECT (SELECT toDate('2015-01-02'), 'Hello') AS x, x, identity((SELECT 1)), identity((SELECT 1) AS y);
|
||||
```
|
||||
|
||||
Ответ:
|
||||
|
||||
```text
|
||||
─x──────────────────────┬─x──────────────────────┬─identity(_subquery7)─┬─identity(y)─┐
|
||||
│ ('2015-01-02','Hello') │ ('2015-01-02','Hello') │ 1 │ 1 │
|
||||
└────────────────────────┴────────────────────────┴──────────────────────┴─────────────┘
|
||||
```
|
||||
|
||||
[Оригинальная статья](https://clickhouse.yandex/docs/ru/query_language/functions/other_functions/) <!--hide-->
|
||||
|
||||
## modelEvaluate(model_name, ...) {#function-modelevaluate}
|
||||
|
Loading…
Reference in New Issue
Block a user