Commit Graph

429 Commits

Author SHA1 Message Date
alexey-milovidov
7e0433bf07
Merge pull request #25904 from xjewer/alex/add_index_first
CLICKHOUSE-1194: add skipping index to the beginning of the list
2021-07-03 04:55:00 +03:00
Aleksei Semiglazov
f47e1ff102
CLICKHOUSE-1194: add skipping index to the beginning of the list
add the FIRST keyword to the ADD INDEX command to be able to add index in the beginning of the list.

Signed-off-by: Aleksei Semiglazov <asemiglazov@cloudflare.com>
2021-07-01 19:37:48 +01:00
Slach
b64eb0ff07 add DELETE IN PARTITION and UPDATE IN PARTITION into ALTER syntax TOC
Signed-off-by: Slach <bloodjazman@gmail.com>
2021-06-28 19:21:53 +05:00
Maksim Kita
db1c70975e Compile expressions updated documentation 2021-06-25 23:27:18 +03: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
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
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
Pavel Kruglov
0a70304085 Remove database before model name in docs 2021-06-07 13:10:51 +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
d8271c0705 Translate to Russian
Перевел на русский язык.
2021-06-04 20:38:05 +03:00
adevyatova
4ae1c95e54 minor fix 2021-06-03 12:27:17 +00:00
adevyatova
cdd8a1cc4b minor fix 2021-06-03 11:25:30 +00:00
Anna
b33b4afcba
Merge branch 'master' into annadevyatova-DOCSUP-7864-unfreeze 2021-06-03 14:15:47 +03: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
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
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
adevyatova
68b1084355 add en docs 2021-05-30 13:28:21 +00: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
Tatiana Kirillova
ee049678a1 Translation into Russian and system.tables 2021-05-29 16:42:21 +03:00
Daria Mozhaeva
e8c7331256 Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into dmozhaeva-DOCSUP-8448-russian 2021-05-28 12:04:58 +03:00
kirillikoff
d537da1871
Update docs/en/sql-reference/statements/create/table.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-05-28 11:30:24 +03:00
kirillikoff
693df20ccc
Update docs/en/sql-reference/statements/create/table.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-05-28 11:30:19 +03:00
Nikolai Kochetov
6733fb42d5
Merge pull request #24278 from sevirov/sevirov-DOCSUP-9041-update_the_sql_statement_explain_plan
DOCSUP-9041: Update the SQL-statement EXPLAIN PLAN
2021-05-28 10:19:49 +03:00
alexey-milovidov
e427d91dd6
Merge pull request #24586 from romainneutron/polish-english-doc
Polish english doc
2021-05-28 00:16:16 +03:00
Kseniia Sumarokova
ee4f42a991
Merge pull request #24430 from lehasm/alexey-sm-DOCSUP-8939-document-insert_null_as_default
DOCSUP-8939: document the insert_null_as_default setting
2021-05-27 23:24:16 +03:00
Romain Neutron
d3be14e639
Fix ClickHouse characters case 2021-05-27 21:49:41 +02:00
Romain Neutron
7b515c7235
Avoid short syntax 2021-05-27 21:44:11 +02:00
Dmitriy
34cd08e732 Update explain.md
Поправил определение для indexes.
2021-05-27 20:41:25 +03:00
Tatiana Kirillova
a134507492 Document table comments update 2021-05-26 21:36:38 +03:00
Tatiana Kirillova
ea16fb3c8a Document table comments 2021-05-26 21:12:52 +03:00
Amir Vaza
24990449f5
Typo 2021-05-26 16:08:53 +03:00
Daria Mozhaeva
1151f13fed Edit and translate to Russian 2021-05-26 15:38:54 +03:00
Alina Terekhova
3782d6bba2 Output row number deleted 2021-05-26 13:34:28 +02:00
Dmitriy
d7138ee062 Translate to Russian
Выполнил перевод на русский язык.
2021-05-25 23:51:59 +03:00
sevirov
89230ea6e4
Update docs/en/sql-reference/statements/explain.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-05-25 23:21:16 +03:00
Alexey
845b33cb1f Text block moved 2021-05-25 18:25:55 +00:00
Alexey
715c88e5fa Returned INSERT ... VALUES statement.
'non-Nullable' changed to 'not nullable'
2021-05-24 15:26:23 +00:00
Denny Crane
12a0563741
PREWHERE+FINAL 2021-05-23 19:47:29 -03:00
Alexey
a3640cd7ea Description updated 2021-05-23 20:02:17 +00:00
Dmitriy
4360daf0cb Add json setting in EXPLAIN PLAN
Добавил настройку json в EXPLAIN PLAN.
2021-05-19 13:25:33 +03:00
Chao Ma
d85fd73bea Fix official website documents error about grant-drop section 2021-05-18 14:58:45 +08:00
Alina Terekhova
7dde67a94e Updated examples 2021-05-17 22:50:02 +02:00
Alina Terekhova
4b33108dac
remove ticks from Note
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-05-17 22:13:41 +02:00
Alina Terekhova
808f3c8791
remove Valid cases
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-05-17 22:13:18 +02:00
Alina Terekhova
8e75e0ccde
remove DROP
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-05-17 22:12:15 +02:00
Alina Terekhova
9c279c0c28
consider the table
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
2021-05-17 22:11:53 +02:00