Commit Graph

7499 Commits

Author SHA1 Message Date
Alina Terekhova
fd03f3027b Implementation details 2021-06-21 12:01:23 +02:00
Alina Terekhova
ee82928984 Structure fix 2021-06-21 11:48:24 +02:00
Pavel Kruglov
604080239c Add tests for Parquet 2021-06-21 12:23:24 +03:00
Anton Popov
d8b6f15ef4
Merge pull request #23027 from azat/distributed-push-down-limit
Add ability to push down LIMIT for distributed queries
2021-06-20 23:08:50 +03:00
Alina Terekhova
d09ad74c12 Tiret fix 2021-06-20 14:37:28 +02:00
Alina Terekhova
11d350e16d UInt link fixes + small edits 2021-06-20 14:23:18 +02:00
meoww-bot
7e0e182608
fix wrong link 2021-06-20 18:13:16 +08:00
Mike Kot
4c391f8e99
SYSTEM RESTORE REPLICA replica [ON CLUSTER cluster] (#13652)
* initial commit: add setting and stub

* typo

* added test stub

* fix

* wip merging new integration test and code proto

* adding steps interpreters

* adding firstly proposed solution (moving parts etc)

* added checking zookeeper path existence

* fixing the include

* fixing and sorting includes

* fixing outdated struct

* fix the name

* added ast ptr as level of indirection

* fix ref

* updating the changes

* working on test stub

* fix iterator -> reference

* revert rocksdb submodule update

* fixed show privileges test

* updated the test stub

* replaced rand() with thread_local_rng(), updated the tests

updated the test

fixed test config path

test fix

removed error messages

fixed the test

updated the test

fixed string literal

fixed literal

typo: =

* fixed the empty replica error message

* updated the test and the code with logs

* updated the possible test cases, updated

* added the code/test milestone comments

* updated the test (added more testcases)

* replaced native assert with CH one

* individual replicas recursive delete fix

* updated the AS db.name AST

* two small logging fixes

* manually generated AST fixes

* Updated the test, added the possible algo change

* Some thoughts about optimizing the solution:

ALTER MOVE PARTITION .. TO TABLE -> move to detached/ + ALTER ... ATTACH

* fix

* Removed the replica sync in test as it's invalid

* Some test tweaks

* tmp

* Rewrote the algo by using the executeQuery instead of

hand-crafting the ASTPtr.

Two questions still active.

* tr: logging active parts

* Extracted the parts moving algo into a separate helper function

* Fixed the test data and the queries slightly

* Replaced query to system.parts to direct invocation,

started building the test that breaks on various parts.

* Added the case for tables when at least one replica is alive

* Updated the test to test replicas restoration by detaching/attaching

* Altered the test to check restoration without replica restart

* Added the tables swap in the start if the server failed last time

* Hotfix when only /replicas/replica... path was deleted

* Restore ZK paths while creating a replicated MergeTree table

* Updated the docs, fixed the algo for individual replicas restoration case

* Initial parts table storage fix, tests sync fix

* Reverted individual replica restoration to general algo

* Slightly optimised getDataParts

* Trying another solution with parts detaching

* Rewrote algo without any steps, added ON CLUSTER support

* Attaching parts from other replica on restoration

* Getting part checksums from ZK

* Removed ON CLUSTER, finished working solution

* Multiple small changes after review

* Fixing parallel test

* Supporting rewritten form on cluster

* Test fix

* Moar logging

* Using source replica as checksum provider

* improve test, remove some code from parser

* Trying solution with move to detached + forget

* Moving all parts (not only Committed) to detached

* Edited docs for RESTORE REPLICA

* Re-merging

* minor fixes

Co-authored-by: Alexander Tokmakov <avtokmakov@yandex-team.ru>
2021-06-20 11:24:43 +03:00
Dmitriy
89e7857012 Create s3Cluster.md
Сделал грязный черновик описания табличной функции s3Cluster. Буду корректировать примеры, которые не работают.
2021-06-20 01:25:11 +03:00
meoww-bot
c56147c98e
Create zh translation for s3.md 2021-06-20 01:35:40 +08:00
meoww-bot
1510a8a013
Create zh translation for rabbitmq.md 2021-06-20 01:24:09 +08:00
Dmitriy
ccad32fe96 Translate to Russian
Выполнил перевод на русский язык.
2021-06-18 21:20:53 +03:00
Alina Terekhova
fdc729764b Edits 2021-06-18 19:53:52 +02:00
Vladimir
27f0fdb539
Merge pull request #25292 from Tiaonmmn/patch-1
Update formats.md
2021-06-18 17:46:02 +03:00
meoww-bot
3173b285fd
Add zh translation for s3.md 2021-06-18 21:34:14 +08:00
Mikhail
5a2b01328f Перевод 2021-06-18 13:41:28 +03:00
Maksim Kita
2792f302fd
Merge pull request #25294 from gyuton/gyuton-DOCSUP-10300-Edit-and-translate-to-Russian
DOCSUP-10300: Edited and translated to Russian
2021-06-18 10:11:10 +03:00
Maksim Kita
6c0dfae880
Update external-dicts-dict-sources.md 2021-06-18 10:10:52 +03:00
George
9f36eb6210 Fixes 2021-06-18 05:13:38 +03:00
Maksim Kita
b34b66c55d
Merge pull request #25394 from ClickHouse/function-bit-position-to-array-merge
Merging #23843
2021-06-18 01:31:33 +03:00
George
8c97247fe1 unrelated fix 2021-06-18 00:11:52 +03:00
Dmitriy
d69790945d Add the fail_on_connection_loss configuration parameter
Добавил описание параметра fail_on_connection_loss.
2021-06-17 23:29:01 +03:00
alexey-milovidov
afad95194d
Merge pull request #25403 from presto53/master
Update change storage policy doc
2021-06-17 21:23:20 +03:00
meoww-bot
a62957dba6
Add zh translation for embedded-rocksdb.md 2021-06-18 00:44:14 +08:00
meoww-bot
3c0a390d37
Create zh translation for postgresql.md 2021-06-18 00:31:58 +08:00
Maksim Kita
52dac4caca
Merge pull request #25238 from meoww-bot/patch-4
Create zh translation for postgresql.md
2021-06-17 17:26:53 +03:00
meoww-bot
1b1ca0d5df
Comment two links to references which not exist 2021-06-17 19:38:38 +08:00
Kruglov Pavel
031a12ec3f
Merge pull request #25140 from sevirov/sevirov-DOCSUP-10019-support_array_in_parquet_orc_arrow
DOCSUP-10019: Support array in Parquet, ORC and Arrow formats
2021-06-17 12:32:32 +03:00
Maksim Kita
bc86b2b738 Updated function bitPositionsToArray before merge 2021-06-17 12:20:53 +03:00
Alina Terekhova
dd6f93b2a7 Small corrections 2021-06-17 11:02:06 +02:00
presto53
e02e587557
Update change storage policy en doc 2021-06-17 11:50:58 +03:00
presto53
5f4ac309ce
Update change storage policy doc 2021-06-17 11:46:42 +03:00
Vladimir
7a56ab8b1d
Merge pull request #25299 from mga-chka/equals_op_in_sequence_functions 2021-06-17 11:45:04 +03:00
Maksim Kita
5b2380d541
Merge branch 'function-bit-position-to-array-merge' into feature-function-bitpositionToArray 2021-06-17 10:23:41 +03:00
George
0a959f8707 small fixes 2021-06-17 03:55:24 +03:00
George
80cf037f5c More work 2021-06-17 03:42:08 +03:00
Alina Terekhova
65ec6bce92
Comma added back 2021-06-17 02:31:38 +02:00
Alina Terekhova
b61346a708 Examples fix + anchor fix 2021-06-17 02:16:34 +02:00
Alina Terekhova
06261466e4 First edits 2021-06-17 01:34:59 +02:00
Maksim Kita
7b7ce0f741 Added documentation 2021-06-16 21:33:44 +03:00
Dmitriy
dd0fde544c Update formats.md
Внес небольшие правки.
2021-06-16 20:22:11 +03:00
sevirov
43ddc0189d
Update docs/ru/interfaces/formats.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-06-16 20:16:41 +03:00
sevirov
e4972c9167
Update docs/ru/interfaces/formats.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-06-16 20:16:00 +03:00
sevirov
7c0b3c5898
Update docs/ru/interfaces/formats.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-06-16 20:15:07 +03:00
sevirov
5c509fa9b7
Update docs/ru/interfaces/formats.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-06-16 20:14:53 +03:00
sevirov
23807a87b2
Update docs/ru/interfaces/formats.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-06-16 20:14:06 +03:00
sevirov
a796c98272
Update docs/en/interfaces/formats.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-06-16 20:13:52 +03:00
sevirov
9b96f4c9b0
Update docs/ru/interfaces/formats.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-06-16 20:13:33 +03:00
sevirov
c765e39313
Update docs/en/interfaces/formats.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-06-16 20:13:12 +03:00
sevirov
6a5abac809
Update docs/ru/interfaces/formats.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-06-16 20:12:30 +03:00
sevirov
b9f50811ea
Update docs/en/interfaces/formats.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-06-16 20:11:34 +03:00
George
ce02592219 Small fixes 2021-06-16 18:08:47 +03:00
gyuton
dc46d90f4f
Apply suggestions from code review
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-06-16 18:03:11 +03:00
George
864b35533e small fixes 2021-06-16 13:53:09 +03:00
gyuton
f877c7ee51
Apply suggestions from code review
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-06-16 13:47:46 +03:00
Evgeniia Sudarikova
eef8f36741 edited link 2021-06-15 22:54:02 +03:00
Evgeniia Sudarikova
40101cbf82 edited EN, added RU 2021-06-15 22:29:11 +03:00
Dmitriy
35f4a8985d Translate to Russian
Перевел на русский язык.
2021-06-15 20:56:17 +03:00
christophe.kalenzaga
2dae69a40b add == operators in sequence*() aggregate fuctions 2021-06-15 18:58:20 +02:00
George
b8c20f201b Small update 2021-06-15 18:11:11 +03:00
George
2f596fba05 Minor improvements 2021-06-15 17:57:49 +03:00
George
2b7547cb13 Small update 2021-06-15 17:52:23 +03:00
George
69f571d0ce Typo 2021-06-15 17:46:00 +03:00
George
3ee64dc629 Added translation 2021-06-15 17:39:31 +03:00
George
c50eb78819 Updated EN version 2021-06-15 17:38:08 +03:00
gyuton
70b8758bde
Apply suggestions from code review
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-06-15 17:05:43 +03:00
George
81b1ef1b0c Small fixes 2021-06-15 16:58:42 +03:00
George
30f3eacfe7 First draft 2021-06-15 16:32:54 +03:00
Vladimir
be11ff0820
Merge pull request #25236 from kirillikoff/kirillikoff-DOCSUP-9861 2021-06-15 15:49:08 +03:00
AnaUvarova
68b20a934a
DOCSUP-6543: Edit and translate Show Clusters and MergeTree (#24130)
* +

* ready for review

* Update docs/ru/sql-reference/statements/show.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Update docs/ru/operations/settings/merge-tree-settings.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Update docs/ru/operations/settings/merge-tree-settings.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Update docs/ru/operations/settings/merge-tree-settings.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Update docs/ru/operations/settings/merge-tree-settings.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Update docs/ru/operations/settings/merge-tree-settings.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Update docs/ru/operations/settings/merge-tree-settings.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Update docs/ru/operations/settings/merge-tree-settings.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Update docs/ru/operations/settings/merge-tree-settings.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Update docs/ru/operations/settings/merge-tree-settings.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Update docs/ru/operations/settings/merge-tree-settings.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Update docs/ru/operations/settings/merge-tree-settings.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Update docs/ru/operations/settings/merge-tree-settings.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Update docs/ru/operations/settings/merge-tree-settings.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Update docs/ru/operations/settings/merge-tree-settings.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Update docs/ru/operations/settings/merge-tree-settings.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Update docs/ru/operations/settings/merge-tree-settings.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Update docs/ru/operations/settings/merge-tree-settings.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Update docs/ru/operations/settings/merge-tree-settings.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Update merge-tree-settings.md

* Update docs/ru/operations/settings/merge-tree-settings.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Update merge-tree-settings.md

* Update docs/ru/operations/settings/merge-tree-settings.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Update docs/ru/operations/settings/merge-tree-settings.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>

* Update merge-tree-settings.md

* about fsync

* Update merge-tree-settings.md

* Update merge-tree-settings.md

* Update merge-tree-settings.md

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-06-15 15:21:44 +03:00
Tiaonmmn
c5d7cdd983
Update formats.md
A lot of modifications on Chinese translation.
2021-06-15 19:09:36 +08:00
kirillikoff
1a79540457
Update index.md 2021-06-15 13:01:53 +03:00
kirillikoff
e09a09f775
Update index.md 2021-06-15 13:01:20 +03:00
Vladimir
cf2c3ee0d8
Update example for date and time operator
Co-authored-by: Nikolai Kochetov <KochetovNicolai@users.noreply.github.com>
2021-06-15 12:58:51 +03:00
Vladimir
1f88cf3ccf
Merge pull request #25244 from otrazhenia/evgsudarikova-DOCSUP-10025 2021-06-15 12:01:38 +03:00
Владислав Тихонов
29f81b235f
Fixed typos. 2021-06-15 11:09:06 +03:00
Vladimir
09ba2af5dc
Update docs/ru/sql-reference/operators/index.md 2021-06-15 10:39:04 +03:00
Vladimir
a43c5c0a7f
Apply suggestions from code review 2021-06-15 10:27:38 +03:00
alexey-milovidov
7032998108
Merge pull request #25270 from gyuton/gyuton-DOCSUP-10298-Fix-and-update-documentation
DOCSUP-10298: Fixed and updated documentation
2021-06-15 03:04:24 +03:00
Mikhail
d08e6ebc80 Added setting doc 2021-06-15 00:16:30 +03:00
kirillikoff
8531aef8bd
Update docs/en/sql-reference/operators/index.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-06-14 23:06:04 +03:00
kirillikoff
ac86db5ef4
Update docs/ru/sql-reference/operators/index.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-06-14 23:05:53 +03:00
kirillikoff
e7bd849f96
Update docs/ru/sql-reference/operators/index.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-06-14 23:05:46 +03:00
kirillikoff
a910a15115
Update docs/en/sql-reference/operators/index.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-06-14 23:05:37 +03:00
bharatnc
4487745dde h3ToGeo - docs 2021-06-14 11:38:38 -07:00
gyuton
67b7b6fec9
Small fix 2021-06-14 20:36:28 +03:00
Tatiana Kirillova
8a94e9610e Russian translation 2021-06-14 20:19:28 +03:00
George
a590a9035b Updated client-libraries.md 2021-06-14 20:00:24 +03:00
George
77e048977b updated settings.md 2021-06-14 19:02:04 +03:00
George
39475e72dd updated quantiletdigestweighted.md 2021-06-14 18:50:27 +03:00
George
190b443518 First draft 2021-06-14 18:34:56 +03:00
Nickita
ee7169e547 fix typos in docs 2021-06-14 16:29:07 +03:00
Evgeniia Sudarikova
9e11daa8c6 minor changes 2021-06-14 15:54:27 +03:00
Evgeniia Sudarikova
414bde9f2a edited after review and translated notes in RU examples 2021-06-14 15:39:53 +03:00
Evgeniia Sudarikova
dc5052a79f edited RU 2021-06-13 16:43:23 +03:00
Evgeniia Sudarikova
8e763d7fb2 added RU 2021-06-13 16:25:00 +03:00
Evgeniia Sudarikova
8ddb7f7fbf more edits in EN 2021-06-13 15:51:26 +03:00
Evgeniia Sudarikova
6d2c062859 edited EN 2021-06-13 15:20:48 +03:00
Kseniia Sumarokova
bc8be8bc99
Merge pull request #25234 from meoww-bot/patch-1
Update odbc.md
2021-06-13 12:19:09 +03:00
Maksim Kita
da2c8c2f46
Merge pull request #25237 from meoww-bot/patch-3
Create zh translation for mongodb.md
2021-06-13 12:10:18 +03:00
meoww-bot
6ce0c1ef3c
Create zh translation for postgresql.md 2021-06-13 11:16:34 +08:00
Maksim Kita
de115cfc8c
Merge pull request #25198 from kitaisreal/dictionary-added-update-field-documentation
Dictionary added update field documentation
2021-06-13 01:22:26 +03:00
Vladimir
494107e437
Merge pull request #25130 from gyuton/gyuton-DOCSUP-8425-Document-max_distributed_depth-setting 2021-06-12 22:17:04 +03:00
meoww-bot
16340b8d8e
Create mongodb.md 2021-06-13 02:07:29 +08:00
meoww-bot
0952c94abd
Update index.md 2021-06-13 01:47:01 +08:00
Tatiana Kirillova
76bb1a569f Description for another interval record 2021-06-12 20:46:26 +03:00
meoww-bot
165e9da464
Update odbc.md 2021-06-13 01:20:29 +08:00
Maksim Kita
b16e801fb4 Added update_lag option documentation 2021-06-12 18:42:00 +03:00
alexey-milovidov
2377a802bc
Merge pull request #25196 from kitaisreal/added-executable-pool-documentation
Added ExecutablePool documentation
2021-06-12 18:01:46 +03:00
Maksim Kita
314fe86565 Updated documentationg 2021-06-12 13:56:53 +03:00
alexey-milovidov
0e3556ba1f
Merge pull request #25201 from zhicwu/jdbc-bridge-doc
Update JDBC bridge related docs
2021-06-11 21:58:32 +03:00
Zhichun Wu
f1417adfaf Update JDBC bridge related docs 2021-06-11 17:37:38 +08:00
Maksim Kita
8762e40907 Dictionary added update field documentation 2021-06-11 11:52:19 +03:00
Maksim Kita
7dfe403ac0
Merge pull request #25192 from Slach/docs_add_sumKahan
add sumKahan details
2021-06-11 11:37:39 +03:00
Kseniia Sumarokova
e10eea3937
Merge pull request #25193 from muzzlerator/patch-1
Update s3.md
2021-06-11 11:31:36 +03:00
Maksim Kita
12982da130 Added ExecutablePool documentation 2021-06-11 11:28:49 +03:00
Kseniia Sumarokova
9eff93bbcd
Merge pull request #25172 from meoww-bot/patch-2
Update hdfs.md to make it more human readable
2021-06-11 10:29:08 +03:00
muzzlerator
d88bcf52a7
Update s3.md
Missed keyword "FUNCTION"
2021-06-11 09:41:47 +05:00
Slach
0332558a5f fix sumKahan mention from https://github.com/ClickHouse/ClickHouse/pull/25159#issuecomment-858588899
Signed-off-by: Slach <bloodjazman@gmail.com>
2021-06-11 08:46:56 +05:00
alexey-milovidov
a056fadefd
Update sumcount.md 2021-06-11 06:24:34 +03:00
meoww-bot
d77d43301d
fix wrong path 2021-06-11 10:04:42 +08:00
meoww-bot
be586ad88c Merge branch 'ClickHouse:master' into patch-2 2021-06-11 09:54:31 +08:00
George
2613aee856 Some changes 2021-06-11 01:56:32 +03:00
meoww-bot
60633bca69
fix wrong path 2021-06-11 01:41:05 +08:00
Vitaly Baranov
4989f16ff9
Merge pull request #24458 from sevirov/sevirov-DOCSUP-9599-edit_and_translate_to_russian_ldap
DOCSUP-9599: Edit and translate to Russian (LDAP)
2021-06-10 20:35:29 +03:00
Dmitriy
296d18ed2a Fix the type matching tables
Поправил таблицы соответствия типов.
2021-06-10 20:22:19 +03:00
meoww-bot
8fda6975e1
Update hdfs.md to make it more human readable 2021-06-10 23:59:05 +08:00
gyuton
9297a47f36
typo 2021-06-10 18:22:17 +03:00
Kseniia Sumarokova
993870c951
Merge pull request #25132 from gyuton/gyuton-DOCSUP-10156-Fix-documentation-for-topKWeighted-function
DOCSUP-10156: Fixed documentation for topKWeighted function
2021-06-10 15:37:38 +03:00
gyuton
013a5ca6d5
Update docs/ru/sql-reference/aggregate-functions/reference/topkweighted.md
Co-authored-by: Anna <42538400+adevyatova@users.noreply.github.com>
2021-06-10 15:11:07 +03:00
George
5af2132408 some fixes 2021-06-10 14:34:36 +03:00
Slach
1857fb73df add sumKahan to RU and EN documentation
Signed-off-by: Slach <bloodjazman@gmail.com>
2021-06-10 10:31:41 +05:00
alexey-milovidov
f1266a6876
Update install.md 2021-06-10 03:04:10 +03:00
Alexey Milovidov
7a730537cb Document single binary install 2021-06-10 02:31:32 +03:00
George
6135c59d36 fixes 2021-06-10 00:13:31 +03:00
Dmitriy
3ba808a740 Update formats.md
Добавил таблицу соответствия типов для Arrow.
2021-06-09 21:19:34 +03:00
gyuton
938f41c5a5
Apply suggestions from code review
Co-authored-by: Anna <42538400+adevyatova@users.noreply.github.com>
2021-06-09 20:18:37 +03:00
George
92e2802e53 Fixed docs 2021-06-09 18:22:21 +03:00
George
07a78d53c1 translation fix 2021-06-09 17:08:44 +03:00
George
ee976cd739 First draft 2021-06-09 16:57:07 +03:00
Azat Khuzhin
18e8f0eb5e Add ability to push down LIMIT for distributed queries
This way the remote nodes will not need to send all the rows, so this
will decrease network io and also this will make queries w/
optimize_aggregation_in_order=1/LIMIT X and w/o ORDER BY faster since it
initiator will not need to read all the rows, only first X (but note
that for this you need to your data to be sharded correctly or you may
get inaccurate results).

Note, that having lots of processing stages will increase the complexity
of interpreter (it is already not that clean and simple right now).

Although using separate QueryProcessingStage looks pretty natural.

Another option is to make WithMergeableStateAfterAggregation always, but
in this case you will not be able to disable only this optimization,
i.e. if there will be some issue with it.

v2: fix OFFSET
v3: convert 01814_distributed_push_down_limit test to .sh and add retries
v4: add test with OFFSET
v5: add new query stage into the bash completion
v6/tests: use LIMIT O,L syntax over LIMIT L OFFSET O since it is broken in ANTLR parser
          https://clickhouse-test-reports.s3.yandex.net/23027/a18a06399b7aeacba7c50b5d1e981ada5df19745/functional_stateless_tests_(antlr_debug).html#fail1
v7/tests: set use_hedged_requests to 0, to avoid excessive log entries on retries
          https://clickhouse-test-reports.s3.yandex.net/23027/a18a06399b7aeacba7c50b5d1e981ada5df19745/functional_stateless_tests_flaky_check_(address).html#fail1
2021-06-09 02:29:50 +03:00
Maksim Kita
0752ccf4e0
Merge pull request #24947 from sevirov/sevirov-DOCSUP-9738-types_supported_in_dictionaries
DOCSUP-9738: Types supported in Dictionaries
2021-06-08 23:37:18 +03:00
Dmitriy
c56a1eb7b6 Correction of the translation
Поправил перевод.
2021-06-08 23:36:57 +03:00
Alexander Kuzmenkov
e39f255179
Merge pull request #24743 from yddgit/patch-1
Update "Tail_Number" column type in create query
2021-06-08 17:16:48 +03:00
Vladimir
fa35383071
Merge pull request #24858 from sevirov/sevirov-DOCSUP-9674-document_the_segmentlengthsum_aggregate_function 2021-06-08 14:58:35 +03:00
George
483d415b24 First draft 2021-06-07 21:24:26 +03:00
tavplubix
634730f4dc
Update s3.md 2021-06-07 17:08:20 +03:00
tavplubix
805171c41f
Merge pull request #24546 from damozhaeva/dmozhaeva-DOCSUP-8448-russian
DOCSUP-8448: [CLICKHOUSEDOCS] Edit and translate to Russian
2021-06-07 14:45:11 +03:00
damozhaeva
802f48ea86
Update docs/ru/sql-reference/functions/date-time-functions.md
Co-authored-by: tavplubix <tavplubix@gmail.com>
2021-06-07 13:42:18 +03:00
Pavel Kruglov
0a70304085 Remove database before model name in docs 2021-06-07 13:10:51 +03:00
alesapin
86759753e0
Merge pull request #24878 from ClickHouse/blinkov-patch-22
fix markdown at window functions page
2021-06-07 12:54:29 +03:00
Kruglov Pavel
78f1ecb71f
Merge pull request #24890 from sevirov/sevirov-DOCSUP-8709-document_reload_model_and_reload_models_system_queries
DOCSUP-8709: Document RELOAD MODEL and RELOAD MODELS system queries
2021-06-07 11:12:12 +03:00
Dmitriy
57bb73fb91 Update apply-catboost-model.md
Перевел небольшой текст в этом файле на русский язык.
2021-06-04 23:07:28 +03:00
Dmitriy
d8271c0705 Translate to Russian
Перевел на русский язык.
2021-06-04 20:38:05 +03:00
presto53
c362e35196
Update s3.md 2021-06-04 17:41:59 +03:00
presto53
e9bd18ebfb
Update s3.md 2021-06-04 17:35:15 +03:00
Nikita Mikhaylov
cf8782faf3
Merge pull request #24311 from nikitamikhaylov/merging-s3-backoff
Merging #23461
2021-06-04 14:41:21 +03:00
Nikita Mikhaylov
66da4988de
Update s3.md 2021-06-04 14:40:32 +03:00
tavplubix
611d61c804
Merge pull request #24937 from morozovsk/patch-4
Documentation: The MySQL engine also allows to perform `INSERT`
2021-06-04 13:01:56 +03:00
Vladimir
edbcdf81ce
Apply suggestions from code review 2021-06-04 09:57:58 +03:00
Nikita Mikhaylov
730e7feea0
Update s3.md 2021-06-04 02:45:25 +03:00
alexey-milovidov
7bd88263b2
Less stupid docs. 2021-06-04 01:39:43 +03:00
Dmitriy
fbcd22ab4e Merge remote-tracking branch 'remotes/clickhouse/master' into sevirov-DOCSUP-9738-types_supported_in_dictionaries 2021-06-04 00:34:58 +03:00
Dmitriy
47a94d350b Add types supported in Dictionaries
Добавил типы для атрибутов словарей.
2021-06-03 23:16:39 +03:00
kssenii
e23bc14582 Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into pg-ch-replica 2021-06-03 19:44:55 +00:00
mergify[bot]
9e2c454db2
Merge branch 'master' into merging-s3-backoff 2021-06-03 18:58:24 +00:00
Ilya Yatsishin
cc2ef7daea
Merge pull request #24913 from nickshch/patch-1 2021-06-03 21:37:15 +03:00
Vladimir Goncharov
bea934f40c
Update mysql.md
The MySQL engine also allows to perform `INSERT`
2021-06-03 20:12:19 +03:00
Vladimir Goncharov
f60f247739
Update mysql.md
Движок MySQL позволяет выполнять также и `INSERT`
2021-06-03 20:07:55 +03:00
alesapin
70a6105d3d
Merge pull request #24765 from adevyatova/annadevyatova-DOCSUP-7864-unfreeze
DOCSUP-7864: Document the SQL-statement ALTER TABLE ... UNFREEZE
2021-06-03 19:03:51 +03:00
adevyatova
4ae1c95e54 minor fix 2021-06-03 12:27:17 +00:00
Nikolay Shcheglov
f152bafd75
Fix nullable link 2021-06-03 15:15:46 +03:00
adevyatova
cdd8a1cc4b minor fix 2021-06-03 11:25:30 +00:00
alesapin
fe49574e41
Merge pull request #24764 from adevyatova/annadevyatova-DOCSUP-8347-non_replicated
DOCSUP-8347: Document the non_replicated_deduplication_window setting
2021-06-03 14:19:59 +03:00
Anna
b33b4afcba
Merge branch 'master' into annadevyatova-DOCSUP-7864-unfreeze 2021-06-03 14:15:47 +03:00
Vladimir
17f0900c31
Merge pull request #19766 from achimbab/pr_sequenceNextNode 2021-06-03 13:16:42 +03:00
adevyatova
e05102f545 fixed 2021-06-03 09:31:45 +00:00
Dmitriy
2dc39edc44 Fix the link
Поправил ссылку.
2021-06-03 00:48:14 +03:00
Dmitriy
d675510d7b Add RELOAD MODELS and RELOAD MODEL system queries
Добивал описание системных запросов.
2021-06-02 23:44:51 +03:00
Maksim Kita
50042df428
Merge pull request #24286 from sevirov/sevirov-DOCSUP-7842-document_the_dictionary_function
DOCSUP-7842: Document the dictionary function
2021-06-02 22:28:33 +03:00
Dmitriy
ab9615ed92 Update intervalLengthSum.md
Поправил русскую версию.
2021-06-02 22:04:46 +03:00
sevirov
1c1b65b95b
Update docs/en/sql-reference/aggregate-functions/reference/intervalLengthSum.md
Co-authored-by: Anna <42538400+adevyatova@users.noreply.github.com>
2021-06-02 21:56:53 +03:00
sevirov
33f14ad6e2
Update docs/en/sql-reference/aggregate-functions/reference/intervalLengthSum.md
Co-authored-by: Anna <42538400+adevyatova@users.noreply.github.com>
2021-06-02 21:56:42 +03:00
sevirov
3367d241d0
Update docs/en/sql-reference/aggregate-functions/reference/intervalLengthSum.md
Co-authored-by: Anna <42538400+adevyatova@users.noreply.github.com>
2021-06-02 21:56:30 +03:00
adevyatova
d79f2bfa32 update 2021-06-02 18:52:29 +00:00
Dmitriy
6d613a2681 Translate to Russian
Выполнил перевод на русский язык.
2021-06-02 19:45:33 +03:00
sevirov
91928a7844
Update docs/en/sql-reference/aggregate-functions/reference/intervalLengthSum.md
Co-authored-by: Anna <42538400+adevyatova@users.noreply.github.com>
2021-06-02 19:17:49 +03:00
sevirov
0057172ba7
Update docs/en/sql-reference/aggregate-functions/reference/intervalLengthSum.md
Co-authored-by: Anna <42538400+adevyatova@users.noreply.github.com>
2021-06-02 19:17:20 +03:00
sevirov
62b21d850b
Update docs/en/sql-reference/aggregate-functions/reference/intervalLengthSum.md
Co-authored-by: Anna <42538400+adevyatova@users.noreply.github.com>
2021-06-02 19:17:05 +03:00
sevirov
3c0c3f255e
Update docs/en/sql-reference/aggregate-functions/reference/intervalLengthSum.md
Co-authored-by: Anna <42538400+adevyatova@users.noreply.github.com>
2021-06-02 19:16:44 +03:00
Daria Mozhaeva
58fd7392aa years 2021-06-02 14:45:26 +03:00
Ivan Blinkov
8b8f02b0de
fix markdown 2021-06-02 14:36:36 +03:00
adevyatova
f9b5c23457 add ru docs 2021-06-02 08:40:53 +00:00
adevyatova
b4c376c397 update 2021-06-02 08:36:19 +00:00
adevyatova
42607f4ea4 fix 2021-06-02 07:55:26 +00:00
adevyatova
01b3b0c2f9 update 2021-06-02 07:53:11 +00:00
adevyatova
61ed3a87a3 update 2021-06-02 07:46:44 +00:00
Azat Khuzhin
931cfb548d docs: update requests (to fix conflicts with urllib3)
Fixes: 94b18bdfb8
2021-06-02 09:11:02 +03:00
alexey-milovidov
94b18bdfb8
Update requirements.txt 2021-06-02 03:11:32 +03:00
Dmitriy
dad4d9d0c5 Create intervalLengthSum.md
Задокументировал функцию intervalLengthSum.
2021-06-01 20:44:04 +03:00
kssenii
12ea45e956 Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into pg-ch-replica 2021-06-01 17:43:34 +00:00
Nikita Mikhaylov
c00d55f705 better 2021-06-01 14:28:34 +00:00
Nikita Mikhaylov
0055a924f6 better 2021-06-01 14:23:46 +00:00
Nikita Mikhaylov
3f18bde246 Merge branch 'master' of github.com:ClickHouse/ClickHouse into merging-s3-backoff 2021-06-01 13:39:09 +00:00
Max Bruce
356734bd47
Add Rust language third-party SDK, Klickhouse 2021-06-01 04:21:33 -07:00
Alexander Kuzmenkov
4f129d3f93
Merge pull request #24084 from atereh/terehova-DOCSUP-5919-query_optimize_upd_description
DOCSUP-5919: Update OPTIMIZE description in docs
2021-06-01 13:50:01 +03:00
Alexander Kuzmenkov
24d1d7b6c1
Update docs/en/sql-reference/statements/optimize.md 2021-06-01 13:49:24 +03:00
achimbab
99a5f1506a Merge remote-tracking branch 'origin' into pr_sequenceNextNode 2021-06-01 17:25:24 +09:00
alexey-milovidov
38493bde48
Merge pull request #24790 from ahmed-dardery/patch-1
fixed missing "weight" in definition
2021-05-31 22:02:48 +03:00
Nikita Mikhaylov
0d8ede15a9
Merge branch 'master' into merging-s3-backoff 2021-05-31 21:07:00 +03:00
filimonov
481b37cd68
fix more copy & paste 2021-05-31 16:32:43 +02:00
Anton Popov
91cf7771ad
Merge pull request #24444 from adevyatova/annadevyatova-DOCSUP-8654
DOCSUP-8654: Update the unhex function docs
2021-05-31 13:02:47 +03:00
Kseniia Sumarokova
67e2695e8b
Merge pull request #24548 from kirillikoff/DOCSUP-9474-document-table-comments
Docsup 9474: document table comments
2021-05-31 11:11:27 +03:00
kirillikoff
fa8a0ca69d
Update table.md 2021-05-31 10:00:19 +03:00
kirillikoff
1a328815c1
Update table.md 2021-05-31 09:59:33 +03:00
Anna
95b04dbbf0
Update docs/en/sql-reference/functions/encoding-functions.md
Co-authored-by: Anton Popov <pad11rus@gmail.com>
2021-05-31 07:30:52 +03:00
Anna
ffd0c10b57
Update docs/en/sql-reference/functions/encoding-functions.md
Co-authored-by: Anton Popov <pad11rus@gmail.com>
2021-05-31 07:30:46 +03:00
Anna
37bd69d288
Update docs/ru/sql-reference/functions/encoding-functions.md
Co-authored-by: Anton Popov <pad11rus@gmail.com>
2021-05-31 07:30:40 +03:00
Anna
7d41ba91fa
Update docs/ru/sql-reference/functions/encoding-functions.md
Co-authored-by: Anton Popov <pad11rus@gmail.com>
2021-05-31 07:30:32 +03:00
adevyatova
fcf39609aa small fix 2021-05-30 18:34:15 +00:00
adevyatova
e8ab54b2db Merge branch 'annadevyatova-DOCSUP-8214-dictGet' of https://github.com/adevyatova/ClickHouse into annadevyatova-DOCSUP-8214-dictGet 2021-05-30 18:30:43 +00:00
adevyatova
d04b802cb0 update 2021-05-30 18:30:23 +00:00
Anna
38b489ccf9
Merge branch 'master' into annadevyatova-DOCSUP-8214-dictGet 2021-05-30 21:26:24 +03:00
adevyatova
0698002346 Fixed after review 2021-05-30 18:24:14 +00:00
Anna
b6ba7dea39
Update docs/ru/sql-reference/functions/ext-dict-functions.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-05-30 21:15:26 +03:00
Anna
f9a22e683c
Update docs/ru/sql-reference/functions/ext-dict-functions.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-05-30 21:15:11 +03:00
Anna
c859712c9c
Update docs/ru/sql-reference/functions/ext-dict-functions.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-05-30 21:15:06 +03:00
Anna
fab84c526a
Update docs/en/sql-reference/functions/ext-dict-functions.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-05-30 21:15:01 +03:00
Anna
a4cdeca3ee
Update docs/en/sql-reference/functions/ext-dict-functions.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-05-30 21:14:56 +03:00
adevyatova
68b1084355 add en docs 2021-05-30 13:28:21 +00:00
Anna
ab4161bd66
Merge branch 'master' into annadevyatova-DOCSUP-8347-non_replicated 2021-05-30 16:05:27 +03:00
adevyatova
4a60e3545e add en,ru docs 2021-05-30 13:01:25 +00:00
adevyatova
7fc25ed708 fixed 2021-05-30 12:22:49 +00:00
adevyatova
8afd862704 add example 2021-05-30 12:21:43 +00:00
Ahmed Dardery
386f31fddf
fixed missing "weight" in definition 2021-05-30 14:08:19 +02:00
tavplubix
fe4b137257
Merge pull request #24761 from adevyatova/annadevyatova-DOCSUP-8823-allow
DOCSUP-8823: Document the allow_floating_point_partition_key setting
2021-05-30 15:05:43 +03:00
adevyatova
d84de3fdbf Fixed 2021-05-30 10:43:49 +00:00
adevyatova
72b0632208 add en,ru docs 2021-05-30 10:39:32 +00:00
adevyatova
c32e4fc1a4 update 2021-05-30 09:29:22 +00:00
adevyatova
ee25971426 en, ru docs 2021-05-30 09:24:41 +00:00
adevyatova
d2299dcf6d fixed 2021-05-30 08:49:58 +00:00
kirillikoff
4ba9e15851
Update docs/ru/sql-reference/statements/create/table.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-05-29 18:24:57 +03:00
kirillikoff
4da019e178
Update docs/ru/sql-reference/statements/create/table.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-05-29 18:24:48 +03:00
kirillikoff
0ca47b2d1a
Update docs/en/sql-reference/statements/create/table.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-05-29 18:23:59 +03:00
kirillikoff
33ec902597
Update docs/en/sql-reference/statements/create/table.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-05-29 18:23:49 +03:00
adevyatova
d932eed090 update 2021-05-29 14:29:56 +00:00
adevyatova
174a80f7b9 undo some changes 2021-05-29 13:55:20 +00:00
Tatiana Kirillova
ee049678a1 Translation into Russian and system.tables 2021-05-29 16:42:21 +03:00
Vladimir
57f3fc8f3e
Merge pull request #23985 from michon470/kuriatnikovm-DOCSUP-7805-update_dictGet_dictHas 2021-05-29 14:04:59 +03:00
adevyatova
9ecf0b54ec update 2021-05-29 10:22:30 +00:00