Anton Popov
cef462f83d
fix creation of tables with flatten_nested = 0
2022-04-29 14:53:08 +00:00
Azat Khuzhin
16b1d2bee4
Remove outdated comment from ThreadStatusExt
...
Refs: https://github.com/ClickHouse/ClickHouse/pull/16121#discussion_r511500850
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-04-29 17:04:56 +03:00
Azat Khuzhin
b7b7d91bd1
Remove memory reservation for SquashingTransform
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-04-29 17:04:56 +03:00
Vladimir C
e1e7a67670
Merge pull request #36201 from vdimir/join_dup_columns_issue36199
2022-04-29 12:57:10 +02:00
lgbo-ustc
5021cb707c
update
2022-04-29 17:41:26 +08:00
vdimir
81c24fc521
Fix assertion in join
2022-04-29 09:15:00 +00:00
Maksim Kita
5b9bb36f80
Merge pull request #36753 from kitaisreal/added-user-defined-path-config-setting
...
Added user_defined_path config setting
2022-04-29 11:10:51 +02:00
Alexey Milovidov
b81da324de
Merge pull request #36765 from ClickHouse/fix_flaky_test_non_leader_replica
...
Fix flaky test `test_ddl_worker_non_leader`
2022-04-29 11:18:49 +03:00
Amos Bird
9d30be2c59
Fix build again
2022-04-29 14:45:27 +08:00
Azat Khuzhin
0ce44f3021
Optimize optimize_aggregation_in_order with a prefix key
...
Before it does lots of extra work, now, it will be significantly more
optimal (thousands of rows -> 1-2 million of rows).
v2: s/executeOnBlockSimple/executeOnBlockSmall/
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-04-29 06:58:28 +03:00
Azat Khuzhin
190ce217bb
Disable GROUP BY statistics for optimize_aggregation_in_order
...
This statistics significantly decrease performance of
optimize_aggregation_in_order with a prefix key.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-04-29 06:58:27 +03:00
Azat Khuzhin
767acd53fb
Add ability to pass range of rows to Aggregator
...
v2: fix compiled aggregate functions (seek result to row_start)
v3: fix compiled aggregate functions (seek args to row_start)
v4: change signatures for JIT
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-04-29 06:57:55 +03:00
Amos Bird
4a5e4274f0
base should not depend on Common
2022-04-29 10:26:35 +08:00
Maksim Kita
04429d85db
Added user_defined_path config setting
2022-04-28 22:13:33 +02:00
Maksim Kita
55994afe0c
Fix evaluateConstantExpression for subqueries
2022-04-28 22:09:29 +02:00
Alexander Tokmakov
6797e7dc76
fix flaky test
2022-04-28 21:39:45 +02:00
Anton Popov
1fc51e09ff
fix insertion to column of type Object from multiple files via table function
2022-04-28 18:51:13 +00:00
Alexey Milovidov
d8fa806fca
Merge pull request #36360 from ClickHouse/optimize-asynchronous-metric-log
...
Optimize `system.asynchronous_metric_log`
2022-04-28 20:16:17 +03:00
Vadim Volodin
233f0b4b52
Handle cluster macro in s3Cluster table function
2022-04-28 18:38:17 +03:00
Kruglov Pavel
4d08587559
Merge branch 'master' into mysqldump-format
2022-04-28 15:58:18 +02:00
zhanglistar
7d798b3655
Count distinct optimization by using subquery of group by ( #35993 )
2022-04-28 14:55:37 +02:00
Maksim Kita
ec47abe9af
Merge pull request #36482 from Enmk/fix_session_log_error_on_local_and_tcp_interserver_session
...
Fixed missing enum values for ClientInfo::Interface
2022-04-28 13:06:19 +02:00
Vitaly Baranov
641a5f5e35
Merge pull request #36198 from vitlibar/backup-improvements-3
...
Backup for replicated tables and other improvements
2022-04-28 09:23:53 +02:00
Alexey Milovidov
60e512ac4b
Fix for table structure comparison
2022-04-28 05:10:57 +02:00
mergify[bot]
b7e63154df
Merge branch 'master' into optimize-asynchronous-metric-log
2022-04-27 18:27:27 +00:00
Kseniia Sumarokova
0d09bb9897
Merge pull request #36699 from amosbird/bettermysqlhandler
...
Slightly better mysql handler
2022-04-27 17:07:35 +02:00
Amos Bird
1cba00478d
Slightly better mysql handler
2022-04-27 18:28:09 +08:00
lgbo-ustc
10b7e08319
update
2022-04-27 16:41:34 +08:00
lgbo-ustc
7505ce426a
update
2022-04-27 13:11:24 +08:00
taiyang-li
0341880250
Merge remote-tracking branch 'origin/master' into hive_text_parallel_parsing
2022-04-27 11:15:16 +08:00
Alexey Milovidov
b8a9f1411a
Merge pull request #36649 from azat/system.processes-is_all_data_sent
...
clickhouse-test: improve left queries after the test hardening
2022-04-27 05:21:22 +03:00
lgbo-ustc
520b05b9f1
update test case tests/queries/0_stateless/02236_explain_pipeline_join.sql
2022-04-27 10:08:22 +08:00
Vitaly Baranov
a8e924caf6
Make BACKUP & RESTORE synchronous by default.
2022-04-26 18:45:39 +02:00
avogar
33d845dade
Add MySQLDump input format
2022-04-26 10:42:56 +00:00
lgbo-ustc
20fc676bff
fixed bug: resize on left pipeline cause the order by result wrong
2022-04-26 18:27:42 +08:00
mergify[bot]
7571387a6e
Merge branch 'master' into memory-overcommit-free
2022-04-26 10:15:18 +00:00
lgbo-ustc
d96c29810a
fixed bug: resize on left pipeline cause the order by result wrong
2022-04-26 18:12:14 +08:00
lgbo-ustc
0b0fa8453b
fixed bug: resize on left pipeline cause the order by result wrong
2022-04-26 18:06:16 +08:00
Kseniia Sumarokova
81db081b88
Merge pull request #36639 from kssenii/better-drop-cache
...
Improve drop cache query
2022-04-26 11:25:46 +02:00
Azat Khuzhin
6339a48923
Add is_all_data_sent into system.processes
...
v2: fix SHOW PROCESSLIST (does not have process list entry)
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-04-26 12:15:00 +03:00
Vitaly Baranov
78bcb96098
Rename backup & restore setting 'async' -> 'sync', and make backup & restore async by default.
2022-04-26 09:51:19 +02:00
taiyang-li
99dee35b6e
parallel parsing of hive text format
2022-04-26 14:33:10 +08:00
mergify[bot]
4e82b56a8d
Merge branch 'master' into optimize-asynchronous-metric-log
2022-04-26 05:40:49 +00:00
lgbo-ustc
c7841d226b
udpate
2022-04-26 11:29:18 +08:00
lgbo-ustc
74ccc233d2
Merge remote-tracking branch 'ck/master' into concurrent_join
2022-04-26 09:21:02 +08:00
alesapin
92296484e7
Merge pull request #36348 from rschu1ze/erase_if3
...
Replace remove-erase idiom by C++20 erase()/erase_if()
2022-04-25 23:34:18 +02:00
Vitaly Baranov
000b184691
Fix style & compilation.
2022-04-25 23:05:35 +02:00
alesapin
04afe552f8
Trying to avoid segfaults
2022-04-25 22:51:09 +02:00
alesapin
1fffa56f63
Merge branch 'master' into memory-overcommit-free
2022-04-25 20:21:08 +02:00
mergify[bot]
e79de5a577
Merge branch 'master' into optimize-asynchronous-metric-log
2022-04-25 17:29:11 +00:00
kssenii
a76a35d3ce
Better drop cache
2022-04-25 19:20:25 +02:00
Vitaly Baranov
ed0af9d4a0
Improve shutdown with async backup/restore.
2022-04-25 16:34:34 +02:00
Vitaly Baranov
042dc4abb2
Rename settings shard -> shard_num, replica -> replica_num.
2022-04-25 16:34:34 +02:00
Vitaly Baranov
129eca7307
CREATE queries generated by RESTORE command is now considered as internal.
2022-04-25 16:34:34 +02:00
Vitaly Baranov
68a020ecea
Implement BACKUP/RESTORE ON CLUSTER.
2022-04-25 16:34:33 +02:00
Vitaly Baranov
030f3e488c
Add shard_index and replica_index to params of executeDDLQueryOnCluster().
2022-04-25 16:34:33 +02:00
Vitaly Baranov
3477665659
Add shard_index and replica_index to params of getRewrittenASTWithoutOnCluster().
2022-04-25 16:34:33 +02:00
Vitaly Baranov
144d3aefeb
Add system table system.backups; implement async mode for commands BACKUP & RESTORE
2022-04-25 16:34:33 +02:00
Kseniia Sumarokova
2106a7b895
Merge pull request #36489 from awakeljw/fork_chmaster
...
fix ConvertDecimalType unexpected behavior
2022-04-25 13:23:54 +02:00
lgbo-ustc
c68806fbff
fixed typos
2022-04-25 16:16:50 +08:00
lgbo-ustc
981d560553
Merge remote-tracking branch 'ck/master' into concurrent_join
2022-04-25 13:00:04 +08:00
awakeljw
d58a21678a
fix ConvertDecimalType unexpected behavior
2022-04-24 23:35:58 +08:00
lgbo-ustc
221bc9c970
update
2022-04-24 17:14:13 +08:00
lgbo-ustc
a38b580c6f
update
2022-04-24 15:19:16 +08:00
Alexey Milovidov
90297e225c
Merge pull request #36430 from amosbird/fixcolumnmatcher
...
Fix column matcher and column transformer
2022-04-24 09:11:21 +03:00
Alexey Milovidov
fe004c3486
Merge pull request #36486 from kitaisreal/executable-user-defined-functions-fix-group-by
...
ExecutableUserDefinedFunction fix usage in GROUP BY
2022-04-24 06:11:57 +03:00
Alexey Milovidov
909646247d
Update TranslateQualifiedNamesVisitor.cpp
2022-04-24 05:04:13 +03:00
lgbo-ustc
056b4d1b61
update
2022-04-24 09:26:57 +08:00
Nikita Mikhaylov
9baf7b14dc
Fix build
2022-04-22 13:56:16 +00:00
Nikita Mikhaylov
aaa7112405
Even better
2022-04-22 13:56:16 +00:00
Nikita Mikhaylov
36bdee0499
Deleted settings
2022-04-22 13:56:16 +00:00
Nikita Mikhaylov
4818b63979
Better
2022-04-22 13:56:16 +00:00
Nikita Mikhaylov
8c325c2cdd
Better
2022-04-22 13:56:16 +00:00
Nikita Mikhaylov
31ccb9c1c3
Done
2022-04-22 13:56:16 +00:00
Nikita Mikhaylov
224f4dc620
Made parallel_reading_from_replicas
work with localhost replica ( #36281 )
2022-04-22 15:52:38 +02:00
lgbo-ustc
681d7d6799
update dispatchBlock()
2022-04-22 11:00:00 +08:00
Dmitry Novik
6ee62007d3
Handle GROUPING SETS with size < 2
2022-04-21 23:52:43 +00:00
Maksim Kita
583cbcb834
Merge branch 'master' into fix_session_log_error_on_local_and_tcp_interserver_session
2022-04-21 21:15:11 +02:00
Maksim Kita
9713441650
Merge pull request #36480 from Joeywzr/session_log
...
add missing enum values in session_log
2022-04-21 21:14:12 +02:00
Maksim Kita
485c1d4072
Fixed tests
2022-04-21 19:10:11 +02:00
Dmitry Novik
b5e2b38529
Optimize pipeline in case of single input
2022-04-21 14:11:58 +00:00
Maksim Kita
57444fc7d3
Merge pull request #36444 from rschu1ze/clang-tidy-fixes
...
Clang tidy fixes
2022-04-21 16:11:27 +02:00
Dmitry Novik
df63a9b205
Depricate TOTALS with GROUPING SETS
2022-04-21 13:41:59 +00:00
Dmitry Novik
77a82cc090
Merge pull request #35631 from amosbird/projection-fix1
...
Fix broken SET reuse during projection analysis.
2022-04-21 15:32:52 +02:00
mergify[bot]
be6914f6f9
Merge branch 'master' into session_log
2022-04-21 11:52:20 +00:00
Maksim Kita
397603e9be
ExecutableUserDefinedFunction fix usage in GROUP BY
2022-04-21 13:44:56 +02:00
Dmitry Novik
ea6a25b8e7
Fix nullptr dereference
2022-04-21 11:14:22 +00:00
Vasily Nemkov
e2866b0541
Fixed missing enum values for ClientInfo::Interface
2022-04-21 12:16:12 +03:00
Memo
ce91a261e8
add missing enum values in session_log
2022-04-21 17:01:44 +08:00
lgbo-ustc
a9d9abb7a1
use column::scatter()
2022-04-21 16:59:30 +08:00
lgbo-ustc
e27d67ce8a
update type name
2022-04-21 14:28:22 +08:00
lgbo-ustc
eac810ed85
use concatenateBlocks
2022-04-21 14:10:09 +08:00
lgbo-ustc
60964b207d
update addJoinedBlock()
2022-04-21 13:19:33 +08:00
lgbo-ustc
bfd1a0e33a
update codes
2022-04-21 12:14:36 +08:00
Dmitry Novik
61deae7105
Merge branch 'master' into grouping-sets-fix
2022-04-21 03:34:42 +02:00
Dmitry Novik
6e73cd6929
Implement parallel grouping sets processing
2022-04-21 01:18:40 +00:00
Alexey Milovidov
ec9b86fd03
Merge branch 'master' into fixcolumnmatcher
2022-04-21 02:15:25 +03:00
Azat Khuzhin
c6ffec1fec
Fix "Cannot find column" error for distributed queries with LIMIT BY
...
Consider the following example:
SELECT k FROM (SELECT materialize('foo') AS k, -1 AS v) ORDER BY abs(v) AS _v ASC LIMIT 1 BY k
The problem here is that in case of query has LIMIT BY for
WithMergeableState* (which is the final state on the remote shard for
distributd queries) it returns the following columns:
- k
- v
While it should return:
- k
- abs(v)
So as query w/o LIMIT BY, so that initiator will be able to do the sorting
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-04-20 15:23:24 +03:00
lgbo-ustc
f461d18de5
update method name
2022-04-20 19:51:35 +08:00
lgbo-ustc
c844415578
add new join_algorithm parallel_hash
2022-04-20 19:47:16 +08:00
Robert Schulze
7550d9b281
Fix build
2022-04-20 13:34:17 +02:00
Robert Schulze
b24ca8de52
Fix various clang-tidy warnings
...
When I tried to add cool new clang-tidy 14 warnings, I noticed that the
current clang-tidy settings already produce a ton of warnings. This
commit addresses many of these. Almost all of them were non-critical,
i.e. C vs. C++ style casts.
2022-04-20 10:29:05 +02:00
Kseniia Sumarokova
766a84e64f
Merge pull request #35915 from kssenii/better-s3-settings
...
Better settings configuration for s3
2022-04-20 10:22:06 +02:00
Robert Schulze
b6d7367538
Merge remote-tracking branch 'origin/master' into erase_if3
...
Conflicts:
- Interpreters/ActionsDAG.cpp
2022-04-20 10:02:59 +02:00
Antonio Andelic
bbb0be6a44
Merge pull request #36402 from rschu1ze/clang-tidy-contains
...
Activate clang-tidy warning "readability-container-contains"
2022-04-20 08:15:46 +02:00
Kruglov Pavel
894b1b163e
Merge pull request #36055 from helifu/master2
...
Don't materialize external tables if it's explain statement
2022-04-19 20:26:27 +02:00
Kruglov Pavel
7fb7fc9daa
Merge pull request #36275 from Avogar/fix-insert-select
...
Place new logic of schema inference in insert select from table function under setting
2022-04-19 20:19:28 +02:00
Amos Bird
158a25d5fa
Fix column matcher and column transformer
2022-04-20 01:22:04 +08:00
Robert Schulze
72a331189e
Fix glitch
2022-04-19 14:59:47 +02:00
mergify[bot]
3c1dd44b80
Merge branch 'master' into fix-insert-select
2022-04-19 12:17:31 +00:00
lgbo-ustc
26ff749a32
remove unused header
2022-04-19 19:12:08 +08:00
lgbo-ustc
3f2fe3ff66
fixed code style
2022-04-19 18:47:29 +08:00
kssenii
1f9a597b77
Merge master
2022-04-19 11:31:13 +02:00
lgbo-ustc
9dfe2a6682
fixed header style
2022-04-19 16:53:24 +08:00
lgbo-ustc
3d7338581b
Improve join
...
now adding joined blocks from right table can be run parallelly, speedup the join process
2022-04-19 16:07:30 +08:00
Robert Schulze
118e94523c
Activate clang-tidy warning "readability-container-contains"
...
This check suggests replacing <Container>.count() by
<Container>.contains() which is more speaking and in case of
multimaps/multisets also faster.
2022-04-18 23:53:11 +02:00
Alexey Milovidov
1e1ffbbfe2
Update SessionLog.cpp
2022-04-18 23:07:34 +03:00
mergify[bot]
daca157111
Merge branch 'master' into fix_storage_distributed_ttl
2022-04-18 17:31:59 +00:00
Alexey Milovidov
0af183826d
Merge pull request #36358 from ClickHouse/don-t-randomize-priority
...
Do not randomize "priority" setting
2022-04-18 07:04:36 +03:00
Alexey Milovidov
f6ab2bd523
Merge pull request #36312 from ClickHouse/remove-arcadia
...
Remove remaining parts of Arcadia
2022-04-18 07:02:54 +03:00
Alexey Milovidov
36595e4206
Merge pull request #36320 from ClickHouse/fix-clang-tidy-14
...
Fix clang-tidy-14 (part 1)
2022-04-18 07:02:10 +03:00
Alexey Milovidov
70d7ba5d61
Fix clang-tidy
2022-04-18 02:13:28 +02:00
Alexey Milovidov
6de5d8a554
Merge branch 'master' into fix-clang-tidy-14
2022-04-18 02:12:45 +02:00
Alexey Milovidov
0051e651c6
Update AsynchronousMetricLog.h
2022-04-18 03:01:57 +03:00
Alexey Milovidov
242919eddd
Remove abbreviation
2022-04-18 01:02:49 +02:00
Alexey Milovidov
8ea14d2664
Custom ORDER BY for system.asynchronous_metric_log
2022-04-17 23:59:05 +02:00
Alexey Milovidov
e36e22812a
Custom column list for system.asynchronous_metric_log
2022-04-17 23:53:28 +02:00
Alexey Milovidov
300ef741cc
Custom column list for system.asynchronous_metric_log
2022-04-17 23:51:56 +02:00
Alexey Milovidov
4c09e2d30a
Custom column list for system.asynchronous_metric_log
2022-04-17 23:49:39 +02:00
Alexey Milovidov
37c61d9f0a
Round values for the log
2022-04-17 22:07:50 +02:00
Alexey Milovidov
1f5df287c0
Remove useless code
2022-04-17 22:02:55 +02:00
Alexey Milovidov
6807f8428d
Remove microseconds from system.asynchronous_metric_log
2022-04-17 22:01:58 +02:00
Alexey Milovidov
250ca83058
Allow custom default ORDER BY for system logs
2022-04-17 21:57:44 +02:00
Alexey Milovidov
a64765bc6f
Allow custom default ORDER BY for system logs
2022-04-17 21:56:36 +02:00
Alexey Milovidov
aa93f4a074
Do not randomize "priority" setting
2022-04-17 20:48:02 +02:00
Alexey Milovidov
89deaf0af1
Merge pull request #36056 from azat/client-trailing-space
...
Remove trailing whitespace in default client_name
2022-04-17 17:37:43 +03:00
Robert Schulze
1e1df8e101
Replace remove-erase idiom by C++20 erase()/erase_if()
...
- makes the code less verbose while being as efficient
2022-04-17 12:04:47 +02:00
Alexey Milovidov
294efeccfe
Fix clang-tidy-14 (part 1)
2022-04-16 04:54:04 +02:00
Alexey Milovidov
cbeeb7ec4f
Remove Arcadia
2022-04-16 00:20:47 +02:00
Alexey Milovidov
a0fe29e243
Remove Arcadia
2022-04-15 23:59:49 +02:00
avogar
ae01646136
Place new logic of schema inference in insert select from table function under setting
2022-04-14 19:05:20 +00:00
Dmitry Novik
a16710c750
Merge remote-tracking branch 'origin/master' into grouping-sets-fix
2022-04-14 17:29:51 +00:00
Anton Popov
305dd57262
Merge branch 'master' into fix_storage_distributed_ttl
2022-04-14 14:51:15 +02:00
mergify[bot]
95901466e7
Merge branch 'master' into master2
2022-04-14 10:05:03 +00:00
Yakov Olkhovskiy
c1a06ac63a
Merge pull request #24896 from hexiaoting/dev_materialized_view
...
Add type check when create materialized view with To clause
2022-04-13 22:33:54 -04:00
Maksim Kita
ca89af89a1
Merge pull request #36088 from israelg99/fix_executable
...
Fix CH silently failing when it cannot execute a file
2022-04-13 16:53:00 +02:00
kssenii
0912b038fa
Merge master
2022-04-13 15:30:01 +02:00
tavplubix
43de4827d7
Merge pull request #36074 from ClickHouse/zookeeper_log_thread_query_id
...
Add thread_id and query_id to zookeeper_log
2022-04-13 15:34:04 +03:00
mergify[bot]
ba22cb76bb
Merge branch 'master' into master2
2022-04-13 11:51:43 +00:00
Kruglov Pavel
03fc08cec3
Merge pull request #36137 from azat/client-profile-events
...
ProfileEvents fixes
2022-04-13 12:27:39 +02:00