Commit Graph

1647 Commits

Author SHA1 Message Date
Michael Kolupaev
e09d984fec Merge remote-tracking branch 'origin/master' into mv4 2024-07-23 17:52:40 +00:00
joelynch
240f04561e
Fix docs for COMMENT clause 2024-07-22 19:12:39 +02:00
pufit
953053a7f6 docs, more doc strings 2024-07-19 20:32:37 -04:00
Arthur Passos
cc02ebca75 Merge branch 'master' into multi_auth_methods 2024-07-15 10:55:40 -03:00
Arthur Passos
3ab6760412 update docs 2024-07-12 15:21:29 -03:00
vdimir
1bb5ae954d
Merge branch 'master' into vdimir/full_sorting_join_improvements 2024-07-11 10:37:27 +00:00
Thom O'Connor
b7964bc13e
Update kill.md
Including extra verbiage for ON CLUSTER required in ClickHouse Cloud or self-managed clusters
2024-07-10 14:34:54 +00:00
vdimir
c24c33917f
Merge branch 'master' into vdimir/full_sorting_join_improvements 2024-07-10 09:49:51 +00:00
Michael Kolupaev
ba5e50cedc Merge remote-tracking branch 'origin/master' into mv4 2024-07-04 08:28:59 +00:00
Robert Schulze
9d79bd9625
Merge pull request #65792 from rschu1ze/stats-refactoring
Refactor statistics interface
2024-07-03 17:26:09 +00:00
Robert Schulze
2cefa56f9b
Update docs 2024-07-03 10:13:15 +00:00
Justin de Guzman
54c4f02dca
[Docs] Better wording for behavior of MATERIALIZED expr 2024-07-02 15:22:48 -07:00
Arthur Passos
cc13783acd Merge branch 'master' into multi_auth_methods 2024-07-02 09:11:20 -03:00
Konstantin Bogdanov
138eb924fa
Merge pull request #65626 from tonickkozlov/tonickkozlov/x509-san-validation
Add support for x509 SubjectAltName identification
2024-07-02 11:20:01 +00:00
Michael Kolupaev
d8cab4a772 Merge remote-tracking branch 'origin/master' into mv4 2024-07-01 20:26:53 +00:00
vdimir
81723dbd01
Merge branch 'master' into vdimir/full_sorting_join_improvements 2024-07-01 10:27:11 +00:00
Anton Kozlov
b1b9aaf2ec Add support for x509 SubjectAltName identification 2024-07-01 09:47:28 +00:00
Arthur Passos
306d55f636 add some docs 2024-06-29 18:29:05 -03:00
Nikita Mikhaylov
f399764021
Merge pull request #65793 from ClickHouse/docs-named-collections-cloud-support
[Docs] Specify that Named Collections are not supported in Cloud
2024-06-28 00:10:09 +00:00
Michael Kolupaev
4ac37682e3 Merge remote-tracking branch 'origin/master' into mv4 2024-06-27 20:45:08 +00:00
justindeguzman
78c659e8ce [Docs] Specify that Named Collections are not supported in Cloud 2024-06-27 12:15:48 -07:00
Linh Giang
2265861f83
fixed misspelled word
originally "quering" changed to "querying"
2024-06-27 09:38:19 -06:00
Maciej Bak
d8eef19f56 Documentation: Add missing IF NOT EXISTS clause for manipulating constraints 2024-06-25 16:41:12 +02:00
Michael Kolupaev
9957fe1734 Comment fixes 2024-06-25 08:44:37 +00:00
Michael Kolupaev
5e4d3b2e43 Refreshable materialized views improvements 2024-06-25 08:44:34 +00:00
Кирилл Гарбар
58e34a53cf Style fix 2 2024-06-18 20:16:01 +03:00
Кирилл Гарбар
52596a8e6b Style fix 2024-06-18 20:05:06 +03:00
Кирилл Гарбар
2f15a2c03e Docs 2024-06-18 02:01:07 +03:00
Yarik Briukhovetskyi
f811dbf8f8
Merge pull request #65165 from Blargian/fix_deadlinks
Fix broken links in docs
2024-06-12 16:15:37 +00:00
Nikita Mikhaylov
7082730554
Merge pull request #60622 from phil-schreiber/fix/docu-column-ddl-for-codec-and-comment
fix column ddl expression order documentation
2024-06-12 15:51:29 +00:00
Blargian
d851fa871f Fix broken links in docs 2024-06-12 14:09:37 +02:00
vdimir
3e9090cbeb
fix 2024-06-12 08:45:39 +00:00
Christoph Wurm
4cc9cecd7c
Document REPLACE PARTITION as atomic 2024-06-06 10:14:38 +01:00
Han Fei
c04e7e64af Merge branch 'master' into hanfei/stats_uniq 2024-06-05 13:09:15 +02:00
Han Fei
f7ca33868b Merge branch 'master' into hanfei/stats_uniq 2024-06-05 01:21:49 +02:00
Robert Schulze
9e440e1417
Add docs 2024-06-04 11:20:15 +00:00
Francesco Ciocchetti
a82cc3da6a
Add Note about ZSTD_QAT codec being disabled in ClickHouse Cloud 2024-06-03 09:08:02 +02:00
Peignon Melvyn
299a0ec9cf
Update view.md 2024-05-31 03:09:54 +02:00
Peignon Melvyn
a286524a46
Update view.md 2024-05-31 03:06:20 +02:00
Nikita Mikhaylov
e54949da2a
Merge pull request #64515 from ClickHouse/melvynator-patch-2
Update view.md
2024-05-28 23:25:30 +00:00
Nikolay Degterinsky
f48f3feafa
Unify SYSTEM query docs 2024-05-28 18:35:46 +02:00
Peignon Melvyn
6a729fbb7e
Update view.md
Remove mention of experimental settings.
2024-05-28 16:25:08 +02:00
Han Fei
ee7ad460fd Merge branch 'master' into hanfei/stats_uniq 2024-05-25 18:01:21 +02:00
Blargian
ce26c4f657 Review changes and replace … with ... 2024-05-23 13:54:45 +02:00
Han Fei
6e15d6b344 address comments 2024-05-22 15:24:18 +02:00
Han Fei
2e2d20717b refine docs 2024-05-17 17:37:16 +02:00
Han Fei
79bbe0b587 Merge branch 'master' into hanfei/stats_uniq 2024-05-14 18:16:52 +02:00
vdimir
d3f03e9c94
More details about allow_experimental_join_condition 2024-05-14 08:57:56 +00:00
Maksim Kita
5885f4263b Recursive CTE documentation fix 2024-05-08 17:20:38 +03:00
Maksim Kita
0b59c24866 Fixed style check 2024-05-07 11:29:50 +03:00
Maksim Kita
da4f6f7b6c Added recursive CTE documentation 2024-05-07 11:29:50 +03:00
Yarik Briukhovetskyi
15c3da9e3e
Merge branch 'ClickHouse:master' into truncate_all_tables_from 2024-05-03 19:35:59 +02:00
János Benjamin Antal
7aab5855b6 Fix links 2024-05-02 07:00:40 +00:00
Yarik Briukhovetskyi
fd2716c5c4
fix docs 2024-05-01 17:42:42 +02:00
vdimir
7617155901
Merge branch 'master' into vdimir/ineq_join_v2 2024-05-01 11:53:43 +00:00
lgbo-ustc
6fa6c0261b apply 27a2b19 2024-04-28 09:27:16 +08:00
lgbo-ustc
cd9c87811f fixed bugs for all right join
add test cases

