Commit Graph

12955 Commits

Author SHA1 Message Date
kssenii
f7ef5734fa Add more comments 2024-03-25 12:10:26 +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
zhongyuankai
7e264839c9 bug fix 2024-03-25 11:04:12 +08:00
Alexey Milovidov
cbf3b5ea02 Fix error 2024-03-25 03:41:52 +01:00
Alexey Milovidov
d488d4fac5 Remove unused headers 2024-03-25 03:38:47 +01:00
Alexey Milovidov
e3dd42131c Fix build 2024-03-25 03:38:47 +01:00
Alexey Milovidov
4813014710 Merge with master 2024-03-25 03:38:47 +01:00
Alexey Milovidov
29d51d71b7 Fix the name 2024-03-25 03:38:47 +01:00
Duc Canh Le
271342a871 change column name from duration_ms to duration_us in system.zookeeper
Signed-off-by: Duc Canh Le <duccanh.le@ahrefs.com>
2024-03-25 03:38:46 +01:00
Alexey Milovidov
3d5908b876 Merge branch 'master' into get-client-http-header 2024-03-25 03:27:18 +01:00
Alexey Milovidov
8c6a6f2b71
Merge pull request #61832 from azat/dist/flush-settings
Add ability to override initial INSERT SETTINGS via SYSTEM FLUSH DISTRIBUTED
2024-03-25 03:09:01 +03:00
Alexey Milovidov
baef1cd4d2 Merge branch 'master' into get-client-http-header 2024-03-24 21:37:14 +01:00
Azat Khuzhin
35722be8ec Add ability to override initial INSERT SETTINGS via SYSTEM FLUSH DISTRIBUTED
This is useful to overwrite settings in the initial query during force
flush with SYSTEM FLUSH DISTRIBUTED.

For example imagine that your server is out of queries
(max_max_concurrent_queries_for_all_users had been reached), but you
want to flush the distributed table anyway, after this patch you can
use something like this:

    SYSTEM FLUSH DISTRIBUTED dist SETTINGS max_concurrent_queries_for_all_users=1000000

