提交 48ee13e2 编写于 作者: B BayoNet

Fixes of codeblock language and formatting.

上级 765da09e
......@@ -27,19 +27,19 @@ SELECT SearchPhrase, count() AS c FROM test.hits GROUP BY SearchPhrase WITH TOTA
"c": "8267016"
},
{
"SearchPhrase": "интерьер ванной комнаты",
"SearchPhrase": "bathroom interior design",
"c": "2166"
},
{
"SearchPhrase": "яндекс",
"SearchPhrase": "yandex",
"c": "1655"
},
{
"SearchPhrase": "весна 2014 мода",
"SearchPhrase": "spring 2014 fashion",
"c": "1549"
},
{
"SearchPhrase": "фриформ фото",
"SearchPhrase": "freeform photos",
"c": "1480"
}
],
......@@ -83,4 +83,3 @@ If the query contains GROUP BY, rows_before_limit_at_least is the exact number o
This format is only appropriate for outputting a query result, but not for parsing (retrieving data to insert in a table).
See also the JSONEachRow format.
......@@ -312,10 +312,10 @@ Data directory: `/var/lib/clickhouse/data/database/table/`,where `/var/lib/click
```bash
$ ls -l /var/lib/clickhouse/data/test/visits/
total 48
drwxrwxrwx 2 clickhouse clickhouse 20480 мая 13 02:58 20140317_20140323_2_2_0
drwxrwxrwx 2 clickhouse clickhouse 20480 мая 13 02:58 20140317_20140323_4_4_0
drwxrwxrwx 2 clickhouse clickhouse 4096 мая 13 02:55 detached
-rw-rw-rw- 1 clickhouse clickhouse 2 мая 13 02:58 increment.txt
drwxrwxrwx 2 clickhouse clickhouse 20480 may 13 02:58 20140317_20140323_2_2_0
drwxrwxrwx 2 clickhouse clickhouse 20480 may 13 02:58 20140317_20140323_4_4_0
drwxrwxrwx 2 clickhouse clickhouse 4096 may 13 02:55 detached
-rw-rw-rw- 1 clickhouse clickhouse 2 may 13 02:58 increment.txt
```
Here, `20140317_20140323_2_2_0` and ` 20140317_20140323_4_4_0` are the directories of data parts.
......@@ -1507,4 +1507,3 @@ The response contains the `kill_status` column, which can take the following val
3. The other values ​​explain why the query can't be stopped.
A test query (`TEST`) only checks the user's rights and displays a list of queries to stop.
......@@ -4,21 +4,18 @@ Contains information about external dictionaries.
Columns:
```text
name String – Dictionary name.
type String – Dictionary type: Flat, Hashed, Cache.
origin String – Path to the config file where the dictionary is described.attribute.
names Array(String) – Array of attribute names provided by the dictionary.
attribute.types Array(String) – Corresponding array of attribute types provided by the dictionary.
has_hierarchy UInt8 – Whether the dictionary is hierarchical.
bytes_allocated UInt64 – The amount of RAM used by the dictionary.
hit_rate Float64 – For cache dictionaries, the percent of usage for which the value was in the cache.
element_count UInt64 – The number of items stored in the dictionary.
load_factor Float64 – The filled percentage of the dictionary (for a hashed dictionary, it is the filled percentage of the hash table).
creation_time DateTime – Time spent for the creation or last successful reload of the dictionary.
last_exception String – Text of an error that occurred when creating or reloading the dictionary, if the dictionary couldn't be created.
source String – Text describing the data source for the dictionary.
```
- `name String` – Dictionary name.
- `type String` – Dictionary type: Flat, Hashed, Cache.
- `origin String` – Path to the config file where the dictionary is described.
- `attribute.names Array(String)` – Array of attribute names provided by the dictionary.
- `attribute.types Array(String)` – Corresponding array of attribute types provided by the dictionary.
- `has_hierarchy UInt8` – Whether the dictionary is hierarchical.
- `bytes_allocated UInt64` – The amount of RAM used by the dictionary.
- `hit_rate Float64` – For cache dictionaries, the percent of usage for which the value was in the cache.
- `element_count UInt64` – The number of items stored in the dictionary.
- `load_factor Float64` – The filled percentage of the dictionary (for a hashed dictionary, it is the filled percentage of the hash table).
- `creation_time DateTime` – Time spent for the creation or last successful reload of the dictionary.
- `last_exception String` – Text of an error that occurred when creating or reloading the dictionary, if the dictionary couldn't be created.
- `source String` – Text describing the data source for the dictionary.
Note that the amount of memory used by the dictionary is not proportional to the number of items stored in it. So for flat and cached dictionaries, all the memory cells are pre-assigned, regardless of how full the dictionary actually is.
......@@ -27,19 +27,19 @@ SELECT SearchPhrase, count() AS c FROM test.hits GROUP BY SearchPhrase WITH TOTA
"c": "8267016"
},
{
"SearchPhrase": "интерьер ванной комнаты",
"SearchPhrase": "bathroom interior design",
"c": "2166"
},
{
"SearchPhrase": "яндекс",
"SearchPhrase": "yandex",
"c": "1655"
},
{
"SearchPhrase": "весна 2014 мода",
"SearchPhrase": "spring 2014 fashion",
"c": "1549"
},
{
"SearchPhrase": "фриформ фото",
"SearchPhrase": "freeform photos",
"c": "1480"
}
],
......
......@@ -308,10 +308,10 @@ SELECT * FROM system.parts WHERE active
```bash
$ ls -l /var/lib/clickhouse/data/test/visits/
total 48
drwxrwxrwx 2 clickhouse clickhouse 20480 мая 13 02:58 20140317_20140323_2_2_0
drwxrwxrwx 2 clickhouse clickhouse 20480 мая 13 02:58 20140317_20140323_4_4_0
drwxrwxrwx 2 clickhouse clickhouse 4096 мая 13 02:55 detached
-rw-rw-rw- 1 clickhouse clickhouse 2 мая 13 02:58 increment.txt
drwxrwxrwx 2 clickhouse clickhouse 20480 may 13 02:58 20140317_20140323_2_2_0
drwxrwxrwx 2 clickhouse clickhouse 20480 may 13 02:58 20140317_20140323_4_4_0
drwxrwxrwx 2 clickhouse clickhouse 4096 may 13 02:55 detached
-rw-rw-rw- 1 clickhouse clickhouse 2 may 13 02:58 increment.txt
```
Здесь `20140317_20140323_2_2_0`, `20140317_20140323_4_4_0` - директории кусков.
......
......@@ -4,20 +4,19 @@
Столбцы:
```text
name String - имя словаря
type String - тип словаря: Flat, Hashed, Cache
origin String - путь к конфигурационному файлу, в котором описан словарь
attribute.names Array(String) - массив имён атрибутов, предоставляемых словарём
attribute.types Array(String) - соответствующий массив типов атрибутов, предоставляемых словарём
has_hierarchy UInt8 - является ли словарь иерархическим
bytes_allocated UInt64 - количество оперативной памяти, которое использует словарь
hit_rate Float64 - для cache-словарей - доля использований, для которых значение было в кэше
element_count UInt64 - количество хранящихся в словаре элементов
load_factor Float64 - доля заполненности словаря (для hashed словаря - доля заполнения хэш-таблицы)
creation_time DateTime - время создания или последней успешной перезагрузки словаря
last_exception String - текст ошибки, возникшей при создании или перезагрузке словаря, если словарь не удалось создать
source String - текст, описывающий источник данных для словаря
```
- `name String` — Имя словаря.
- `type String` — Тип словаря: Flat, Hashed, Cache.
- `origin String` — Путь к конфигурационному файлу, в котором описан словарь.
- `attribute.names Array(String)` — Массив имён атрибутов, предоставляемых словарём.
- `attribute.types Array(String)` — Соответствующий массив типов атрибутов, предоставляемых словарём.
- `has_hierarchy UInt8` — Является ли словарь иерархическим.
- `bytes_allocated UInt64` — Количество оперативной памяти, которое использует словарь.
- `hit_rate Float64` — Для cache-словарей - доля использований, для которых значение было в кэше.
- `element_count UInt64` — Количество хранящихся в словаре элементов.
- `load_factor Float64` — Доля заполненности словаря (для hashed словаря - доля заполнения хэш-таблицы).
- `creation_time DateTime` — Время создания или последней успешной перезагрузки словаря.
- `last_exception String` — Текст ошибки, возникшей при создании или перезагрузке словаря, если словарь не удалось создать.
- `source String` - Текст, описывающий источник данных для словаря.
Заметим, что количество оперативной памяти, которое использует словарь, не является пропорциональным количеству элементов, хранящихся в словаре. Так, для flat и cached словарей, все ячейки памяти выделяются заранее, независимо от реальной заполненности словаря.
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册