Commit Graph

12782 Commits

Author SHA1 Message Date
Raúl Marín
9bada70f45 Remove a bunch of transitive dependencies 2024-03-11 14:52:32 +01:00
vdimir
38b8e7ac7e
Maintain list of ASTRenameQuery children 2024-03-11 11:34:10 +00:00
kssenii
57f6263f67 Lock contention fix 2024-03-11 12:31:40 +01:00
Robert Schulze
e5e84419af
Fix clang-tidy-s 2024-03-11 10:58:54 +00:00
Kseniia Sumarokova
3832b0e126
Merge branch 'master' into add-a-way-to-force-read-through-filesystem-cache-for-merges 2024-03-11 11:30:03 +01:00
Alexey Milovidov
4373d5ba16 Merge branch 'master' into split-cast-overload-resolver 2024-03-11 03:01:50 +01:00
Igor Nikonov
97248d0d5b
Merge pull request #61052 from ClickHouse/fix-usan-parallel-replicas-prewhere
Fix: parallel replicas with PREWHERE (ubsan)
2024-03-10 19:32:18 +01:00
Sema Checherinda
80179e50e4
Merge pull request #58845 from ClickHouse/chesema-session-pool
HTTP connections pool
2024-03-10 14:06:59 +01:00
Alexey Milovidov
69cab686e4 Fix build of examples 2024-03-10 10:03:31 +01:00
Sema Checherinda
5c41727725 http connections pools 2024-03-10 10:00:18 +01:00
Alexey Milovidov
d8e3fa6dc1 Fix something strange 2024-03-10 09:35:57 +01:00
Alexander Tokmakov
854abd64d8
Merge pull request #60340 from ClickHouse/ddl_none_only_active
Add none_only_active DDL output mode
2024-03-08 22:20:40 +01:00
Igor Nikonov
e9b0852a97 Merge remote-tracking branch 'origin/master' into fix-usan-parallel-replicas-prewhere 2024-03-08 18:52:49 +00:00
Igor Nikonov
c090c6fb0a Fix 2024-03-08 18:52:15 +00:00
Nikita Mikhaylov
f73a8f2eae
More comments for column for system tables (#59016) 2024-03-08 18:05:56 +01:00
Dmitry Novik
526af77f4a
Merge pull request #60313 from ClickHouse/analyzer-refactor-constant-name
Analyzer: Refactor execution name for ConstantNode
2024-03-08 12:08:05 +01:00
Nikolai Kochetov
66127173e5
Merge pull request #60464 from ClickHouse/constant-folding-scalar-subqueries
Try to avoid calculation of scalar subqueries for CREATE TABLE.
2024-03-08 10:18:41 +01:00
Alexey Milovidov
e7f99280dc Less contention in the cache, part 1 2024-03-08 02:10:01 +01:00
Nikita Mikhaylov
8e3fc1044f
Reject INSERT if async_insert=1 + deduplicate_blocks_in_dependent_materialized_views=1 (#60888) 2024-03-07 20:39:56 +01:00
Igor Nikonov
3c24082253 Merge remote-tracking branch 'origin/master' into fix-usan-parallel-replicas-prewhere 2024-03-07 18:05:10 +00:00
Nikolai Kochetov
73cc3e1c92 Merge branch 'master' into constant-folding-scalar-subqueries 2024-03-07 17:49:31 +00:00
Igor Nikonov
a2bdb054ca Cleanup 2024-03-07 17:31:37 +00:00
Igor Nikonov
1b2357198d Fix: parallel replicas + prewhere 2024-03-07 17:03:43 +00:00
Sema Checherinda
820916b925
Merge pull request #60965 from ClickHouse/chesema-shuffle-ip
shuffle resolved IPs
2024-03-07 17:32:00 +01:00
Nikolai Kochetov
2b8cf8b6e9 Merge branch 'master' into constant-folding-scalar-subqueries 2024-03-07 16:06:55 +00:00
Nikolai Kochetov
2db1876750 Fixing analyzer. 2024-03-07 15:42:45 +00:00
Nikolai Kochetov
76bca1a743 Merge branch 'master' into allow-subqueries-for-in-parallel-replicas 2024-03-07 14:14:16 +00:00
Nikolai Kochetov
cd4b60b51a Rename the setting 2024-03-07 13:38:00 +00:00
Dmitry Novik
23b33e5e32 Merge remote-tracking branch 'origin/master' into analyzer-refactor-constant-name 2024-03-07 14:18:44 +01:00
Anton Popov
c103b0084b
Merge pull request #60205 from CurtizJ/refactor-virtual-columns
Refactoring of virtual columns
2024-03-07 13:38:35 +01:00
Sema Checherinda
62f9a00da8 shuffle resolved IPs 2024-03-07 13:09:26 +01:00
Amos Bird
f2a3ffe9eb
Replace some headers with forward decl 2024-03-07 18:10:09 +08:00
Nikita Taranov
4f6b1d0e7d
Merge pull request #60885 from nickitat/async_inserts_small_tweaks
Small changes in async inserts code
2024-03-06 23:03:50 +01:00
Nikita Taranov
f4fd4e6510
Merge pull request #60745 from jrdi/insert-select-deduplication-bug-reproducer
Fix insert-select + insert_deduplication_token bug by setting streams to 1
2024-03-06 21:02:30 +01:00
Dmitry Novik
d92538ced2
Merge branch 'master' into analyzer-refactor-constant-name 2024-03-06 17:55:52 +01:00
Nikolai Kochetov
2730f0b54f Allow subqueries for IN with parallel replicas under a setting. 2024-03-06 16:48:03 +00:00
vdimir
56b6810122
Merge pull request #60641 from ClickHouse/vdimir/analyzer/comute_alias_columns
Resubmit "Analyzer: compute ALIAS columns right after reading"
2024-03-06 16:52:16 +01:00
Anton Popov
f582797b36 Merge remote-tracking branch 'upstream/master' into HEAD 2024-03-06 14:14:42 +00:00
Dmitry Novik
b675268a9b
Merge pull request #60770 from ClickHouse/analyzer-settings-check
Fix crash with different allow_experimental_analyzer value in subqueries
2024-03-06 11:00:01 +01:00
Antonio Andelic
655f9cb195
Revert "Fix wacky primary key sorting in SHOW INDEX" 2024-03-06 08:57:20 +01:00
Nikolai Kochetov
b040eadaa1
Merge pull request #60510 from ClickHouse/refactor-system-one-block
Refactor StorageSystemOneBlock
2024-03-06 08:55:50 +01:00
Robert Schulze
8735c40ab2
Merge pull request #60514 from rschu1ze/show-index-sorting
Fix wacky primary key sorting in `SHOW INDEX`
2024-03-05 20:59:11 +01:00
Nikita Taranov
4f6cb21d51 set priority when scheduling task in thread pool 2024-03-05 19:45:25 +01:00
Anton Popov
7fe7f3a79d address review comments 2024-03-05 16:03:02 +00:00
vdimir
a8eeb899e3
Merge pull request #58278 from liuneng1994/optimize-all-join
Lazy build join output to improve performance of ALL join
2024-03-05 16:35:27 +01:00
Dmitry Novik
04370083bb Merge remote-tracking branch 'origin/master' into analyzer-refactor-constant-name 2024-03-05 14:57:00 +01:00
Jordi Villar
b4e90e5121 Address PR comments 2024-03-05 14:46:55 +01:00
Dmitry Novik
248c93ed2d
Change error code 2024-03-05 14:37:16 +01:00
Alexander Tokmakov
72a4533c4e Merge branch 'master' into ddl_none_only_active 2024-03-05 13:42:00 +01:00
Nikolai Kochetov
d4570aa3b2 Merge branch 'master' into constant-folding-scalar-subqueries 2024-03-05 12:14:54 +00:00
vdimir
6f3e9b6de2
Merge branch 'master' into vdimir/analyzer/comute_alias_columns 2024-03-05 13:08:58 +01:00
Robert Schulze
2c0b399c1f
Merge remote-tracking branch 'rschu1ze/master' into show-index-sorting 2024-03-05 11:27:32 +00:00
avogar
595c75ec53 Merge branch 'master' of github.com:ClickHouse/ClickHouse into max-parallel-replicas-validate 2024-03-05 11:19:04 +00:00
Kseniia Sumarokova
dbbe6b9f69
Merge branch 'master' into add-a-way-to-force-read-through-filesystem-cache-for-merges 2024-03-05 11:13:32 +08:00
Alexey Milovidov
8aeffa0356
Merge pull request #60765 from Avogar/fix-crash-in-input-join
Fix crash when using input() in INSERT SELECT JOIN
2024-03-05 04:32:50 +03:00
Nikolai Kochetov
819e7bfc77 Merge branch 'master' into refactor-system-one-block 2024-03-04 21:03:45 +00:00
Alexey Milovidov
a7430004b3 Fix real time query profiler on AArch64 2024-03-04 18:13:49 +01:00
Raúl Marín
96826ee8e1
Merge pull request #60362 from Algunenano/parallel_replicas_cte_2
Force reanalysis if parallel replicas changed
2024-03-04 17:16:17 +01:00
Alexey Milovidov
de6c5d3a40
Merge pull request #60552 from ClickHouse/pc2
Userspace page cache again
2024-03-04 17:47:35 +03:00
Dmitry Novik
f2387262ce Fix crash with different allow_experimental_analyzer value in subqueries 2024-03-04 15:32:15 +01:00
robot-ch-test-poll3
580f0f02d3
Merge pull request #60728 from ClickHouse/remove-old-code-5
Remove old code
2024-03-04 14:46:10 +01:00
Jordi Villar
1da1bbeae2 Set streams to 1 when using insert_deduplication_token 2024-03-04 14:35:57 +01:00
Dmitry Novik
01829450fb Merge remote-tracking branch 'origin/master' into analyzer-refactor-constant-name 2024-03-04 14:12:15 +01:00
avogar
ddf0dd7eb8 Fix crash when using input() in INSERT SELECT JOIN 2024-03-04 12:19:47 +00:00
Alexander Tokmakov
2e64b6722f
Revert "Synchronize parsers" 2024-03-04 11:42:21 +01:00
lgbo-ustc
aca219773b Merge remote-tracking branch 'origin/master' into hash_join_bug_59625 2024-03-04 10:51:26 +08:00
Alexey Milovidov
da2481c5c8 Merge remote-tracking branch 'origin/master' into remove-old-code-5 2024-03-04 00:12:03 +01:00
Alexey Milovidov
cbf5443585 Remove old code 2024-03-04 00:11:55 +01:00
Alexey Milovidov
fc7e66accb Fix build 2024-03-03 04:41:44 +01:00
Alexey Milovidov
6771e99d9f Merge branch 'master' into ddl_none_only_active 2024-03-03 03:09:24 +01:00
Yakov Olkhovskiy
3825cb3ad0 expand CTE in alter modify query 2024-03-02 15:28:45 +00:00
Nikita Taranov
4735eb3ab4 wait for pool jobs in case of exception on scheduling 2024-03-02 00:02:00 +01:00
Anton Popov
1b9e6c936e better interfaces for virtual columns 2024-03-01 22:29:56 +00:00
Nikita Taranov
bcd3ad01de
Merge pull request #55809 from amosbird/alt-51399
Improve the performance of serialized aggregation method when involving multiple [nullable] columns
2024-03-01 22:44:56 +01:00
Anton Popov
95611889dc fix tests 2024-03-01 18:44:33 +00:00
vdimir
47aa33408b
Resubmit "Analyzer: compute ALIAS columns right after reading"
This reverts commit 8141e1c3d1, reversing
changes made to fb099bbd62.
2024-03-01 14:53:02 +00:00
Raúl Marín
0dcaf3f2bb Merge remote-tracking branch 'blessed/master' into parallel_replicas_cte_2 2024-03-01 15:50:58 +01:00
Nikita Mikhaylov
4fd64a696b
Merge pull request #56942 from shabroo/master
Emit a warning in clickhouse-client if Ordinary database engine is used
2024-03-01 15:42:28 +01:00
Nikolai Kochetov
af5dae58ca Merge branch 'master' into refactor-system-one-block 2024-03-01 13:42:00 +00:00
Nikolai Kochetov
9211495fed Merge branch 'master' into constant-folding-scalar-subqueries 2024-03-01 12:06:26 +00:00
Raúl Marín
77752a63c7 Merge remote-tracking branch 'blessed/master' into parallel_replicas_cte_2 2024-03-01 12:48:23 +01:00
Robert Schulze
0231422ce7
Merge remote-tracking branch 'rschu1ze/master' into show-index-sorting 2024-03-01 11:41:21 +00:00
Robert Schulze
6d89455525
Merge pull request #60523 from rschu1ze/clang-tidy-src
Fix a bunch of clang-tidy warnings in headers
2024-03-01 12:37:48 +01:00
Robert Schulze
3a5c9b627b
Merge remote-tracking branch 'rschu1ze/master' into clang-tidy-src 2024-03-01 10:31:55 +00:00
Robert Schulze
dade55fc19
Merge remote-tracking branch 'ClickHouse/master' into query_cache_minor_change 2024-03-01 10:02:53 +00:00
Kseniia Sumarokova
5ac53c9578
Merge branch 'master' into add-a-way-to-force-read-through-filesystem-cache-for-merges 2024-03-01 11:05:47 +08:00
Anton Popov
caf50f4ea1 fix test 2024-02-29 21:09:12 +00:00
Julia Kartseva
891689a415
Merge pull request #60196 from azat/preliminary-filters-fix
Fix actions execution during preliminary filtering (PK, partition pruning)
2024-02-29 10:17:05 -08:00
Anton Popov
8a4e15536b refactoring of virtual columns 2024-02-29 18:01:54 +00:00
Raúl Marín
b7c884660a Merge remote-tracking branch 'blessed/master' into parallel_replicas_cte_2 2024-02-29 17:51:29 +01:00
Robert Schulze
6e5d6ad1c6
Merge remote-tracking branch 'ClickHouse/master' into query_cache_minor_change 2024-02-29 16:00:25 +00:00
Robert Schulze
be47036e3a
Merge remote-tracking branch 'rschu1ze/master' into show-index-sorting 2024-02-29 15:58:18 +00:00
Robert Schulze
4ee1aa8c7c
Fixing more headers 2024-02-29 15:40:30 +00:00
Yarik Briukhovetskyi
38bf7cfb59
Merge pull request #60004 from yariks5s/fix_datetime64_scale_conversion
Fix scale conversion for DateTime64
2024-02-29 15:45:54 +01:00
Amos Bird
3b04f5c605
Improve the performance of serialized aggregation method when involving multiple [nullable] columns. 2024-02-29 21:48:15 +08:00
Michael Kolupaev
cc893ad33c Merge remote-tracking branch 'origin/master' into pc2 2024-02-29 13:30:04 +00:00
Alexander Tokmakov
2dedfd6cf9
Revert "Analyzer: compute ALIAS columns right after reading" 2024-02-29 14:22:07 +01:00
Raúl Marín
f1132cfa1a Merge remote-tracking branch 'blessed/master' into parallel_replicas_cte_2 2024-02-29 14:11:46 +01:00
Nikita Mikhaylov
225775f499 Merge branch 'master' of github.com:ClickHouse/ClickHouse into shabroo/master 2024-02-29 13:06:20 +00:00
Robert Schulze
ed655815fe
Merge remote-tracking branch 'rschu1ze/master' into clang-tidy-src 2024-02-29 12:58:53 +00:00
serxa
5de16e4987 Merge branch 'master' into fix-db-shutdown-with-async-loader 2024-02-29 12:41:59 +00:00
Michael Kolupaev
42437a2ae1 Userspace page cache (#53770)
* Userspace page cache

* Maybe it'll build this time, who knows.

* 'auto' went out of fashion, I guess

* Documentation, tsan workaround, metric 'UnreclaimableRss', disable page cache in the test that uses DatabaseOrdinary

* Moved CachedInMemoryReadBufferFromFile to object store level, changed settings, addressed other comments.

* Fix

* Another fix

* Fix restricted seek, fix ppc64le build

* Don't allow page cache with file cache

* Adjust tests a little

* Fix clang-tidy

* Conflicts

* Comments

* Maybe unbroke AsynchronousBoundedReadBuffer

* SettingsChangesHistory.h

* Fix warning in test
2024-02-29 12:28:32 +00:00
Alexander Tokmakov
15e1191f74
Revert "Userspace page cache (#53770)"
This reverts commit 7b55c61551.
2024-02-29 13:20:17 +01:00
Robert Schulze
936c6bf5ae
Merge remote-tracking branch 'ClickHouse/master' into query_cache_minor_change 2024-02-29 11:30:05 +00:00
Robert Schulze
b7f1cb595e
Merge remote-tracking branch 'rschu1ze/master' into show-index-sorting 2024-02-29 11:28:29 +00:00
Michael Kolupaev
7b55c61551
Userspace page cache (#53770)
* Userspace page cache

* Maybe it'll build this time, who knows.

* 'auto' went out of fashion, I guess

* Documentation, tsan workaround, metric 'UnreclaimableRss', disable page cache in the test that uses DatabaseOrdinary

* Moved CachedInMemoryReadBufferFromFile to object store level, changed settings, addressed other comments.

* Fix

* Another fix

* Fix restricted seek, fix ppc64le build

* Don't allow page cache with file cache

* Adjust tests a little

* Fix clang-tidy

* Conflicts

* Comments

* Maybe unbroke AsynchronousBoundedReadBuffer

* SettingsChangesHistory.h

* Fix warning in test
2024-02-29 11:27:32 +00:00
vdimir
5dd81f38fb
Merge pull request #59595 from ClickHouse/vdimir/analyzer/comute_alias_columns
Analyzer: compute ALIAS columns right after reading
2024-02-29 10:28:31 +01:00
Alexey Milovidov
7c0ee5a783
Merge pull request #60198 from Avogar/variant-improvements
Fixes and improvements for Variant type
2024-02-29 03:27:22 +03:00
Robert Schulze
a1c164a758
Fix a bunch of clang-tidy warnings in headers 2024-02-28 23:43:12 +00:00
Alexey Milovidov
e1e66dc2b8
Merge pull request #60095 from ClickHouse/fix-inconsistent-formatting
Fix inconsistent formatting of queries
2024-02-29 00:41:40 +03:00
Nikita Mikhaylov
938976d8c3 Merge branch 'master' of github.com:ClickHouse/ClickHouse into shabroo/master 2024-02-28 21:40:43 +00:00
Robert Schulze
2ccaf954f6
Fix wacky primary key sorting in SHOW INDEX 2024-02-28 20:46:37 +00:00
Anton Popov
0ceeb13b7f refactoring of virtual columns 2024-02-28 19:58:55 +00:00
Robert Schulze
a58869303f
Added comment 2024-02-28 19:36:15 +00:00
Robert Schulze
d3b942cec5
Merge remote-tracking branch 'ClickHouse/master' into query_cache_minor_change 2024-02-28 19:35:31 +00:00
Nikolai Kochetov
53714e6f7a Refactor StorageSystemOneBlock 2024-02-28 19:10:00 +00:00
Raúl Marín
4023e67ac5
Merge pull request #60138 from Algunenano/max_threads_sanity
Add sanity check for number of threads and block size
2024-02-28 19:05:55 +01:00
Kruglov Pavel
a7eabbbe3a
Merge branch 'master' into variant-improvements 2024-02-28 17:38:54 +01:00
Alexey Milovidov
b0ab0b37db
Merge pull request #60434 from ClickHouse/revert-60216-revert-59697-check-stack-size-in-parser
Revert "Revert "Check stack size in Parser""
2024-02-28 19:20:49 +03:00
Alexey Milovidov
1950a75bd4 Merge branch 'master' into fix-inconsistent-formatting 2024-02-28 17:10:29 +01:00
Raúl Marín
2cea787f81 Merge remote-tracking branch 'blessed/master' into parallel_replicas_cte_2 2024-02-28 16:44:55 +01:00
Anton Popov
9f8ac76345 Merge remote-tracking branch 'upstream/master' into HEAD 2024-02-28 14:42:37 +00:00
Kruglov Pavel
f1b2dbaeb5
Merge pull request #60353 from Avogar/validate-nested-types-under-a-setting
Validate experimental and suspicious types inside nested types under a setting
2024-02-28 13:36:11 +01:00
avogar
929d83d46f Merge branch 'master' of github.com:ClickHouse/ClickHouse into max-parallel-replicas-validate 2024-02-28 12:31:46 +00:00
Raúl Marín
3920120260
Merge pull request #60453 from Algunenano/fix_preimagepass
Fix OptimizeDateOrDateTimeConverterWithPreimageVisitor with null arguments
2024-02-28 13:15:04 +01:00
pufit
330a206470
Add definers for views (Attempt 2) (#60439) 2024-02-27 19:00:17 -05:00
Nikita Taranov
90c9ae1b22
Merge pull request #59448 from nickitat/insert_with_max_insert_threads_into_remote_tables
More parallel insert-select pipeline
2024-02-28 00:54:16 +01:00
Alexey Milovidov
8cf619bc03 Merge branch 'master' of github.com:ClickHouse/ClickHouse into fix-inconsistent-formatting 2024-02-28 00:30:44 +01:00
Alexey Milovidov
9ea7ff231b
Merge pull request #60448 from ClickHouse/clang-19
Update to clang-19
2024-02-27 23:38:08 +03:00
Nikolai Kochetov
1b79c0a381 Fixing tests. 2024-02-27 19:42:49 +00:00
Nikolai Kochetov
dd458932c9 Try to avoid calculation of scalar subqueries for CREATE TABLE. 2024-02-27 17:46:13 +00:00
Alexey Milovidov
0f3c9963d1 Merge branch 'master' of github.com:ClickHouse/ClickHouse into revert-60216-revert-59697-check-stack-size-in-parser 2024-02-27 17:30:32 +01:00
Dmitry Novik
33ae650e6a Merge remote-tracking branch 'origin/master' into analyzer-refactor-constant-name 2024-02-27 16:35:28 +01:00
kssenii
ffd69e0e12 Move setting to merge-tree level 2024-02-27 23:22:04 +08:00
Raúl Marín
0a243c3c57 Fix 2024-02-27 16:17:48 +01:00
Robert Schulze
0f6bec7842
Merge pull request #59291 from azat/dist/config-settings
Support specifying settings for Distributed engine in config (like for MergeTree)
2024-02-27 16:10:51 +01:00
Raúl Marín
e81c2ede2a Add setting to control preimage optimization 2024-02-27 15:58:42 +01:00
Alexey Milovidov
7c6e28708b
Merge pull request #60370 from ClickHouse/remove-alter-live-view
Remove ALTER LIVE VIEW
2024-02-27 17:45:59 +03:00
Nikita Mikhaylov
8719a601fa
Merge pull request #60436 from nickitat/revert_56864
Revert "Merge pull request #56864 from ClickHouse/broken-projections-better-handling"
2024-02-27 15:25:15 +01:00
Alexey Milovidov
c192a448d0 Update to clang-19 2024-02-27 14:37:21 +01:00
Raúl Marín
753056eed7
Merge branch 'master' into parallel_replicas_cte_2 2024-02-27 14:06:02 +01:00
Nikolai Kochetov
63b4457991
Merge pull request #60360 from ClickHouse/follow-up-60082
Follow up #60082
2024-02-27 12:50:25 +01:00
Raúl Marín
c9dd6fe8d5
Set max_parallel_replicas to 1 when disabling 2024-02-27 12:35:14 +01:00
liuneng
c1df83a27f refactor code 2024-02-27 14:04:54 +08:00
Nikita Taranov
854f1b064b Revert "Merge pull request #56864 from ClickHouse/broken-projections-better-handling"
This reverts commit caaafbcedb, reversing
changes made to d45b248f96.
2024-02-27 00:13:28 +01:00
Alexey Milovidov
04fe5dc55c Merge branch 'master' into fix-inconsistent-formatting 2024-02-26 23:46:24 +01:00
Alexey Milovidov
0b90076a36
Revert "Revert "Check stack size in Parser"" 2024-02-27 01:34:50 +03:00
Robert Schulze
4794dc28f0
Merge remote-tracking branch 'ClickHouse/master' into dist/config-settings 2024-02-26 21:57:33 +00:00
avogar
ac4af6a4ad Don't allow to set max_parallel_replicas to 0 as it doesn't make sense 2024-02-26 19:58:49 +00:00
Alexey Milovidov
ad99bb95a3
Merge pull request #60388 from ClickHouse/remove-useless-method-2
Remove unused method
2024-02-26 21:05:37 +03:00