2022-08-28 13:53:52 +00:00
|
|
|
|
---
|
2022-08-28 13:58:27 +00:00
|
|
|
|
slug: /en/operations/system-tables/functions
|
2022-08-28 13:53:52 +00:00
|
|
|
|
---
|
2022-06-02 10:55:18 +00:00
|
|
|
|
# functions
|
2020-06-18 08:24:31 +00:00
|
|
|
|
|
|
|
|
|
Contains information about normal and aggregate functions.
|
|
|
|
|
|
|
|
|
|
Columns:
|
|
|
|
|
|
2023-09-18 15:26:54 +00:00
|
|
|
|
- `name` ([String](../../sql-reference/data-types/string.md)) – The name of the function.
|
|
|
|
|
- `is_aggregate` ([UInt8](../../sql-reference/data-types/int-uint.md)) — Whether the function is an aggregate function.
|
|
|
|
|
- `case_insensitive`, ([UInt8](../../sql-reference/data-types/int-uint.md)) - Whether the function name can be used case-insensitively.
|
|
|
|
|
- `alias_to`, ([String](../../sql-reference/data-types/string.md)) - The original function name, if the function name is an alias.
|
|
|
|
|
- `create_query`, ([String](../../sql-reference/data-types/enum.md)) - Unused.
|
|
|
|
|
- `origin`, ([Enum8](../../sql-reference/data-types/string.md)) - Unused.
|
|
|
|
|
- `description`, ([String](../../sql-reference/data-types/string.md)) - A high-level description what the function does.
|
|
|
|
|
- `syntax`, ([String](../../sql-reference/data-types/string.md)) - Signature of the function.
|
|
|
|
|
- `arguments`, ([String](../../sql-reference/data-types/string.md)) - What arguments does the function take.
|
|
|
|
|
- `returned_value`, ([String](../../sql-reference/data-types/string.md)) - What does the function return.
|
|
|
|
|
- `examples`, ([String](../../sql-reference/data-types/string.md)) - Example usage of the function.
|
|
|
|
|
- `categories`, ([String](../../sql-reference/data-types/string.md)) - The category of the function.
|
2020-08-06 08:50:29 +00:00
|
|
|
|
|
2020-12-03 19:27:55 +00:00
|
|
|
|
**Example**
|
|
|
|
|
|
|
|
|
|
```sql
|
2023-09-18 15:26:54 +00:00
|
|
|
|
SELECT name, is_aggregate, is_deterministic, case_insensitive, alias_to FROM system.functions LIMIT 5;
|
2020-12-03 19:27:55 +00:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
```text
|
2023-09-18 15:26:54 +00:00
|
|
|
|
┌─name─────────────────────┬─is_aggregate─┬─is_deterministic─┬─case_insensitive─┬─alias_to─┐
|
|
|
|
|
│ BLAKE3 │ 0 │ 1 │ 0 │ │
|
|
|
|
|
│ sipHash128Reference │ 0 │ 1 │ 0 │ │
|
|
|
|
|
│ mapExtractKeyLike │ 0 │ 1 │ 0 │ │
|
|
|
|
|
│ sipHash128ReferenceKeyed │ 0 │ 1 │ 0 │ │
|
|
|
|
|
│ mapPartialSort │ 0 │ 1 │ 0 │ │
|
|
|
|
|
└──────────────────────────┴──────────────┴──────────────────┴──────────────────┴──────────┘
|
2020-12-03 19:27:55 +00:00
|
|
|
|
|
2023-09-18 15:26:54 +00:00
|
|
|
|
5 rows in set. Elapsed: 0.002 sec.
|
2021-06-24 12:47:02 +00:00
|
|
|
|
```
|