Commit Graph

9125 Commits

Author SHA1 Message Date
Nikolai Kochetov
aaecc233b2 Disable logical expression optimizer for expression with aliases. Never use it with optimize_min_equality_disjunction_chain_length=0 2023-03-10 20:14:35 +00:00
Nikolai Kochetov
d2c28fb555 Apply settings for explain subquery as well. 2023-03-10 18:29:13 +00:00
Nikolai Kochetov
f6ac225f98 Apply settings for EXPLAIN earlier (in the same way we do for SELECT). 2023-03-10 15:24:47 +00:00
Vladimir C
12480f60b5
Merge pull request #47068 from ClickHouse/vdimir/auto-join-cross 2023-03-10 16:12:46 +01:00
Sema Checherinda
1260f6910f
Merge pull request #47398 from CheSema/additional-asserts
add checks for ptr
2023-03-10 12:32:51 +01:00
Kseniia Sumarokova
7cbf77a178
Update LRUFileCachePriority.cpp 2023-03-09 19:55:58 +01:00
Alexander Tokmakov
9a95e7b4ee
Merge pull request #47312 from ClickHouse/fix_implicit_transactions
Fix an assertion with implicit transactions in interserver mode
2023-03-09 16:47:40 +03:00
Alexander Tokmakov
f8b4af27b2
Merge pull request #47365 from ClickHouse/supress_01111_in_upgrade_check
Suppress expected errors from test 01111 in Upgrade check
2023-03-09 16:46:30 +03:00
Sema Checherinda
7bf1b83414 add checks 2023-03-09 12:37:57 +01:00
Roman Vasin
f42f3ee655
Merge branch 'master' into ADQM-639 2023-03-09 09:48:33 +03:00
Azat Khuzhin
d7b5e36218
Merge branch 'master' into mv-ignore-errors 2023-03-08 22:13:05 +01:00
Antonio Andelic
a04b38db90
Merge pull request #45108 from ClickHouse/custom-key-parallel-replicas
Add support for custom key in parallel replicas
2023-03-08 17:46:11 +01:00
Alexander Tokmakov
38f9f08e1a
Merge pull request #47268 from myrrc/improvement/more-to-base-3
use std::lerp, constexpr hex.h
2023-03-08 19:07:34 +03:00
Alexander Tokmakov
debd69f03a fix an assertion with implicit transactions in interserver mode 2023-03-08 16:53:23 +01:00
Alexander Tokmakov
ecab007486
Merge pull request #47310 from ClickHouse/vdimir/fix_transaction_read_only
Fix MergeTreeTransaction::isReadOnly
2023-03-08 18:02:19 +03:00
Alexander Tokmakov
0fb537e880 suppress expected errors from test 01111 in Upgrade check 2023-03-08 15:27:43 +01:00
Kruglov Pavel
c2079e708b
Merge pull request #47161 from Avogar/fix-deadlock
Fix possible deadlock in QueryStatus
2023-03-08 14:05:30 +01:00
Maksim Kita
299b1d8fed
Merge pull request #45910 from ClickHouse/analyzer-group-by-use-nulls
Support `group_by_use_nulls` setting in new analyzer
2023-03-08 13:14:10 +03:00
Antonio Andelic
816a9c1099
Merge branch 'master' into custom-key-parallel-replicas 2023-03-08 11:06:30 +01:00
Igor Nikonov
cc5b97b624
Merge pull request #46997 from AndyBys/log-level-change
Change level log in executeQuery
2023-03-08 10:36:21 +01:00
Vladimir C
4f048ce535
Merge pull request #47153 from ClickHouse/vdimir/grace_hash_limit_race_45986 2023-03-08 10:18:32 +01:00
Mike Kot
9920a52c51 use std::lerp, constexpr hex.h 2023-03-07 22:50:17 +00:00
Alexander Tokmakov
ffd55d951d
Merge branch 'master' into followup_46681 2023-03-07 23:38:06 +03:00
vdimir
86410a7a3f
Fix MergeTreeTransaction::isReadOnly 2023-03-07 16:16:51 +00:00
Dmitry Novik
13f1e5b022 Merge remote-tracking branch 'origin/master' into analyzer-group-by-use-nulls 2023-03-07 16:16:48 +00:00
Nikolai Kochetov
0da310c8dc
Update ProcessList.cpp 2023-03-07 15:30:40 +01:00
Alexander Tokmakov
7ce20f5cd2 fix tests 2023-03-07 14:25:28 +01:00
Antonio Andelic
f408f750eb Disable parallel replicas for joins 2023-03-07 11:24:46 +00:00
Antonio Andelic
2ae0bceb2b Address PR comments 2023-03-07 10:56:11 +00:00
Antonio Andelic
35c15e6ef8 Merge branch 'master' into custom-key-parallel-replicas 2023-03-07 09:37:38 +00:00
Igor Nikonov
838ff88abe
Merge branch 'master' into log-level-change 2023-03-06 18:00:49 +01:00
Roman Vasin
cf85915466 Refactor grants logic, create test for grants, update docs 2023-03-06 16:37:41 +00:00
Mike Kot
4bc443f3c7 initial solution 2023-03-06 19:35:00 +03:00
Vladimir C
3076e92980
Apply suggestions from code review
Co-authored-by: Igor Nikonov <954088+devcrafter@users.noreply.github.com>
2023-03-06 16:56:02 +01:00
Kruglov Pavel
e4751f95e1
Fix typo 2023-03-06 14:56:05 +01:00
Kruglov Pavel
aa776d00fe
Use executors snapshot 2023-03-06 13:24:36 +01:00
kssenii
b4e492c78c Fix stress test 2023-03-06 12:56:16 +01:00
Roman Vasin
7dc0f8705c
Merge branch 'master' into ADQM-639 2023-03-06 13:05:47 +03:00
Roman Vasin
95a7e11a47 Merge branch 'master' of github.com:ClickHouse/ClickHouse into ADQM-639 2023-03-06 09:11:20 +00:00
Vladimir C
1455e7602d
Merge pull request #47154 from azat/prewhere-columns-fix 2023-03-06 10:03:31 +01:00
Roman Vasin
b5bb2eb3dc Add new grant CREATE ARBITRARY TEMPORARY TABLE 2023-03-06 07:20:05 +00:00
kssenii
623e46646d Fix stress test 2023-03-05 22:50:55 +01:00
Anton Popov
6f3e4d4137
Merge pull request #46118 from CurtizJ/fix-issues-with-sparse
Randomize setting `ratio_of_defaults_for_sparse_serialization`
2023-03-05 22:28:18 +01:00
kssenii
608f5b17b6 Fix typos check 2023-03-05 13:17:17 +01:00
Alexander Tokmakov
08ce7b031e release shared ptrs after finishing a transaction 2023-03-04 22:07:59 +01:00
Alexey Milovidov
241fc7cadd
Merge branch 'master' into fix-deadlock 2023-03-04 12:10:59 +03:00
Alexey Milovidov
694f5eb0a8
Update ProcessList.cpp 2023-03-04 12:10:27 +03:00
Alexander Tokmakov
082194a755
Merge pull request #47175 from ClickHouse/correct_fatal_handling
More correct handling of fatal errors
2023-03-04 00:38:00 +03:00
Sema Checherinda
85178c9609
Merge pull request #47102 from CheSema/merge-mutate-do-thread-group
do flushUntrackedMemory when context switches
2023-03-03 20:23:25 +01:00
vdimir
a0f5756751
Fix DelayedJoinedBlocksWorkerTransform for grace hash join 2023-03-03 16:30:01 +00:00
kssenii
7b369e516c Fix stress test 2023-03-03 17:20:27 +01:00
Antonio Andelic
737cf8e149 Better 2023-03-03 15:14:49 +00:00
Alexander Tokmakov
cadaf06829
Merge pull request #46681 from ClickHouse/fix_insert_cancellation_in_native_protocol
Fix queries cancellation when a client dies
2023-03-03 16:27:20 +03:00
avogar
221ac4a1e5 Better 2023-03-03 13:23:44 +00:00
Alexander Tokmakov
b1a288d271
Merge branch 'master' into correct_fatal_handling 2023-03-03 14:50:07 +03:00
vdimir
db2ffc109c
Add comment to GrachHashJoin::current_bucket_mutex 2023-03-03 10:17:34 +00:00
vdimir
38d157a850
Fix race in grace hash join with limit 2023-03-03 10:13:38 +00:00
Alexander Tokmakov
619b282060 more correct handling of fatal errors 2023-03-03 01:22:04 +01:00
LiuNeng
d4c5ab9dcd
Optimize one nullable key aggregate performance (#45772) 2023-03-02 21:01:52 +01:00
Salvatore Mesoraca
81b30021db
ActionsDAG: do not change result of and() during optimization - part 2 (#47028) 2023-03-02 20:48:13 +01:00
Maksim Kita
3cd88003dd
Merge pull request #47101 from kitaisreal/analyzer-planner-fixes-before-enable-by-default
Analyzer Planner fixes before enable by default
2023-03-02 22:16:39 +03:00
Sema Checherinda
a6c2473518 do flushUntrackedMemory when context swith 2023-03-02 19:21:03 +01:00
Azat Khuzhin
167e4903a8 Fix concrete columns PREWHERE support
This is the fix for the IStorage::supportedPrewhereColumns() API.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-03-02 18:51:23 +01:00
Alexander Tokmakov
c518f3690e Merge branch 'master' into fix_insert_cancellation_in_native_protocol 2023-03-02 18:24:08 +01:00
avogar
14351922e3 Fix possible deadlock in QueryStatus 2023-03-02 17:20:29 +00:00
Robert Schulze
af56646f63
Merge pull request #47139 from ClickHouse/rs/ctad
Shorten some code with CTAD
2023-03-02 17:22:36 +01:00
Antonio Andelic
01cf9c94f4 Merge branch 'master' into custom-key-parallel-replicas 2023-03-02 14:28:42 +00:00
Sema Checherinda
bd5d7f3f81
Merge pull request #47098 from CheSema/release-lambda-before
release lambda resources before detaching thread group
2023-03-02 15:28:18 +01:00
Robert Schulze
740aeaba1f
Apply some CTAD 2023-03-02 13:36:47 +00:00
Constantine Peresypkin
fdc6de2a27 use http request body in predefined http handlers
adds a new "virtual" parameter `__request_body`
which can be used in http rules, see below

tremendously helps in producing arbitrary REST interfaces

for example:

```xml
<http_handlers>
  <rule>
    <methods>POST</methods>
    <url>/ingest</url>
    <handler>
      <type>predefined_query_handler</type>
      <query>INSERT INTO events(id, data) SELECT {id:UInt32}, {__request_body:String}</query>
    </handler>
  </rule>
</http_handlers>
```
2023-03-02 12:51:48 +01:00
Alexander Gololobov
5870969837
Merge pull request #47109 from ClickHouse/enable_lwd
Enable lightweight delete support by default
2023-03-02 09:56:38 +01:00
Alexander Tokmakov
ad4a44df52 fix 2023-03-02 02:59:27 +01:00
kssenii
c272f4befb Fix lock order inversion 2023-03-01 21:40:28 +01:00
Robert Schulze
15fec805fb
Merge pull request #46950 from ClickHouse/rs/uninline-likePatternToRegexp
Un-inline likePatternToRegexp()
2023-03-01 21:38:40 +01:00
Sema Checherinda
76451745bc
Update threadPoolCallbackRunner.h 2023-03-01 20:56:38 +01:00
Anton Popov
c4a999ce29 Merge remote-tracking branch 'upstream/master' into HEAD 2023-03-01 19:33:16 +00:00
Alexander Gololobov
f64d08bd5c Enable lightweight delete support by default 2023-03-01 19:35:55 +01:00
Sema Checherinda
242552b019
Update threadPoolCallbackRunner.h 2023-03-01 18:39:48 +01:00
Maksim Kita
d39be3ac9c Fixed tests 2023-03-01 18:05:07 +01:00
Maksim Kita
14e01566a0 Fixed tests 2023-03-01 18:05:07 +01:00
Maksim Kita
51ee007e01 Fixed tests 2023-03-01 18:05:07 +01:00
Maksim Kita
54b704254d Analyzer support InterpreterCreateQuery 2023-03-01 18:03:41 +01:00
Maksim Kita
f1093716f0 Analyzer MutationsInterpreter fix 2023-03-01 18:03:41 +01:00
Sema Checherinda
c59220274b release lambda resources before detaching thread group 2023-03-01 17:53:48 +01:00
kssenii
04557b9678 Fix race 2023-03-01 14:42:41 +01:00
Alexander Tokmakov
a97e15e36f Merge branch 'master' into fix_insert_cancellation_in_native_protocol 2023-03-01 14:26:41 +01:00
vdimir
98004eec6b
Fix NOT_IMPLEMENTED error with CROSS JOIN and algorithm = auto 2023-03-01 13:08:24 +00:00
Yakov Olkhovskiy
e800557743
Merge pull request #46705 from canhld94/ch_fix_aggregate_arithmetic
Fix arithmetic operations in aggregate optimization
2023-03-01 00:49:34 -05:00
Dmitry Novik
54680b1a0a Merge remote-tracking branch 'origin/master' into analyzer-group-by-use-nulls 2023-03-01 01:08:17 +00:00
AndyB
5fb1f20882 LOG_DEBUG over LOG_INFO 2023-02-27 23:16:34 +00:00
Robert Schulze
35f4b42608
Move likePatternToRegexp from Functions/ to Common/ 2023-02-27 16:41:15 +00:00
kssenii
03bb66b9a1 Fix style check 2023-02-27 17:13:33 +01:00
kssenii
53f521ef1c Review fixes 2023-02-27 17:00:46 +01:00
avogar
12a9ff36b2 Better exception messages when schema_inference_hints is ill-formatted 2023-02-27 15:20:56 +00:00
Anton Popov
caa1d22759
Merge branch 'master' into fix-issues-with-sparse 2023-02-27 15:25:19 +01:00
kssenii
5418dd655e Merge remote-tracking branch 'upstream/master' into cache-better-locks 2023-02-27 14:35:30 +01:00
Robert Schulze
5c8edcc2e7
Merge pull request #46940 from ClickHouse/rs/sizes-of-arrays-dont-match
Typo: SIZES_OF_ARRAYS_DOESNT_MATCH --> SIZES_OF_ARRAYS_DONT_MATCH
2023-02-27 14:33:09 +01:00
Sema Checherinda
29a0d766a0
Merge pull request #46886 from azat/async-metrics-intervals
Add new metrics to system.asynchronous_metrics
2023-02-27 11:25:38 +01:00
Robert Schulze
22d09caea2
SIZES_OF_ARRAYS_DOESN_MATCH --> SIZES_OF_ARRAYS_DONT_MATCH 2023-02-27 08:31:40 +00:00
Duc Canh Le
eba00f5094
Merge branch 'master' into ch_fix_aggregate_arithmetic 2023-02-27 09:44:40 +08:00