And also fix flush_on_detach for SYSTEM FLUSH DISTRIBUTED, it should
ignore flush_on_detach.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-03-24 21:32:34 +01:00
Alexey Milovidov
51aada55b1
Merge pull request #61736 from ClickHouse/cucurbita
Fix segfault in SquashingTransform
2024-03-24 22:01:41 +03:00
kssenii
b87b280e38 Adjust check for duplicate queue entry 2024-03-24 15:15:59 +01:00
Alexey Milovidov
008c252a26
Merge pull request #61365 from evillique/fix-attach-on-cluster
Fix ATTACH query with external ON CLUSTER
2024-03-24 04:17:42 +03:00
kssenii
b91184219d SLRU: disallow concurrent priority increase if there is unfinished space reservation 2024-03-23 22:29:29 +01:00
Alexey Milovidov
e195806c5b Add function getClientHTTPHeader, part 1 2024-03-23 20:52:26 +01:00
Antonio Andelic
61e74cc2df
Merge pull request #61752 from ClickHouse/keeper-destroy-dispatcher-first
Keeper fix: destroy `KeeperDispatcher` first
2024-03-23 18:51:32 +01:00
kssenii
d3c6836e2b More logging 2024-03-23 12:25:16 +01:00
Alexander Tokmakov
ace983f3d5 skip more sanity checks for secondary create queries 2024-03-23 00:03:31 +01:00
Alexey Milovidov
a56c113c83 Fix for clang-19 2024-03-22 22:12:59 +01:00
Alexey Milovidov
14c616e696 Fix for clang-19 2024-03-22 21:29:42 +01:00
vdimir
a1036075e0
Merge branch 'master' into vdimir/using_alias_followup 2024-03-22 20:16:26 +00:00
Michael Kolupaev
84daaa1c7e Style 2024-03-22 20:00:42 +00:00
kssenii
b69e4541b9 Unify code in SLRU 2024-03-22 18:06:46 +01:00
Nikolai Kochetov
41d9b19a4a
Merge pull request #61059 from ClickHouse/fix-parallel-replicas-explain-syntax-crash
Fix: parallel replicas with CTEs, crash in EXPLAIN SYNTAX with analyzer
2024-03-22 18:06:30 +01:00
Nikolay Degterinsky
83ccd2a144 Merge remote-tracking branch 'upstream/master' into fix-attach-on-cluster 2024-03-22 16:06:01 +00:00
avogar
47095f63b1 Fix writing exception message in output format in HTTP when http_wait_end_of_query is used 2024-03-22 16:03:28 +00:00
kssenii
272ae1d6ea Fixes 2024-03-22 16:13:06 +01:00
Alexander Tokmakov
9082a018a5
Merge pull request #59082 from ClickHouse/fix_race_async_inserts_queue
Fix race on `Context::async_insert_queue`
2024-03-22 16:06:13 +01:00
Antonio Andelic
6a681e074f Fix build 2024-03-22 15:17:28 +01:00
Sergei Trifonov
7013b84445
Merge branch 'master' into more-log-for-async-loader 2024-03-22 11:11:51 +01:00
Antonio Andelic
5beabe071c Destroy KeeperDispatcher first 2024-03-22 09:43:39 +01:00
pufit
216dcbef2c
Correct revoke for the partially granted rights. (#61115)
* Correct revoke for the partially granted rights.
2024-03-22 02:13:51 -04:00
robot-ch-test-poll
03a4b5fb58
Merge pull request #61053 from ClickHouse/async-loader-waiters-limit
Separate limits on number of waiting and executing queries
2024-03-22 03:15:25 +01:00
Michael Kolupaev
7ac41d7fc1 Fix segfault in SquashingTransform 2024-03-21 23:25:55 +00:00
yariks5s
6a19b77d9e init 2024-03-21 18:39:05 +00:00
Alexey Milovidov
8670f1dc91
Merge pull request #61543 from ClickHouse/fix-regexp-recompilation-in-parser
Fix recompilation of regexps during backtracking in the parser
2024-03-21 21:15:17 +03:00
kssenii
87b1e0ead2 Add more logging 2024-03-21 18:22:11 +01:00
Vitaly Baranov
1acc0ebe79
Merge pull request #61356 from vitlibar/fix-replace-dictionary
Fix CREATE OR REPLACE DICTIONARY
2024-03-21 16:45:06 +01:00
Igor Nikonov
f36e19917f Disable analyzer for EXPLAIN SYNTAX queries 2024-03-21 15:27:39 +00:00
Dmitry Novik
e4209218d4
Merge pull request #60497 from ClickHouse/analyzer-distr-json
Analyzer: Support different ObjectJSON on shards
2024-03-21 16:25:30 +01:00
kssenii
b1e03abc1f One more fix for SLRU 2024-03-21 12:51:26 +01:00
serxa
c31b958f88 Merge branch 'master' into async-loader-waiters-limit 2024-03-21 10:58:22 +00:00
vdimir
15bf6d1d5f
Merge branch 'master' into vdimir/using_alias_followup 2024-03-21 10:39:18 +00:00
vdimir
9b51780458
Merge pull request #60896 from loudongfeng/master_smj_nullorder
make nulls direction configuable for FullSortingMergeJoin
2024-03-21 10:40:43 +01:00
Antonio Andelic
c06a509033
Merge pull request #61654 from ClickHouse/fix-aggregator-variant
Fix Aggregator when data is empty
2024-03-21 08:48:15 +01:00
Alexey Milovidov
99ed82d561 Merge branch 'master' into fix-regexp-recompilation-in-parser 2024-03-21 02:21:09 +01:00
Alexey Milovidov
97b7daef84
Merge pull request #61604 from Algunenano/nested_includes
Reduce header dependencies
2024-03-21 02:02:17 +03:00
kssenii
e9bc922d94 Fix SLRU case, not yet working 2024-03-20 21:02:04 +01:00
Alexander Tokmakov
d190ee8113
Update AsynchronousInsertQueue.h 2024-03-20 19:19:30 +01:00
vdimir
2753042387
Merge branch 'master' into vdimir/using_alias_followup 2024-03-20 17:29:13 +00:00
vdimir
c799bfd016
Analyzer: fixes for join using columns 2024-03-20 17:13:59 +00:00
Robert Schulze
35cc335597
Revert "Un-flake test_undrop_query" 2024-03-20 18:04:35 +01:00
Antonio Andelic
9bf50ac814 Fix aggregator when data is empty 2024-03-20 14:50:26 +01:00
Raúl Marín
c98634ad8c Merge remote-tracking branch 'blessed/master' into nested_includes 2024-03-20 14:08:10 +01:00
Kruglov Pavel
e7e11d738b
Merge branch 'master' into revert-61200-revert-60430-max-parallel-replicas-validate 2024-03-20 13:59:38 +01:00
Dmitry Novik
10bf164aa7 Cleanup #ci_set_analyzer 2024-03-20 10:47:15 +01:00
kssenii
fd7c732c12 Add one more comment, better cache policy randomizer 2024-03-19 23:09:17 +01:00
kssenii
4940162959 Add comments 2024-03-19 22:44:08 +01:00
Alexander Tokmakov
7275caf5bb
Update Context.cpp 2024-03-19 22:40:00 +01:00
Vitaly Baranov
2f4b9b3a5b Add few notes and a debug check. 2024-03-19 22:07:13 +01:00
Alexander Tokmakov
1913466da4 fix uaf of async_insert_queue 2024-03-19 21:07:42 +01:00
Alexey Milovidov
a996155e83 Merge branch 'master' of github.com:ClickHouse/ClickHouse into fix-regexp-recompilation-in-parser 2024-03-19 19:56:11 +01:00
Alexey Milovidov
b561560c99 Remove it from remaining places 2024-03-19 19:55:59 +01:00
Dmitry Novik
221b74c77f Fix #ci_set_analyzer 2024-03-19 19:44:15 +01:00
Alexander Tokmakov
5d7e5e5a72 Merge branch 'master' into fix_race_async_inserts_queue 2024-03-19 19:39:25 +01:00
Dmitry Novik
302179c81d Merge remote-tracking branch 'origin/master' into analyzer-distr-json 2024-03-19 18:56:04 +01:00
Maksim Kita
f4d20a79b0 Fixed build 2024-03-19 19:07:45 +03:00
Maksim Kita
ec6c276a92 Temporary data use temporary_files_codec setting 2024-03-19 19:07:45 +03:00
Raúl Marín
de855ca917 Reduce header dependencies 2024-03-19 17:04:29 +01:00
Nikolay Degterinsky
4e2e5a015b
Fixes 2024-03-19 16:29:50 +01:00
Alexey Milovidov
018316c78a
Merge pull request #61211 from bigo-sg/split_aggregator
Too big translation unit in `Aggregator`
2024-03-19 17:29:24 +03:00
kssenii
595165add0 Merge remote-tracking branch 'origin/master' into filecache-better-try-reserve 2024-03-19 15:12:55 +01:00
kssenii
6a29268d5a Fix 2024-03-19 15:11:06 +01:00
Nikolai Kochetov
240242da22
Merge pull request #61580 from ClickHouse/follow-up-61458
Add a comment after #61458
2024-03-19 14:06:24 +01:00
Nikolai Kochetov
f2f770d73a
Update src/Interpreters/ActionsDAG.h
Co-authored-by: Sergei Trifonov <sergei@clickhouse.com>
2024-03-19 13:37:21 +01:00
Nikolai Kochetov
ba6d6e9258 Add a comment after #61458 2024-03-19 11:40:03 +00:00
János Benjamin Antal
922df7d60e
Merge pull request #61003 from amosbird/less-header-1
Replace some header includes with forward declarations
2024-03-19 12:14:06 +01:00
Alexander Tokmakov
dd50091513
Merge pull request #60338 from PapaToemmsn/test-transaction-fixes
fix for #57598 (ROLLBACK should be no-op...)
2024-03-19 11:56:25 +01:00
Kseniia Sumarokova
73487600c1
Merge pull request #61524 from ClickHouse/better-dynamic-cache-size-reloading-part-1
Less contention during dynamic resize of filesystem cache
2024-03-19 11:41:44 +01:00
lgbo-ustc
4eeb9a7e83 Merge remote-tracking branch 'origin/master' into split_aggregator 2024-03-19 16:32:01 +08:00
nemonlou
8ff21d7e47 fix review comments 2024-03-19 11:29:22 +08:00
nemonlou
0b5fc743f2 make nulls direction configuable for FullSortingMergeJoin(fix review comments) 2024-03-19 09:58:07 +08:00
nemonlou
a1a4bd3514 make nulls direction configuable for FullSortingMergeJoin 2024-03-19 09:58:07 +08:00
Vitaly Baranov
c8375cd167 Better code: remove unnecessary usage of const_cast and std::function. 2024-03-19 02:56:38 +01:00
Vitaly Baranov
306f642d97 Update dictionary's comment in the same safe manner too. 2024-03-19 02:56:33 +01:00
robot-ch-test-poll3
e82cf5d5ba
Merge pull request #61528 from ClickHouse/revert-61518-revert-61298-analyzer-merge-virtual-columns
Revert "Revert "Analyzer: Fix virtual columns in StorageMerge""
2024-03-18 23:51:55 +01:00
PapaToemmsn
fbc8a19a02
Merge branch 'ClickHouse:master' into test-transaction-fixes 2024-03-18 22:42:10 +01:00
Robert Schulze
0daaeeab78
Merge pull request #61406 from rschu1ze/enable-clang-tidy-in-headers
Enable clang-tidy in headers
2024-03-18 21:43:26 +01:00
serxa
69ef7c6f19 add logging 2024-03-18 18:15:54 +00:00
Alexey Milovidov
613c31038a Fix recompilation of regexps during backtracking in the parser 2024-03-18 18:40:47 +01:00
Nikita Mikhaylov
15896ecaf6
Add table system.keywords [Part 1] (#51808) 2024-03-18 16:58:57 +01:00
kssenii
caaaacb9a2 Fix case when only one of the limits (size || elements_count) is not satisfied, which lead to it not being satisfied at second phase of space reservation 2024-03-18 16:38:43 +01:00
Dmitry Novik
836fe46c33 Disable new analyzer in MutationsInterpreter #ci_set_analyzer 2024-03-18 15:50:58 +01:00
PapaToemmsn
46a43fefdf
Merge branch 'ClickHouse:master' into test-transaction-fixes 2024-03-18 15:17:55 +01:00
PapaToemmsn
364fe95b76 fix style check errors 2024-03-18 14:14:52 +00:00
PapaToemmsn
da3cb02df5 COMMIT/ROLLBACK with no active transaction do not throw an exception for MySQL clients anymore 2024-03-18 14:14:51 +00:00