Commit Graph

1649 Commits

Author SHA1 Message Date
János Benjamin Antal
0b6e8e8b68
Merge pull request #72362 from jotosoares/patch-1
docs(view.md): remove experimental from refreshable materialized views title
2024-12-05 12:58:29 +00:00
Vladimir Cherkasov
7b9973ef8f
Merge branch 'master' into vdimir/residual_join_conditions 2024-12-02 11:38:00 +01:00
Mikhail Artemenko
b81ee27750
Merge pull request #71406 from azat/automatic-external-aggregation
Automatic GROUP/ORDER BY to disk based on the memory usage
2024-11-29 12:27:43 +00:00
Azat Khuzhin
bdb39a6fef Change logic of automatic ORDER/GROUP BY to be based on available memory
- remove max_bytes_ratio_before_external_{order,group_by}_for_server
- change the way max_bytes_ratio_before_external_{order,group_by} works

Note, that it is not enough to transform ratio to bytes in
executeQuery(), since in this case it will not work for merges and
internal queries, plus, you have to reset them for Distributed engine
and update it for Merge/View/...

This patch also introduce some helpers (see MemoryTrackerUtils) and
adjust Aggregator::Params constructor to accept Settings object instead
of tons of arguments.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-11-28 16:01:53 +01:00
Azat Khuzhin
909eef401a Implement max_bytes_ratio_before_external_sort_for_server
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-11-28 16:01:53 +01:00
Azat Khuzhin
d5a990346c Implement max_bytes_ratio_before_external_group_by_for_server
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-11-28 16:01:53 +01:00
Azat Khuzhin
378b6c80a6 Automatic ORDER BY to disk (max_bytes_ratio_before_external_sort)
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-11-28 16:01:53 +01:00
Azat Khuzhin
a856c30c7c Automatic GROUP BY to disk (max_bytes_ratio_before_external_group_by)
Simpler then max_bytes_before_external_group_by, that allows you not to
think about memory consumption of the query, and can be set globally to
i.e. 0.5 so that the external aggregation will be enabled once the
memory usage reaches the 50%.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-11-28 16:01:53 +01:00
Pablo Marcos
98ccca99f2 Add doc for SYSTEM LOAD PRIMARY KEY 2024-11-28 09:05:50 +00:00
Alexander Tokmakov
9a0d19257d
Merge pull request #65401 from kirillgarbar/attach_as_replicated
ATTACH AS [NOT] REPLICATED
2024-11-25 16:00:07 +00:00
Nikita Taranov
856f73a7c2
Fix typo in intersect.md 2024-11-25 12:40:34 +01:00
jotosoares
f753b16f9d
docs(view.md): remove experimental from title 2024-11-24 20:52:27 -03:00
Vladimir Cherkasov
26de447039
Merge pull request #70603 from zwy991114/check-table-structure-completely-setting
Add setting enforce_index_structure_match_on_partition_manipu..
2024-11-22 16:30:34 +00:00
Кирилл Гарбар
ddb8f3d57f Fix docs and build 2024-11-21 16:48:52 +03:00
Alexey Milovidov
ad4b201892
Merge branch 'master' into casted 2024-11-21 06:04:02 +01:00
Alexander Tokmakov
aed4edd941
Merge branch 'master' into attach_as_replicated 2024-11-20 19:47:00 +01:00
Vitaly Baranov
353ff951aa
Merge pull request #68885 from Unalian/feat-67772
Add CHECK GRANT query
2024-11-19 16:09:30 +00:00
Alexey Milovidov
8e0dc599b8
Merge pull request #71948 from Blargian/docs_add_example
Clean up `EXCEPT` docs
2024-11-18 02:45:58 +00:00
Alexey Milovidov
1062e6316f Fix cast 2024-11-18 01:35:03 +01:00
Blargian
af8d7c0b60 fix style 2024-11-14 23:14:41 +01:00
Blargian
1926f6ca4a clean up EXCEPT clause page and add an example of EXCEPT() 2024-11-14 23:09:49 +01:00
Nikita Taranov
94ce517dc1 upd docs 2024-11-13 22:41:30 +01:00
Shichao Jin
9eb0ac21ae
Merge pull request #71779 from petern48/fix_typo_column_docs
Fix typo in sql-reference/statements/alter/column.md
2024-11-11 20:32:12 +00:00
Peter Nguyen
621cb60446 Fix 'was was' typo in sql-reference/statements/alter/column.md 2024-11-11 11:12:01 -08:00
Robert Schulze
f57bf2ee15
Fix trash in the docs, pt. II 2024-11-11 09:54:37 +00:00
Mikhail Artemenko
3d7c560a25 Merge branch 'master' into issues/71020/staleness 2024-11-06 11:16:42 +00:00
Mikhail Artemenko
27efa29684 update docs 2024-11-05 18:04:59 +00:00
vdimir
a708e65ee5
Merge branch 'master' into vdimir/residual_join_conditions 2024-11-04 10:59:26 +00:00
vdimir
08ec69736f
review fix 2024-11-04 10:36:30 +00:00
pufit
e2c372f8b3
Merge pull request #71332 from ClickHouse/pufit/fix-inconsistent-ast-wildcard-grants
Fix inconsistent AST formatting when granting wrong wildcard grants
2024-11-01 18:48:34 +00:00
Nikita Mikhaylov
57fde54f10
Merge pull request #71250 from cwurm/missing_sources_grants
Add missing sources grants for Kafka, NATS and RabbitMQ
2024-11-01 15:08:19 +00:00
Dmitry Novik
a6e2a09843 Merge remote-tracking branch 'origin/master' into fix_docs_create_materialized_view_on_cluster 2024-11-01 14:23:57 +01:00
Vladimir Cherkasov
cdac4f600f
Merge branch 'master' into check-table-structure-completely-setting 2024-11-01 13:38:40 +01:00
pufit
7726866767 Fix inconsistent AST formatting when granting wrong wildcard grants 2024-10-31 22:25:04 -04:00
Thom O'Connor
33cbc540d5
Update kill.md - remove ON CLUSTER for KILL MUTATION
ON CLUSTER is not valid for KILL MUTATION, and will result in an exception. Correcting the docs for this syntax
2024-10-31 13:49:24 +00:00
Christoph Wurm
3b0273a5d3 Docs 2024-10-30 11:02:22 +00:00
Hiroaki Nakamura
d6acaeae5a
Fix doc for CREATE MATERIALIZED VIEW ON CLUSTER 2024-10-30 19:43:04 +09:00
Konstantin Bogdanov
1239137f24
Merge branch 'master' into valid_until_per_auth_method 2024-10-30 12:15:52 +03:00
pufit
934bd37160 Add a note that wildcard grants feature will be available only after 24.10 2024-10-29 00:48:31 -04:00
Shichao Jin
350cda4083
Merge pull request #71159 from alsugiliazova/backticks
Docs: add example to valid until docs with other timezone that requires non-obvious backticks around timezone
2024-10-29 00:10:21 +00:00
alsu
7a5a298cfd add example with other timezone that requires
non-obvious backticks
2024-10-28 23:26:25 +01:00
zwy991114
f878c551c7
Merge branch 'master' into check-table-structure-completely-setting 2024-10-25 12:02:51 +08:00
Robert Schulze
92a44372b3
Some fixups 2024-10-24 09:43:43 +00:00
Vladimir Cherkasov
aa58fde1d7
Cosmetic changes, upd setting name 2024-10-21 12:55:53 +02:00
jsc0218
691aff2cea Merge remote-tracking branch 'origin/master' into InsertWith 2024-10-17 18:08:30 +00:00
Arthur Passos
0eacc1f181
Merge branch 'master' into valid_until_per_auth_method 2024-10-15 09:25:58 -03:00
zhangwanyun1
6065de3073 Add setting check_table_structure_completely 2024-10-13 17:52:35 +08:00
jsc0218
4de51aaf4d add doc 2024-10-12 02:12:26 +00:00
Alsu Giliazova
3c05e515c2
Merge branch 'master' into Fix--Distinct-combinator-docs 2024-10-09 11:41:08 +02:00
pufit
a89b81852c
Merge branch 'master' into pufit/fix-implicit-grants 2024-10-08 09:45:02 +08:00