* Update order-by.md
Задокументировал параметры OFFSET и FETCH.
* Update prewhere.md
Поправляю битые ссылки.
* Update prewhere.md
Вернул изменения назад.
* Update order-by.md
Пытаюсь исправить битые ссылки.
* Update columns.md
Добавил position и compression_codec.
* Translation columns.md
Сделал перевод на русский язык.
* Delete changes order-by.md
Удалил изменения в файле order-by.
Co-authored-by: Dmitriy <sevirov@yandex-team.ru>
Only queries slower then the value of this setting will go to system.query_log,
i.e. something like slow_query_log in mysql.
v2: log_queries_min_time renamed to log_queries_min_query_duration_ms
v3: add current_database into system.query_thread_log
v4: rewrite test using current_database
v5: fix query_duration_ms in system.query_thread_log
* Update order-by.md
Задокументировал параметры OFFSET и FETCH.
* Update prewhere.md
Поправляю битые ссылки.
* Update prewhere.md
Вернул изменения назад.
* Update order-by.md
Пытаюсь исправить битые ссылки.
* Create parts_columns.md
Сделал описание системной таблицы parts_columns.
* Delete changes order-by.md
Удалил изменения файла, не относящегося к этой ветке.
* Update parts_columns.md
Исправил линки.
* Edit and translate russian parts_columns.md
Выполнил перевел на русский язык.
Co-authored-by: Dmitriy <sevirov@yandex-team.ru>
Contains error codes with number of times they have been triggered.
Columns:
- `name` ([String](../../sql-reference/data-types/string.md)) — name of the error (`errorCodeToName`).
- `code` ([Int32](../../sql-reference/data-types/int-uint.md)) — code number of the error.
- `value` ([UInt64](../../sql-reference/data-types/int-uint.md)) - number of times this error has been happened.
**Example**
``` sql
SELECT *
FROM system.errors
WHERE value > 0
ORDER BY code ASC
LIMIT 1
┌─name─────────────┬─code─┬─value─┐
│ CANNOT_OPEN_FILE │ 76 │ 1 │
└──────────────────┴──────┴───────┘
This patch adds errorCode() function that will return macro name by the
exception code, useful for analyzing query_log and similar.
Later some descriptions can be added.
v2: replace hana::map/fusion::vector with external script
v3:
- use binary cmake dir for .sh
- use jump table over suboptimal std::unordered_map (with very poor hash
function for int -- std::hash)
- cleanup errorCodeToName (drop extra templates and headers)
- rename errorCode -> errorCodeToName
- fix arcadia build (by not providing those helpers there)
- fix build on CI, by using CMAKE_CXX_COMPILER for parsing the file
* DOCSUP-2806: Add meta intro.
* DOCSUP-2806: Update meta intro.
* DOCSUP-2806: Fix meta.
* DOCSUP-2806: Add quotes for meta headers.
* DOCSUP-2806: Remove quotes from meta headers.
* DOCSUP-2806: Add meta headers.
* DOCSUP-2806: Fix quotes in meta headers.
* DOCSUP-2806: Update meta headers.
* DOCSUP-2806: Fix link to nowhere in EN.
* DOCSUP-2806: Fix link (settings to tune)
* DOCSUP-2806: Fix links.
* DOCSUP-2806:Fix links EN
* DOCSUP-2806: Fix build errors.
* DOCSUP-2806: Fix meta intro.
* DOCSUP-2806: Fix toc_priority in examples datasets TOC.
* DOCSUP-2806: Fix items order in toc.
* DOCSUP-2806: Fix order in toc.
* DOCSUP-2806: Fix toc order.
* DOCSUP-2806: Fix order in toc.
* DOCSUP-2806: Fix toc index in create
* DOCSUP-2806: Fix toc order in create.
Co-authored-by: romanzhukov <romanzhukov@yandex-team.ru>
Co-authored-by: alexey-milovidov <milovidov@yandex-team.ru>
* Edit and translate
Отредактировал английскую версию текстов документов и перевел изменения на русский язык.
* Update trace_log.md
Исправляю битые ссылки.
* Fixing broken links
Исправил битые ссылки.
* Fixing broken links
Поправил битую ссылку, добавив раздел в русскую версию.
Co-authored-by: Dmitriy <sevirov@yandex-team.ru>
* Update show.md
Update descriptions of show databases and show tables.
* Update show.md
Update 'identical query'.
* Update show.md
Внес поправки согласно комментариям.
* Update show.md
Внес поправки и перевел на русский язык.
* Update show.md
Внес мелкие поправки.
Co-authored-by: Dmitriy <sevirov@yandex-team.ru>
* Description of the iLike function
Добавил описание функции iLike и добавил оператор ILIKE.
* Update string-search-functions.md
Changed by comments.
* Update and translation ilike function and ILIKE operator..
Внес поправки в английскую версию и сделал перевод на русский язык.
Co-authored-by: Dmitriy <sevirov@yandex-team.ru>
* Create view.md
Создал файл view.md и сделал описание функции view.
* Update view.md
I made changes.
* Update view.md
Changed parametrs.
* Update view.md
Changed by comments.
* Create view.md
Перевел на русский язык.
* Update ru and en file view.md
Changed by comments.
* Update en and ru versions view function.
Changed links.
Co-authored-by: Dmitriy <sevirov@yandex-team.ru>
* Added two modificators into the table of supported modificators
* Clarified description of added modifiers and started to add info according to the template of function description
* fixed link
* fix link again
* edits
* Update docs/en/sql-reference/functions/date-time-functions.md
Co-authored-by: BayoNet <da-daos@yandex.ru>
* Update docs/en/sql-reference/functions/date-time-functions.md
Co-authored-by: BayoNet <da-daos@yandex.ru>
* Update docs/en/sql-reference/functions/date-time-functions.md
Co-authored-by: BayoNet <da-daos@yandex.ru>
* comments from ticket
* +
* +
* polishing
* Update docs/en/sql-reference/functions/date-time-functions.md
Co-authored-by: BayoNet <da-daos@yandex.ru>
* external link for understanding
* Перевод на русский
* Доработала русский перевод
* Причесала перевод
* Уточнение части перевода
* Шлифовка части перевода
Co-authored-by: BayoNet <da-daos@yandex.ru>
preallocation can be used only when we know number of rows, and for this
we need:
- source clickhouse
- no filtering (i.e. lack of <where>), since filtering can filter
too much rows and eventually it may allocate memory that will
never be used.
For sparse_hash the difference is quite significant, preallocated
sparse_hash hashtable allocates ~33% faster (7.5 seconds vs 5 seconds
for insert, and the difference is more significant for higher number of
elements):
$ ninja bench-sparse_hash-run
[1/1] cd /src/ch/hashtable-bench/.cmake && ...ch/hashtable-bench/.cmake/bench-sparse_hash
sparse_hash/insert: 7.574 <!--
sparse_hash/find : 2.14426
sparse_hash/maxrss: 174MiB
sparse_hash/time: 9710.51 msec (user+sys)
$ time ninja bench-sparse_hash-preallocate-run
[1/1] cd /src/ch/hashtable-bench/.cmake && ...-bench/.cmake/bench-sparse_hash-preallocate
sparse_hash/insert: 5.0522 <!--
sparse_hash/find : 2.14024
sparse_hash/maxrss: 174MiB
sparse_hash/time: 7192.06 msec (user+sys)
P.S. the difference for sparse_hashed dictionary with 4e9 elements
(uint64, uint16) is ~18% (4975.905 vs 4103.569 sec)
v2: do not reallocate the dictionary from the progress callback
Since this will access hashtable in parallel.
v3: drop PREALLOCATE() and do this only for source=clickhouse and empty
<where>
* for CSV and TSV input formats input_format_csv_enum_as_number,
input_format_tsv_enum_as_number settings should be enabled in order to
treat input value as enum id
* Docs for the extractAllGroupsHorizontal and extractAllGroupsVertical functions (English).
* Minor fixes (en).
* Misspelling fixed.
* English docs corrected and translated into Russian.
* English misspelling corrected.
Co-authored-by: Olga Revyakina <revolg@yandex.ru>
Co-authored-by: Olga Revyakina <revolg@yandex-team.ru>