Commit Graph

89393 Commits

Author SHA1 Message Date
Dmitry Novik
dd1e7b55b8
Merge pull request #37050 from azat/fix-optimize_aggregation_in_order-prefix-Array
Fix optimize_aggregation_in_order with prefix GROUP BY and *Array aggregate functions
2022-05-16 17:17:56 +02:00
Maksim Kita
032b5d3fc3 Dynamic dispatch infrastructure for class member functions 2022-05-16 17:05:16 +02:00
Maksim Kita
46f69e8df2
Merge pull request #37255 from den-crane/patch-7
Doc. Fix typo
2022-05-16 16:52:20 +02:00
Anton Popov
9c3daf7e5b
Merge pull request #37245 from ClickHouse/CurtizJ-patch-4-1
Temporarily fix flaky test `01825_type_json_insert_select.sql`
2022-05-16 16:44:27 +02:00
avogar
ce834b1086 Remove code duplication 2022-05-16 14:41:01 +00:00
Denny Crane
52b7f899b2
Update syntax.md 2022-05-16 11:27:49 -03:00
vdimir
76852ae49c
Pass need_filter, has_null_map to joinRightColumns 2022-05-16 14:27:27 +00:00
Denny Crane
df6b874df9
Update syntax.md
fix typo
2022-05-16 11:25:33 -03:00
avogar
2d4b4b9008 Fix inserting defaults for missing values in columnar formats 2022-05-16 14:19:44 +00:00
Vxider
8f271159bf check null pointer 2022-05-16 13:59:55 +00:00
Sergei Trifonov
b71511eaf8
Merge pull request #37246 from ClickHouse/remove-bash-prompt
Remove prompt($) from bash scripts
2022-05-16 15:50:08 +02:00
Kseniia Sumarokova
ff37d7d5c3
Update ErrorCodes.cpp 2022-05-16 15:30:07 +02:00
Azat Khuzhin
c8420c0dbe Remove duplication for server connections check
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-05-16 16:22:58 +03:00
Azat Khuzhin
e503f1f22c Keep reloaded servers and currently active in one list
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-05-16 16:22:58 +03:00
Azat Khuzhin
367daca584 Add a test for SYSTEM RELOAD CONFIG directly from the query context
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-05-16 16:22:58 +03:00
Azat Khuzhin
f15a5461be Fix server reload on port change (do not wait for current connections)
If you will execute 'SYSTEM RELOAD CONFIG' via, i.e., TCP protocol, then
reload on port change will endlessly wait for connection from which this
query had been issued, and you will see the following message in the
logs:

    2022.04.28 03:34:57.552513 [ 37101 ] {b41d855c-4dbf-470a-a144-c6ae5a1abda8} <Debug> executeQuery: (from 127.0.0.1:11774) system reload config
    ...
    2022.04.28 03:34:57.710640 [ 37101 ] {b41d855c-4dbf-470a-a144-c6ae5a1abda8} <Information> Application: Stopped listening for http://127.0.0.1:18123
    2022.04.28 03:34:57.798774 [ 37101 ] {b41d855c-4dbf-470a-a144-c6ae5a1abda8} <Information> Application: Stopped listening for native protocol (tcp): 127.0.0.1:19000
    ...
    2022.04.28 03:34:57.901375 [ 37101 ] {b41d855c-4dbf-470a-a144-c6ae5a1abda8} <Debug> Application: Server finished: http://127.0.0.1:18123
    2022.04.28 03:34:57.901455 [ 37101 ] {b41d855c-4dbf-470a-a144-c6ae5a1abda8} <Trace> Application: Waiting server to finish: native protocol (tcp): 127.0.0.1:19000
    2022.04.28 03:34:58.001717 [ 37101 ] {b41d855c-4dbf-470a-a144-c6ae5a1abda8} <Trace> Application: Waiting server to finish: native protocol (tcp): 127.0.0.1:19000
    2022.04.28 03:34:58.101881 [ 37101 ] {b41d855c-4dbf-470a-a144-c6ae5a1abda8} <Trace> Application: Waiting server to finish: native protocol (tcp): 127.0.0.1:19000
    ...
    2022.04.28 03:35:01.707951 [ 37101 ] {b41d855c-4dbf-470a-a144-c6ae5a1abda8} <Trace> Application: Waiting server to finish: native protocol (tcp): 127.0.0.1:19000

But waiting for the current connection will never ends.

So instead of waiting directly from the query context (SYSTEM RELOAD
CONFIG) do this in background (actually not even in background, but
check on server reload and on exit).

