Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOCSUP-6144: Edit and translate PR to Russian #19780

Merged
merged 35 commits into from
Mar 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
d1c567b
DOCSUP-6144: Add PR translation.
ka1bi4 Jan 28, 2021
49e359a
Update index.md
ka1bi4 Feb 8, 2021
9668649
Create index.md
ka1bi4 Feb 8, 2021
1ec04bd
Update all.md
ka1bi4 Feb 8, 2021
199f577
Update index.md
ka1bi4 Feb 8, 2021
a972389
Update docs/ru/sql-reference/statements/select/all.md
ka1bi4 Feb 14, 2021
054d6c1
Update docs/ru/operations/system-tables/index.md
ka1bi4 Feb 14, 2021
898863e
Update docs/ru/operations/system-tables/index.md
ka1bi4 Feb 14, 2021
52b2760
Update docs/ru/operations/system-tables/index.md
ka1bi4 Feb 14, 2021
07eb4e7
Update docs/ru/operations/system-tables/index.md
ka1bi4 Feb 14, 2021
925c65a
DOCSUP-6144: Fix PR comments and ALL clause RU.
ka1bi4 Feb 17, 2021
a75f67a
Update docs/ru/operations/system-tables/index.md
ka1bi4 Feb 19, 2021
229d40b
Update docs/ru/operations/system-tables/index.md
ka1bi4 Feb 19, 2021
8da1097
Update docs/ru/operations/system-tables/index.md
ka1bi4 Feb 19, 2021
6f380fa
Update docs/ru/operations/system-tables/index.md
ka1bi4 Feb 19, 2021
5d1a049
Update docs/en/operations/system-tables/index.md
ka1bi4 Feb 19, 2021
c508204
Update docs/ru/operations/system-tables/index.md
ka1bi4 Feb 19, 2021
c8a7a1f
Update docs/ru/operations/system-tables/index.md
ka1bi4 Feb 19, 2021
9030c6b
Update docs/ru/sql-reference/statements/select/all.md
ka1bi4 Feb 22, 2021
8acbf6c
Update docs/ru/sql-reference/statements/select/all.md
ka1bi4 Feb 22, 2021
004e5e7
Update docs/ru/sql-reference/statements/select/all.md
ka1bi4 Feb 22, 2021
45c6fd4
DOCSUP-6144: Fix PR comments.
ka1bi4 Feb 22, 2021
207c594
Update docs/ru/operations/system-tables/index.md
ka1bi4 Feb 23, 2021
f9e94a2
Update docs/ru/operations/system-tables/index.md
ka1bi4 Feb 23, 2021
977c353
Update docs/ru/operations/system-tables/index.md
ka1bi4 Feb 23, 2021
79b7524
Update docs/ru/operations/system-tables/index.md
ka1bi4 Feb 23, 2021
bc2e250
Update docs/ru/operations/system-tables/index.md
ka1bi4 Feb 23, 2021
d8a5014
Update docs/ru/sql-reference/statements/select/all.md
ka1bi4 Feb 23, 2021
bd3a6e5
Merge branch 'master' into romanzhukov-DOCSUP-6144-PR-edit-translate
ka1bi4 Feb 23, 2021
fb2f13e
Merge branch 'master' into romanzhukov-DOCSUP-6144-PR-edit-translate
ka1bi4 Feb 23, 2021
2fb32d7
DOCSUP-6144: Fix PR comments.
ka1bi4 Feb 23, 2021
9ba69e1
Update docs/ru/operations/system-tables/index.md
ka1bi4 Feb 24, 2021
d1b8af4
Update docs/ru/operations/system-tables/index.md
ka1bi4 Feb 24, 2021
fd2f968
Update docs/en/sql-reference/statements/select/all.md
ka1bi4 Feb 24, 2021
2d72d7a
Apply suggestions from code review
vdimir Feb 26, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/en/operations/system-tables/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ System tables:

Most of system tables store their data in RAM. A ClickHouse server creates such system tables at the start.