fixed typos

add document

fixed stype error and rename some variables

fixed test error

add test cases

try to recude hash join code size

debug

fixed

fixed coredump

fixed. condition result type is not bool

enable when allow_experimental_analyzer=0

fixed tests

fixed

update tests

update tests

roll backup when use the old analyzer

fixed typos

fixed

test

large obj check

test

test
2024-04-28 09:26:11 +08:00
Pablo Marcos
9002d4c751 Merge branch 'master' into pamarcos/system-unload-primary-key 2024-04-27 08:57:29 +02:00
Nikita Mikhaylov
44c05dde02
Merge pull request #62810 from ClickHouse/docs-add-final-keyword-examples
[Docs] Add examples for FINAL
2024-04-26 11:11:16 +00:00
Pablo Marcos
24b84ef68a Merge branch 'master' into pamarcos/system-unload-primary-key 2024-04-25 18:26:14 +02:00
Han Fei
42621b2060 Merge branch 'master' into hanfei/stats_uniq 2024-04-24 19:55:15 +02:00
Maksim Kita
0e28d20791 Fixed code review issues 2024-04-22 14:37:04 +03:00
Maksim Kita
0ad8c6ef78 Added docs 2024-04-22 12:12:02 +03:00
Justin de Guzman
98fef9f036
[Docs] Fix query 2024-04-19 13:36:41 -07:00
Justin de Guzman
4e38ccefdd
[Docs] Add examples for FINAL 2024-04-19 13:34:26 -07:00
Pablo Marcos
c28af20e2a Merge branch 'master' into pamarcos/system-unload-primary-key 2024-04-18 17:53:11 +02:00
jsc0218
7525b2acf4
Merge pull request #60117 from jsc0218/TableEngineGrant_version2
TableEngineGrant_version2
2024-04-18 14:30:34 +00:00
Pablo Marcos
556932706b Add SYSTEM UNLOAD PRIMARY KEY 2024-04-17 21:24:59 +02:00
Yarik Briukhovetskyi
ff5a385201
Update intersect.md 2024-04-15 11:03:15 +01:00
Josh Rodriguez
087d91d21d
Fix a typo and grammar in intersect 2024-04-13 11:02:08 -07:00
Alexander Tokmakov
c1c7cf56bd
Revert "[feature]: allow to attach parts from a different disk" 2024-04-11 13:43:51 +02:00
Robert Schulze
e09db43991
Merge remote-tracking branch 'rschu1ze/master' into docs-drop-table 2024-04-08 17:16:58 +00:00
Ilya Andreev
094f94882c Fix a typo in the documentation of the ALTER TABLE ... MODIFY QUERY statement 2024-04-08 12:37:03 +01:00
jsc0218
ee589f8a8b Merge remote-tracking branch 'origin/master' into TableEngineGrant_version2 2024-04-03 17:17:33 +00:00
Han Fei
5df9152332 Merge branch 'master' into hanfei/stats_uniq 2024-04-03 17:25:38 +02:00
Robert Schulze
0782ccaa91
Update docs/en/sql-reference/statements/drop.md
Co-authored-by: Han Fei <hanfei19910905@gmail.com>
2024-04-03 12:53:09 +02:00
Robert Schulze
2f45d98c97
Docs: Improve wording of DROP TABLE docs 2024-04-03 10:03:04 +00:00
robot-clickhouse-ci-1
1faa8e455c
Merge pull request #62171 from ClickHouse/improve-alter-synchronicity-docs
Improve docs
2024-04-02 15:47:13 +02:00
János Benjamin Antal
e659071b78 Improve docs 2024-04-02 11:37:48 +00:00
Robert Schulze
13c348c3c8
Fix spelling 2024-04-02 13:24:11 +02:00
Robert Schulze
3914a0f67a
Document SYSTEM RELOAD ASYNCHRONOUS METRICS 2024-04-02 11:03:00 +00:00
Han Fei
11a4ae516d Merge branch 'master' into hanfei/stats_uniq 2024-04-01 22:46:28 +02:00
Han Fei
a0d27e45b9
Merge branch 'master' into drop_tables 2024-03-28 13:56:50 +01:00
Yarik Briukhovetskyi
003d258ba1
Merge pull request #61862 from HowePa/truncate_all_tables
add TRUNCATE ALL TABLES
2024-03-28 13:32:46 +01:00
zhongyuankai
7938a8e62b Merge branch 'master' into drop_tables 2024-03-28 20:00:56 +08:00
Yarik Briukhovetskyi
844bb4f06c
Merge pull request #61727 from yariks5s/fix_undrop_query
Revert "Revert "Un-flake test_undrop_query""
2024-03-27 13:12:50 +01:00
zhongyuankai
aa3830a3db Merge branch 'master' into drop_tables 2024-03-26 14:09:04 +08:00
Han Fei
61052e17b3 Merge branch 'master' into hanfei/stats_uniq 2024-03-25 17:23:12 +01:00
Yarik Briukhovetskyi
8bdbfce43c
Merge branch 'master' into fix_undrop_query 2024-03-25 13:06:46 +01:00
Azat Khuzhin
4c9ea0075b Update documentation for SYSTEM FLUSH DISTRIBUTED SETTINGS
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-03-25 09:49:59 +01:00
HowePa
d38534e047 add TRUNCATE ALL TABLES 2024-03-25 15:59:15 +08:00
zhongyuankai
64961edb3f Merge branch 'master' into drop_tables 2024-03-25 11:13:26 +08:00
Alexey Milovidov
9210712f4f
Merge pull request #60112 from Unalian/feat-59377
[feature]: allow to attach parts from a different disk
2024-03-24 23:12:43 +03:00
robot-clickhouse-ci-2
a615d4a387
Merge pull request #56328 from ClickHouse/thomoco-patch-3
[Docs] Add details to KILL statement
2024-03-22 14:46:59 +01:00
Han Fei
a367e07ae9 Merge branch 'master' into hanfei/stats_uniq 2024-03-22 12:48:39 +01:00
Alexey Milovidov
08abe5823e
Update kill.md 2024-03-22 03:32:46 +03:00
Alexey Milovidov
fe5e6b0a0f
Update docs/en/sql-reference/statements/kill.md
Co-authored-by: Johnny <9611008+johnnymatthews@users.noreply.github.com>
2024-03-22 03:32:02 +03:00
yariks5s
6a19b77d9e init 2024-03-21 18:39:05 +00:00
Robert Schulze
35cc335597
Revert "Un-flake test_undrop_query" 2024-03-20 18:04:35 +01:00
Han Fei
b2ceeba0f2 Merge branch 'master' into hanfei/stats_uniq 2024-03-19 23:47:08 +01:00
Kirill Nikiforov
ebaee8e5f6
Add support for ATTACH PARTITION ALL (#61107) 2024-03-18 15:00:27 -04:00
jsc0218
b3b46ea708 Merge remote-tracking branch 'origin/master' into TableEngineGrant_version2 2024-03-14 00:36:29 +00:00
Robert Schulze
bd6bed161c
Try to fix flaky test_undrop_query 2024-03-13 20:56:42 +00:00
unashi
c78224c2ff Merge branch 'master' into feat-59377 2024-03-13 11:24:00 +08:00
zhongyuankai
c6c40d1ac1 Merge branch 'master' into drop_tables 2024-03-12 08:54:55 +08:00
Nikita Mikhaylov
2bc4d27ac6 Bye bye 2024-03-07 19:24:39 +00:00
jsc0218
835afe1f34
Merge pull request #60893 from jsc0218/AddNamedCollectionGrantDoc
Add named collection grant description
2024-03-07 10:15:54 -05:00
Kseniia Sumarokova
de7f7e196e
Update docs/en/sql-reference/statements/grant.md 2024-03-07 13:55:22 +08:00
jsc0218
c901c9c1f3 fix typo 2024-03-07 01:47:10 +00:00
jsc0218
0f4cd3198d add version specification 2024-03-07 01:09:18 +00:00
Robert Schulze
7a60a5c7ab
Merge pull request #60642 from rschu1ze/docs-58023
Docs: Follow-up to #58023
2024-03-06 11:40:39 +01:00
Robert Schulze
06c2492b92
Clarify subtle detail in docs 2024-03-06 09:29:42 +00:00
jsc0218
cd2a418afd add named collection grant doc 2024-03-06 02:31:21 +00:00
Peter
1df42bb86b
Remove original article because it's redundant 2024-03-03 22:49:11 +08:00
jsc0218
2b54c11d63
Merge branch 'ClickHouse:master' into TableEngineGrant_version2 2024-03-02 20:42:04 -05:00
Robert Schulze
dc2d022cc4
Docs: Follow-up to #58023 2024-03-01 12:29:57 +00:00
Philipp Schreiber
545cc731dc fix column ddl expression order documentation 2024-03-01 09:39:02 +01:00
Kirill Nikiforov
2744fc0c2d rename dns_cache_max_size to dns_cache_max_entries 2024-02-29 02:32:13 +03:00
jsc0218
b4b19ae2ad
Merge branch 'master' into TableEngineGrant_version2 2024-02-28 10:56:30 -05:00
pufit
330a206470
Add definers for views (Attempt 2) (#60439) 2024-02-27 19:00:17 -05:00
Alexey Milovidov
cf7a0b0d8f
Merge pull request #60337 from ClickHouse/docs-insert-details
[Docs] Add more details on INSERTs
2024-02-27 03:57:17 +03:00
Kirill Nikiforov
8b314a3ac8
Implement system.dns_cache table and dns_cache_max_size server setting (#60257)
* system.dns_cache table WIP

* system.dns_cache table

* rollback unexpected contrib changes

* rollback unexpected changes

* add docs

* code style fixes

* optimize dns cache exporting

* stateful test for system.dns_cache table

* stateful test for system.dns_cache table

* cr fixes

* stateful test for system.dns_cache table

* stateful test for system.dns_cache table

* implement system.dns_cache table

* system.dns_cache test

* system.dns_cache fix docs

* system.dns_cache prettify

* dns_cache_max_size settings

* fix system.dns_cache test

* Update dns_cache.md

* fix doc

Co-authored-by: pufit <pufit@clickhouse.com>

---------

Co-authored-by: pufit <pufit@clickhouse.com>
2024-02-26 15:48:02 -05:00
Robert Schulze
5c967c44de
Merge pull request #60248 from ClickHouse/revert-59450-order-by-all-ambiguities
Revert "Replace `ORDER BY ALL` by `ORDER BY *`"
2024-02-26 10:23:41 +01:00
Nikita Mikhaylov
8fef0b71c4
Merge pull request #60350 from ClickHouse/revert-54901-pufit/views-sql-security
Revert "Add definers for views"
2024-02-23 15:15:36 +01:00
Sergei Trifonov
2c766cf75f
Merge pull request #59507 from ClickHouse/alter-table-forget-partition
Add `FORGET PARTITION` query to remove old partition nodes from ZooKeeper
2024-02-23 12:55:08 +01:00
Raúl Marín
464b5e0e15
Revert "Add definers for views (#54901)"
This reverts commit 57306706b3.
2024-02-23 12:44:31 +01:00
Justin de Guzman
1df831b717
[Docs] Clarify that async inserts are deduplicated by default 2024-02-23 02:18:04 -08:00
Justin de Guzman
4af942567d
[Docs] Add info on squashing for large inserts 2024-02-23 01:39:45 -08:00
Justin de Guzman
8de4810374
[Docs] Fix typo
Co-authored-by: Alexey Milovidov <milovidov@clickhouse.com>
2024-02-22 14:58:24 -08:00
Justin de Guzman
bd5e4f42a6
[Docs] Add more details on INSERTs 2024-02-22 12:53:02 -08:00
pufit
57306706b3
Add definers for views (#54901) 2024-02-22 17:47:50 +01:00
Robert Schulze
52afa46e23
Revert "Replace ORDER BY ALL by ORDER BY *" 2024-02-21 19:05:20 +01:00
serxa
69c5fae1bc review fixes 2024-02-21 15:11:50 +00:00
serxa
27371ae4c4 add docs 2024-02-20 19:16:47 +00:00
unashi
28282eee91 [fix] Add description in partition.md 2024-02-20 21:37:09 +08:00
jsc0218
afa7a95c8c add backward compatibility 2024-02-20 02:11:31 +00:00
Robert Schulze
6f6e74ad8b
Merge remote-tracking branch 'rschu1ze/master' into order-by-all-ambiguities 2024-02-19 15:19:13 +00:00
Alexey Milovidov
4c2ee23429
Update insert-into.md 2024-02-17 01:50:20 +01:00
Justin de Guzman
77c8f671cd
[Docs] Add info on using select_sequential_consistency for INSERTS in cloud 2024-02-15 18:09:11 -08:00
Igor Nikonov
062602d433 Merge remote-tracking branch 'origin/master' into docs_fix_typos 2024-02-15 18:22:00 +00:00
Robert Schulze
058461e786
Merge remote-tracking branch 'rschu1ze/master' into order-by-all-ambiguities 2024-02-15 16:21:16 +00:00
Robert Schulze
1edf3b2254
Replace ORDER BY ALL by ORDER BY * to get rid of ambiguities 2024-02-15 16:19:56 +00:00
robot-ch-test-poll
773baca877
Merge pull request #59612 from ClickHouse/docs-temporary-tables-cloud
[Docs] Add detail on using temporary tables in Cloud
2024-02-13 02:36:07 +01:00
Nikolai Fedorovskikh
a98af159b5 [Docs] fix some typos and missing commas 2024-02-13 02:10:41 +01:00
Alexey Milovidov
b68bc3d3d7
Update docs/en/sql-reference/statements/create/table.md 2024-02-13 02:07:10 +01:00
Alexander Tokmakov
77e4b0c8d9 Revert "Merge pull request #59122 from arthurpassos/bring_back_attach_partition_pr"
This reverts commit ac90637170, reversing
changes made to fe2b5cde05.
2024-02-07 02:52:43 +01:00
Justin de Guzman
5de010ddda
[Docs] Add detail on using temporary tables in Cloud 2024-02-05 13:29:02 -08:00
Robert Schulze
dd484fc312
Simplify what happens in SELECT all, ... [...] ORDER BY ALL
Previously setting `enable_order_by_all` distinguished for ORDER BY ALL
whether we should sort by column 'all' (if given in the SELECT clause)
or by all columns. The actual behavior was not always intuitive.

Now, we throw unconditionally an exception which also simplifies the
handling a bit. Only an edge case is affected and if users really want
to run ORDER BY ALL on a column names 'all', they can alias it.
2024-02-02 09:53:35 +00:00
János Benjamin Antal
1faa04de48 Fix typo 2024-02-02 08:58:43 +00:00
János Benjamin Antal
a0935770bb Fix docs 2024-02-01 14:50:29 +00:00
Vitaly Baranov
a193e01c8f
Merge pull request #54737 from arenadata/ADQM-1150
Added maximum sequential login failures to the quota.
2024-01-31 16:06:17 +01:00
Alexey Gerasimchuck
559de083a3 Implemented failed login attempt counting using quota 2024-01-29 23:20:38 +00:00
Han Fei
f46065ba88 Merge branch 'master' into hanfei/stats_uniq 2024-01-29 22:46:13 +01:00
Han Fei
552e1acf18 support uniq for statistics 2024-01-29 19:49:10 +01:00
Arthur Passos
0bbfef884c
Merge branch 'ClickHouse:master' into bring_back_attach_partition_pr 2024-01-28 17:43:38 -03:00
robot-ch-test-poll4
c0fc804797
Merge pull request #59289 from ClickHouse/melvynator-exp-rmv
Update view.md
2024-01-28 00:17:56 +01:00
Peignon Melvyn
cf1df96cc1
Update view.md
Improved documentation.
2024-01-27 17:27:00 +01:00
Peignon Melvyn
4273ae4f4f
Update view.md 2024-01-26 21:27:20 +01:00
Arthur Passos
ce6877cbb6
Merge branch 'ClickHouse:master' into bring_back_attach_partition_pr 2024-01-26 10:57:11 -03:00
jsc0218
03fc10d68a
Merge pull request #59017 from filimonov/patch-8
Update rename.md
2024-01-24 11:38:56 -05:00
zhongyuankai
d970cd5b61 drop tables 2024-01-24 11:17:52 +08:00
Arthur Passos
799a94081b Revert "Revert "Allow to attach partition from table with different partition expression when destination partition expression doesn't re-partition""
This reverts commit a1c83e2f51.
2024-01-23 11:40:42 -03:00
Robert Schulze
a1c83e2f51
Revert "Allow to attach partition from table with different partition expression when destination partition expression doesn't re-partition" 2024-01-23 15:26:04 +01:00
Robert Schulze
e67076ea2b
Merge pull request #55201 from canhld94/column_level_compress_block
Column-level compression block sizes
2024-01-23 11:22:03 +01:00
Arthur Passos
24b8bbe9fa
Allow to attach partition from table with different partition expression when destination partition expression doesn't re-partition (#39507)
* temp commit

* temp commit

* draft impl for feedback

* fix weird style changes

* fix weird style changes

* fix weird style changes

* fix weird style changes

* fix weird style changes

* aa

* aa

* Add integ tests and remove partition key restriction

* fix small incosistency in partition id

* style fix

* style fix

* style fix

* use existing DataPartStorageBuilder instead of new one

* Refactor part clone to make it more readable and maintainable

* Add MergeTreeDataPartCloner docs

* define ErrorCodes::BAD_ARGUMENTS

* Rebase

* camel case methods

* address some comments

* yet another rebase?

* Move from integ tests to stateless tests

* address more comments

* add finalize on min_max_idx files

* Add sync option to DistinctPartitionExpCloner

* just a temp test

* revert temp change

* Use echoOn to distinguish test queries

* remove comment

* fix build issue during rebase

* atempt to fix build after rebase

* finally fix build

* clear minmaxidx hyperrectangle before loading it

* Fix error on min_max files deletion where it was being assumed that partition expression contained all columns

* get it to the state it was previously

* add missing include

* getting functional?

* refactoring and renaming

* some more refactoring

* extern bad arguments

* try to fix style

* improvements and docs

* remove duplicate includes

* fix crash

* make tests more stable by ordering

* rebase once again..

* fix

* make ci happy?

* fix rebase issues

* docs

* rebase, but prolly needs to be improved

* refactor out from nasty inheritance to static methods

* fix style

* work around optional

* refactor & integrate some changes

* update column_type

* add tests by dencrane

* set utc

* fix ref file

* fix tests

* use MergeTree instead of SummingMergeTree

* mark MergeTreeDataPart::getBlock as const

* address a few comments

* compute module function name size at compile time

* simplify branching in getPartitionAstFieldsCount

* remove column_indexes argument

* merge getBlock with buildBlock

* add some const specifiers

* small adjustments

* remove no longer needed isNull check

* use std::min and max to update global min max idx

* add some assertions

* forward declare some symbols

* fix grammar

* forward decl

* try to fix build..

* remove IFunction forward decl

* Revert "use std::min and max to update global min max idx"

This reverts commit b2fe79dda7.

* Revert "remove no longer needed isNull check"

This reverts commit 129db2610f.

* Revert "Revert "remove no longer needed isNull check""

This reverts commit 9416087dd8.

* Revert "Revert "use std::min and max to update global min max idx""

This reverts commit 20246d4416.

* remove some comments

* partial use of MonotonicityCheckMatcher

* ranges

* remove KeyDescriptionMonotonicityChecker

* remove duplication of applyfunction

* move functions to anonymous namespace

* move functions to cpp

* Relax partition compatibility requirements by accepting subset, add tests from partitioned to unpartitioned

* updte reference file

* Support for partition by a, b, c to partition by a, b

* refactoring part 1

* refactoring part 2, use hyperrectangle, still not complete

* refactoring part 3, build hyperrectangle with intersection of source & destination min max columns

* Support attaching to table with partition expression of multiple expressions

* add tests

* rename method

* remove some code duplication

* draft impl for replicatedmergetree, need to dive deeper

* ship ref file

* fix impl for replicatedmergetree..

* forbid attach empty partition replicatedmergetree

* Add replicated merge tree integration tests

* add test missing files

* fix black

* do not check for monotonicity of empty partition

* add empty tests & fix replicated

* remove no longer needed buildBlockWithMinMaxINdexes

* remove column logic in buildHyperrectangle

* simplify implementation by using existing methods

* further simplify implementation

* move all MergeTreeDataPartClone private methods to .cpp file

* decrease decomposition

* use different namespaces

* reduce code duplication

* fix style

* address a few comments

* add chassert to assert arguments size on MonotonicityCheckVisitor

* remove deleteMinMaxFiles method

* remove useless checks from sanitycheck

* add tests for attach partition (not id)

* Remove sanityCheckASTPartition and bring back conditional getPartitionIDFromQuery

* remove empty block comment

* small fixes

* fix formatting

* add missing include

* remove duplicate iuncludes

* trigger ci

* reduce some code duplication

* use updated partition id on replicatedmergetree

* fix build

* fix build

* small refactor

* do not use insert increment on fetch part

* remove duplicate includes

* add one more integ test

* black

* black

* rely on partition exp instead of partition id on replicated part fetch to decide if it is a different partition exp

* add one more integ test

* add order by clause

* fix black

---------

Co-authored-by: Alexey Milovidov <milovidov@clickhouse.com>
2024-01-22 21:00:04 +01:00
filimonov
7635da91a8
Update rename.md
Remove wrong note. RENAME is supported by most of database engines (including old Ordinary).
2024-01-19 21:55:41 +01:00
Robert Schulze
1bfeee1954
Some fixups 2024-01-18 20:49:50 +00:00
Robert Schulze
15700592f7
Merge remote-tracking branch 'ClickHouse/master' into column_level_compress_block 2024-01-18 19:12:57 +00:00
Duc Canh Le
b16a4cf361 add document
Signed-off-by: Duc Canh Le <duccanh.le@ahrefs.com>
2024-01-18 07:55:44 +00:00
Alexander Tokmakov
5128607995
Merge pull request #58393 from jaymebrd/feat/add-from-modifier-sync-replica-lightweight
add `from srcreplicas` modifier  for `SYSTEM SYNC REPLICA LIGHTWEIGHT`
2024-01-14 20:53:16 +01:00
robot-ch-test-poll4
4c5884b1d9
Merge pull request #58701 from ClickHouse/docs/assume-contraint
Adds documentation for `ASSUME CONSTRAINT`
2024-01-11 17:04:48 +01:00
robot-ch-test-poll
498894a15c
Merge pull request #58700 from ClickHouse/docs/arrayjoin-short-circuit-function-eval-no-no
Adds info about not using `arrayJoin` with `short_circuit_function_evaluation`.
2024-01-11 02:22:11 +01:00
johnnymatthews
2bfe7a2cab Adds docs for ASSUME CONSTRAINT. 2024-01-10 21:13:21 -04:00
johnnymatthews
826a39b732 Adds arrayJoin exception. Prettifies file. Fixes spelling. 2024-01-10 20:43:19 -04:00
johnnymatthews
b276694ac2 Adds ALL qualifier to JOIN. 2024-01-10 13:17:04 -04:00
vdimir
263c6e9c95
Merge pull request #58608 from yariks5s/remove_order_by_requirement_paste_join
Remove order by requierement in PASTE JOIN
2024-01-10 15:18:18 +01:00
Yarik Briukhovetskyi
c8f97e877f
fix typo 2024-01-09 13:31:15 +01:00
yariks5s
dc4cb2fa0e add docs 2024-01-09 11:46:54 +00:00
Jayme Bird
f7173004cc update docs 2024-01-08 12:40:05 +00:00
Robert Schulze
0f51e32bb5
Rename from ZSTDQPL to ZSTD_QPL 2024-01-07 17:47:31 +00:00
Robert Schulze
53965bb9f1
Merge remote-tracking branch 'rschu1ze/master' into qatzstd_main 2024-01-07 14:11:22 +00:00
Michael Kolupaev
96c68e5aae Remove pausing, enable multithreading, kick off refresh on table creation unless the query says EMPTY 2023-12-28 17:56:06 +00:00
Michael Kolupaev
bda01ca9db Spelling 2023-12-28 17:56:05 +00:00
Michael Kolupaev
edd120e8be Make it experimental 2023-12-28 17:56:05 +00:00
Michael Kolupaev
f0417d0ec3 Things 2023-12-28 17:56:05 +00:00
Michael Kolupaev
0fc7535eba Fixes 2023-12-28 17:56:05 +00:00
Michael Kolupaev
609b2c216c Fix some of the CI 2023-12-28 17:56:05 +00:00
Michael Kolupaev
8b8ef41407 Documentation 2023-12-28 17:56:05 +00:00
Alexander Tokmakov
38fe70c68a
Revert "Refreshable materialized views (takeover)" 2023-12-28 13:12:20 +01:00
Michael Kolupaev
b9cbecb0df Remove pausing, enable multithreading, kick off refresh on table creation unless the query says EMPTY 2023-12-27 20:24:56 +00:00
Michael Kolupaev
dbf8fa23df Spelling 2023-12-27 20:24:55 +00:00
Michael Kolupaev
18cc5d1b76 Make it experimental 2023-12-27 20:24:55 +00:00
Michael Kolupaev
538b23d862 Things 2023-12-27 20:24:55 +00:00
Michael Kolupaev
802961f0a2 Fixes 2023-12-27 20:24:55 +00:00
Michael Kolupaev
673743e2ac Fix some of the CI 2023-12-27 20:24:55 +00:00
Michael Kolupaev
7786b12a89 Documentation 2023-12-27 20:24:55 +00:00
Alexey Milovidov
11ca0b7b44
Merge pull request #58137 from ClickHouse/thomoco-patch-4
Update from.md
2023-12-23 05:22:15 +01:00
Alexey Milovidov
bcda9b9d6f
Update from.md 2023-12-23 07:21:43 +03:00
jinjunzh
aaf98f0ed7 refine setting with enable_zstd_qat_codec 2023-12-22 14:24:15 -05:00
robot-ch-test-poll2
97c85e6e41
Merge pull request #58147 from cwurm/patch-3
Update insert-into.md: Clarify position of SETTINGS clause
2023-12-22 15:59:17 +01:00