v0: just don't wait for the servers
v2: fix use-after-free by removing dependency from server in handlers
v3: wait servers in background to avoid use-after-free of the context
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-05-16 16:22:58 +03:00
Azat Khuzhin
568e29ceb6 tests/integration/test_server_reload: add pylint hints
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-05-16 16:22:58 +03:00
Azat Khuzhin
b528a72e89 tests/integration/test_server_reload: add missing assertions
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-05-16 16:22:58 +03:00
Kruglov Pavel
5e34f48a18
Merge pull request #37021 from excitoon-favorites/fixtdigest
Fixed problem with infs in `quantileTDigest`
2022-05-16 15:21:59 +02:00
Antonio Andelic
adb8ac4fda Change log level 2022-05-16 13:15:31 +00:00
Mikhail Artemenko
535b3ea686 refactor code & change exception numbers 2022-05-16 16:13:05 +03:00
Antonio Andelic
e6f646b71e Merge branch 'master' into keeper-preprocess-operations 2022-05-16 13:08:49 +00:00
Vxider
b3a731c226 fix build 2022-05-16 12:51:19 +00:00
Mikhail f. Shiryaev
fe3f95a66c
Rerun improved script to order output and clean duplications 2022-05-16 14:46:05 +02:00
Mikhail f. Shiryaev
082b30c4a2
Simplify and improve commit validadion for tags 2022-05-16 14:45:27 +02:00
mergify[bot]
b7d6d97e64
Merge branch 'master' into wv-alter 2022-05-16 12:44:46 +00:00
Robert Schulze
ed7df7cabd
Merge pull request #36960 from ClickHouse/clangtidies
Enable clangtidies
2022-05-16 14:22:50 +02:00
Igor Nikonov
34de7d9973
Remove prompt($) from bash scripts
Copy bash script. Paste it into terminal. Some bash scripts fail to execute due to bash prompt in documentation. So, I just removed the prompt(s)
2022-05-16 13:55:42 +02:00
mergify[bot]
753fac95ef
Merge branch 'master' into wv-watch-limit 2022-05-16 11:42:31 +00:00
Robert Schulze
82c30442bd
Merge pull request #37223 from ni1l/master
Sync the English version of bit-functions.md to the Chinese document
2022-05-16 13:42:06 +02:00
Vxider
6b3b744e3f fix data race 2022-05-16 11:31:49 +00:00
alesapin
1829256ae2
Merge pull request #37178 from ClickHouse/ignore_auto_increment_in_create_table_2
Ignore AUTO_INCREMENT in CREATE TABLE to simplify migration from MySQL
2022-05-16 13:29:22 +02:00
Anton Popov
848b762eb0 Update 01825_type_json_insert_select.sql 2022-05-16 11:18:31 +00:00
Azat Khuzhin
01e1c5345a Add separate CLUSTER grant
In case you have different roles for the same user on multiple clusters,
ON CLUSTER query can help to overcome some limitations.

Consider the following example:
- cluster_with_data, dev_user (readonly=2)
- stage_cluster, dev_user (readonly=0)

So when you will execute the following query from stage_cluster, it will
be successfully executed, since ON CLUSTER queries has different system
profile:

    DROP DATABASE default ON CLUSTER cluster_with_data

This is not 100% safe, but at least something.

Note, that right now only ON CLUSTER query it self is supported, but
separate clusters are not (i.e. GRANT CLUSTER some_cluster_name TO
default), since right now grants sticked to database+.

v2: on_cluster_queries_require_cluster_grant
v3: fix test and process flags as bit mask
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-05-16 13:57:45 +03:00
alesapin
b10f26e3ed Fix style 2022-05-16 12:25:25 +02:00
Vladimir C
75008d5903
Merge pull request #37166 from vdimir/issue_37141 2022-05-16 12:21:41 +02:00
ni1l
e85c616704 fix the broken link in the bit-functions.md 2022-05-16 18:03:09 +08:00
Robert Schulze
d66dcdad79
Fix new occurrences of new clang-tidy warnings 2022-05-16 11:31:36 +02:00
kssenii
f7493965b7 Remove additional check for merge tree 2022-05-16 11:19:57 +02:00
Robert Schulze
7006ef6ebb
Merge pull request #37230 from ramazanpolat/patch-3
update materialize index notation
2022-05-16 11:18:10 +02:00
kssenii
49201f217f Revert 2022-05-16 11:17:56 +02:00
Vxider
31eee576a5 do not addDependency when table is dropped 2022-05-16 09:04:37 +00:00
Kseniia Sumarokova
128a0e15eb
Merge pull request #37226 from Vxider/wv-speedup-watch
Speed up WindowView WATCH
2022-05-16 10:42:02 +02:00
Vxider
95e6e5aef7 fix window view dependency 2022-05-16 08:41:32 +00:00
Robert Schulze
e3cfec5b09
Merge remote-tracking branch 'origin/master' into clangtidies 2022-05-16 10:12:50 +02:00
jasperzhu
9ad7f2d081
Merge branch 'ClickHouse:master' into master 2022-05-16 16:09:50 +08:00
Robert Schulze
f7de28ce4a
Merge pull request #37222 from ClickHouse/cmake-cleanup-pt2
Cmake cleanup pt2
2022-05-16 09:28:37 +02:00
zzsmdfj
525b2b4511 to compatible with binary(0) 2022-05-16 11:36:39 +08:00
Vxider
9201df7cde update code style 2022-05-16 02:00:39 +00:00
Alexey Milovidov
c430fa3a7c
Merge pull request #37098 from liumaojing/patch-1
Update grouparray.md
2022-05-16 04:29:41 +03:00