Unlike other system tables, the system log tables [metric_log](../../operations/system-tables/metric_log.md), [query_log](../../operations/system-tables/query_log.md), [query_thread_log](../../operations/system-tables/query_thread_log.md), [trace_log](../../operations/system-tables/trace_log.md), [part_log](../../operations/system-tables/part_log.md), crash_log and [text_log](../../operations/system-tables/text_log.md) are served by [MergeTree](../../engines/table-engines/mergetree-family/mergetree.md) table engine and store their data in a storage filesystem by default. If you remove a table from a filesystem, the ClickHouse server creates the empty one again at the time of the next data writing. If system table schema changed in a new release, then ClickHouse renames the current table and creates a new one.
Unlike other system tables, the system log tables [metric_log](../../operations/system-tables/metric_log.md), [query_log](../../operations/system-tables/query_log.md), [query_thread_log](../../operations/system-tables/query_thread_log.md), [trace_log](../../operations/system-tables/trace_log.md), [part_log](../../operations/system-tables/part_log.md), [crash_log](../../operations/system-tables/crash-log.md) and [text_log](../../operations/system-tables/text_log.md) are served by [MergeTree](../../engines/table-engines/mergetree-family/mergetree.md) table engine and store their data in a filesystem by default. If you remove a table from a filesystem, the ClickHouse server creates the empty one again at the time of the next data writing. If system table schema changed in a new release, then ClickHouse renames the current table and creates a new one.

System log tables can be customized by creating a config file with the same name as the table under `/etc/clickhouse-server/config.d/`, or setting corresponding elements in `/etc/clickhouse-server/config.xml`. Elements can be customized are:

Expand All @@ -33,7 +33,7 @@ System log tables can be customized by creating a config file with the same name

An example:

```
```xml
<yandex>
<query_log>
<database>system</database>
Expand Down
6 changes: 3 additions & 3 deletions docs/en/sql-reference/statements/select/all.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ toc_title: ALL

# ALL Clause {#select-all}

`SELECT ALL` is identical to `SELECT` without `DISTINCT`.
If there are multiple matching rows in the table, then `ALL` returns all of them. `SELECT ALL` is identical to `SELECT` without `DISTINCT`. If both `ALL` and `DISTINCT` specified, exception will be thrown.

- If `ALL` specified, ignore it.
- If both `ALL` and `DISTINCT` specified, exception will be thrown.

`ALL` can also be specified inside aggregate function with the same effect(noop), for instance:

Expand All @@ -19,3 +17,5 @@ equals to
```sql
SELECT sum(number) FROM numbers(10);
```

[Original article](https://clickhouse.tech/docs/en/sql-reference/statements/select/all) <!--hide-->
45 changes: 37 additions & 8 deletions docs/ru/operations/system-tables/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,54 @@ toc_title: "\u0421\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0435\u0020\u0442\u

Системные таблицы содержат информацию о:

- Состоянии сервера, процессов и окружении.
- Внутренних процессах сервера.
- состоянии сервера, процессов и окружении.
- внутренних процессах сервера.

Системные таблицы:

- Находятся в базе данных `system`.
- Доступны только для чтения данных.
- Не могут быть удалены или изменены, но их можно отсоединить.
- находятся в базе данных `system`.
- доступны только для чтения данных.
- не могут быть удалены или изменены, но их можно отсоединить.

Системные таблицы `metric_log`, `query_log`, `query_thread_log`, `trace_log` системные таблицы хранят данные в файловой системе. Остальные системные таблицы хранят свои данные в оперативной памяти. Сервер ClickHouse создает такие системные таблицы при запуске.
Большинство системных таблиц хранят свои данные в оперативной памяти. Сервер ClickHouse создает эти системные таблицы при старте.

В отличие от других системных таблиц, таблицы с системными логами [metric_log](../../operations/system-tables/metric_log.md), [query_log](../../operations/system-tables/query_log.md), [query_thread_log](../../operations/system-tables/query_thread_log.md), [trace_log](../../operations/system-tables/trace_log.md), [part_log](../../operations/system-tables/part_log.md), [crash_log](../../operations/system-tables/crash-log.md) и [text_log](../../operations/system-tables/text_log.md) используют движок таблиц [MergeTree](../../engines/table-engines/mergetree-family/mergetree.md) и по умолчанию хранят свои данные в файловой системе. Если удалить таблицу из файловой системы, сервер ClickHouse снова создаст пустую таблицу во время следующей записи данных. Если схема системной таблицы изменилась в новом релизе, то ClickHouse переименует текущую таблицу и создаст новую.

Таблицы с системными логами `log` можно настроить, создав конфигурационный файл с тем же именем, что и таблица в разделе `/etc/clickhouse-server/config.d/`, или указав соответствующие элементы в `/etc/clickhouse-server/config.xml`. Настраиваться могут следующие элементы:

- `database` — база данных, к которой принадлежит системная таблица. Эта опция на текущий момент устарела. Все системные таблицы находятся в базе данных `system`.
- `table` — таблица для добавления данных.
- `partition_by` — [ключ партиционирования](../../engines/table-engines/mergetree-family/custom-partitioning-key.md).
- `ttl` — [время жизни](../../sql-reference/statements/alter/ttl.md) таблицы.
- `flush_interval_milliseconds` — интервал сброса данных на диск, в миллисекундах.
- `engine` — полное имя движка (начиная с `ENGINE =` ) с параметрами. Эта опция противоречит `partition_by` и `ttl`. Если указать оба параметра вместе, сервер вернет ошибку и завершит работу.

Пример:

```xml
<yandex>
<query_log>
<database>system</database>
<table>query_log</table>
<partition_by>toYYYYMM(event_date)</partition_by>
<ttl>event_date + INTERVAL 30 DAY DELETE</ttl>
<!--
<engine>ENGINE = MergeTree PARTITION BY toYYYYMM(event_date) ORDER BY (event_date, event_time) SETTINGS index_granularity = 1024</engine>
-->
<flush_interval_milliseconds>7500</flush_interval_milliseconds>
</query_log>
</yandex>
```

По умолчанию размер таблицы не ограничен. Управлять размером таблицы можно используя [TTL](../../sql-reference/statements/alter/ttl.md#manipuliatsii-s-ttl-tablitsy) для удаления устаревших записей журнала. Также вы можете использовать функцию партиционирования для таблиц `MergeTree`.

### Источники системных показателей

Для сбора системных показателей сервер ClickHouse использует:

- Возможности `CAP_NET_ADMIN`.
- возможности `CAP_NET_ADMIN`.
- [procfs](https://ru.wikipedia.org/wiki/Procfs) (только Linux).

**procfs**

Если для сервера ClickHouse не включено `CAP_NET_ADMIN`, он пытается обратиться к `ProcfsMetricsProvider`. `ProcfsMetricsProvider` позволяет собирать системные показатели для каждого запроса (для CPU и I/O).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ SOURCE(CLICKHOUSE(
или

``` sql
SOURCE(MONGO(
SOURCE(MONGODB(
host 'localhost'
port 27017
user ''
Expand Down
22 changes: 22 additions & 0 deletions docs/ru/sql-reference/statements/select/all.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
toc_title: ALL
---

# Секция ALL {#select-all}

Если в таблице несколько совпадающих строк, то `ALL` возвращает все из них. Поведение запроса `SELECT ALL` точно такое же, как и `SELECT` без аргумента `DISTINCT`. Если указаны оба аргумента: `ALL` и `DISTINCT`, функция вернет исключение.


`ALL` может быть указан внутри агрегатной функции, например, результат выполнения запроса:

```sql
SELECT sum(ALL number) FROM numbers(10);
```

равен результату выполнения запроса:

```sql
SELECT sum(number) FROM numbers(10);
```

[Оригинальная статья](https://clickhouse.tech/docs/ru/sql-reference/statements/select/all) <!--hide-->