alexey-milovidov
e1104135c8
Merge pull request #13939 from fastio/master
...
Multithreading implementation of Kafka engine
2020-09-07 20:12:06 +03:00
Dmitry
9639846ca9
Merge branch 'master' into system_events_show_zero_values
2020-09-06 14:55:14 +03:00
Peng Jian
ac25c41f22
Update docs for Kafka engine
2020-09-06 11:17:19 +08:00
Peng Jian
e6bfd9d586
1. Add new setting for Kafka engine, named kafka_thread_per_consumer which default value is false. 2. Create separate thread pool for Kafka engine.
2020-09-06 11:17:19 +08:00
Azat Khuzhin
fffeeeba06
Force WithMergeableStateAfterAggregation via distributed_group_by_no_merge (convert to UInt64)
...
Possible values:
- 1 - Do not merge aggregation states from different servers for distributed query processing - in case it is for certain that there are different keys on different shards.
- 2 - same as 1 but also apply ORDER BY and LIMIT stages
2020-09-03 00:52:51 +03:00
Dmitry
13ba8cd5a7
fixed spaces
2020-09-02 14:25:11 +03:00
Dmitry
6f18cd772c
fixes
2020-09-02 13:07:23 +03:00
Dmitry
2180cdc400
system_events_show_zero_values setting added
2020-09-02 13:00:49 +03:00
Alexander Kuzmenkov
c4fc434a13
Merge pull request #14060 from azat/parallel_distributed_insert_select-2
...
Extend parallel_distributed_insert_select to run INSERT into local table
2020-08-26 20:37:36 +03:00
Azat Khuzhin
50a312534c
Extend parallel_distributed_insert_select to run INSERT into local table
...
Before this patch there was:
- parallel_distributed_insert_select=1, that executes:
INSERT INTO dist_out SELECT ... FROM underlying_dist_in
After this patch there will be:
- parallel_distributed_insert_select=2, that executes:
INSERT INTO underlying_dist_out SELECT ... FROM underlying_dist_in
And cover the behaviour w/o integration test, by using the following
techincs:
- SYSTEM STOP DISTRIBUTED SENDS
- prefer_localhost_replica=0
2020-08-25 22:49:13 +03:00
Alexey Milovidov
dfe870e38c
Merge branch 'new-branch' of https://github.com/ucasFL/ClickHouse into ucasFL-new-branch
2020-08-24 16:26:08 +03:00
Artem Zuikov
becc186c91
Add support for extended precision integers and decimals ( #13097 )
2020-08-19 14:52:17 +03:00
Vitaly Baranov
2909ed1bc0
Better initialization of access storages. Make list of access storages dynamic.
2020-08-16 19:15:34 +03:00
feng lv
aaedf02d2b
fix conflict
2020-08-16 12:38:39 +08:00
Alexander Tokmakov
a6ff049eec
use Atomic for system database
2020-08-12 23:40:13 +03:00
tavplubix
4aff48dc3f
Merge pull request #10851 from zhang2014/feature/materialize_mysql_database
...
ISSUES-4006 support MaterializeMySQL database engine
2020-08-12 15:59:28 +03:00
Alexander Tokmakov
829f7e65de
try fix sync, add experimetal flag
2020-08-12 00:59:46 +03:00
Alexey Milovidov
edd89a8610
Fix half of typos
2020-08-08 03:47:03 +03:00
Alexander Tokmakov
5b92f43f12
Merge branch 'master' into database_atomic_improvements
2020-08-03 14:35:40 +03:00
feng lv
88e48168d9
fix
2020-08-02 13:35:58 +08:00
feng lv
edb7c9b2c5
fix conflict
2020-08-02 11:27:32 +08:00
feng lv
fdf646283d
fix
...
fix
2020-08-02 09:59:25 +08:00
Vitaly Baranov
442f3de5a8
Implement custom settings.
2020-07-31 20:57:43 +03:00
Vitaly Baranov
56665a15f7
Rework and rename the template class SettingsCollection => BaseSettings.
2020-07-31 20:54:18 +03:00
Vitaly Baranov
300727afa3
Rework the StringField* classes and make conversion String => StringField* explicit.
2020-07-31 19:11:27 +03:00
Vitaly Baranov
18e3f1f60d
Split SettingsCollection.h into 3 files: SettingsFields.h, SettingsEnums.h, SettingsCollection.h
2020-07-31 19:11:27 +03:00
Vitaly Baranov
4ad99f1472
Make type names of settings shorter: SettingUInt64 => UInt64.
2020-07-31 19:11:27 +03:00
alexey-milovidov
9c9ef0db9b
Merge branch 'master' into database_atomic_improvements
2020-07-31 14:56:49 +03:00
alesapin
c75830e878
Alter table freeze with verbose output
2020-07-28 18:10:36 +03:00
Alexander Tokmakov
6bfe88e83f
Merge branch 'master' into database_atomic_improvements
2020-07-26 13:40:05 +03:00
Winter Zhang
50203a5dc0
ISSUES-12293 allow push predicate when subquery contains with clause ( #12663 )
2020-07-24 12:00:18 +03:00
Alexander Tokmakov
237accd154
Merge branch 'master' into database_atomic_improvements
2020-07-23 06:33:20 +03:00
Alexander Tokmakov
9bcaaea3e0
Merge branch 'master' into database_atomic_improvements
2020-07-22 05:24:48 +03:00
alesapin
3946f89878
Fix setting description
2020-07-21 17:08:23 +03:00
alesapin
daaa5cc382
Add setting allow_non_metadata_alters
2020-07-21 17:05:30 +03:00
Alexander Tokmakov
99f0adad0a
fixes
2020-07-17 21:17:04 +03:00
Alexander Tokmakov
c27de9b424
fixes
2020-07-17 16:11:44 +03:00
Artem Zuikov
c6e3e9b1ff
String convertion to enum in if() and transform() ( #12515 )
2020-07-17 12:28:51 +03:00
Alexander Tokmakov
a612080df1
Merge branch 'master' into database_atomic_improvements
2020-07-17 00:43:59 +03:00
Artem Zuikov
5f01a587f6
Optimize monotonous ORDER BY ( #12467 )
2020-07-15 13:10:21 +03:00
Alexander Tokmakov
09abe71b60
Merge branch 'master' into database_atomic_improvements
2020-07-15 13:07:08 +03:00
Artem Zuikov
dda2510208
Try enable multiple_joins_rewriter_version v2 by default ( #12469 )
2020-07-14 12:34:47 +03:00
Alexander Tokmakov
fdb02edc7c
Merge branch 'master' into database_atomic_improvements
2020-07-13 17:28:48 +03:00
Alexander Tokmakov
15b395da51
fixes
2020-07-13 17:24:00 +03:00
Artem Zuikov
b5c181c24e
Optimize redundant functions in ORDER BY ( #12404 )
2020-07-13 13:34:25 +03:00
Maxim Sabyanin
40f7ec71d3
add setting output_format_pretty_grid_charset
...
This setting allows to chose charset for printing grids (either UTF-8 or
ASCII).
2020-07-10 22:25:49 +03:00
Artem Zuikov
01b5c2663c
Delete injective functions inside uniq ( #12337 )
2020-07-10 13:42:41 +03:00
Alexander Tokmakov
77289146ab
fix tests
2020-07-09 20:47:42 +03:00
Alexey Milovidov
f16afa4dee
Fix typo in setting name
2020-07-08 14:49:44 +03:00
alesapin
3f90f65678
Merge remote-tracking branch 'origin' into CurtizJ-polymorphic-parts
2020-07-06 21:34:17 +03:00
Anton Popov
73676f5022
Improve performace of reading in order of sorting key. ( #11696 )
...
* simplify reading in order of sorting key
* add perf test for reading many parts
* Revert "simplify reading in order of sorting key"
This reverts commit 7267d7c46e
.
* add threshold for preliminary merge for reading in order
* better threshold
* limit threads in test
2020-07-04 15:48:51 +03:00
Anton Popov
4422df2e37
Merge remote-tracking branch 'upstream/master' into HEAD
2020-07-02 20:18:21 +03:00
alesapin
64583ceb22
Merge branch 'master' into add-storage-rabbitmq-read-only
2020-07-02 16:08:29 +03:00
Andrew Onyshchuk
9054862dde
Avro: allow missing fields
2020-06-27 21:23:21 -05:00
alesapin
e9c47dc89c
Merge branch 'master' into CurtizJ-polymorphic-parts
2020-06-26 14:27:19 +03:00
Artem Zuikov
2391ac22b7
Rewrite arithmetic in aggregate functions optimisation ( #11899 )
2020-06-24 21:49:55 +03:00
alesapin
3fc65b3269
Merge branch 'master' into kssenii-rabbit-mq
2020-06-24 20:14:28 +03:00
alexey-milovidov
18eb141ea1
Merge pull request #11715 from azat/dist-optimize_skip_unused_shards-fixes
...
Control nesting level for shards skipping and disallow non-deterministic functions
2020-06-24 12:54:58 +03:00
alexey-milovidov
1c1e12f06b
Merge pull request #11826 from ClickHouse/send-logs-on-fatal-errors
...
Send logs to client on fatal errors if possible
2020-06-23 09:49:48 +03:00
Alexey Milovidov
b50b4b14de
Merge branch 'master' into send-logs-on-fatal-errors
2020-06-22 15:48:46 +03:00
Alexander Kuzmenkov
7ab326a143
remove unneeded define
2020-06-22 15:34:25 +03:00
Alexander Kuzmenkov
ffc5b21bad
Merge remote-tracking branch 'origin/master' into HEAD
2020-06-22 15:28:03 +03:00
Alexey Milovidov
8cc411c5b5
Clarify setting
2020-06-21 21:50:02 +03:00
alexey-milovidov
c3a5c32a48
Merge branch 'master' into arch-chooser
2020-06-21 21:30:06 +03:00
Azat Khuzhin
fb30629ff2
Add settings to control nesting level for shards skipping optimization
...
- optimize_skip_unused_shards_nesting (allows control nesting level for
shards skipping optimization)
- force_skip_optimize_shards_nesting (allows control nesting level for
checking was shards skipped or not)
- deprecates force_skip_optimize_shards_no_nested
2020-06-21 15:27:01 +03:00
Alexey Milovidov
fe71a8eb8c
Merge branch 'master' into send-logs-on-fatal-errors
2020-06-21 13:55:11 +03:00
Alexey Milovidov
14e29f2c11
Disable bad optimization #10047
2020-06-20 21:00:00 +03:00
Alexey Milovidov
826fdf44ae
Set send_logs_level to fatal by default
2020-06-20 14:28:49 +03:00
Azat Khuzhin
caa195c034
Add number of errors to ignore while choosing replicas (distributed_replica_max_ignored_errors)
...
This will allow avoid switching to another replica in case of error
(since error can be temporary).
2020-06-20 11:20:16 +03:00
Alexey Milovidov
9f26ac06ea
Fix another 10% of bad code #11529
2020-06-20 09:54:05 +03:00
Azat Khuzhin
6507247328
optimize_skip_unused_shards=2 will disable it for nested distributed queries
...
P.S. Looks like settings can be converted between SettingUInt64 and
SettingBool without breaking binary protocol.
FWIW maybe it is a good idea to change the semantics of the settings as
follow (but I guess that changing semantic is not a good idea, better to
add new settings and deprecate old ones):
- optimize_skip_unused_shards -- accept nesting level on which the
optimization will work
- force_skip_optimize_shards_nesting -- accept nesting level on which
the optimization will work
2020-06-18 21:49:29 +03:00
Ruslan
23cd919681
Any input optimize ( #11529 )
...
* workig commit №1
* working commit №2
* first version of ArithmeticOperationsInAgrFuncOptimize (min, max, sum)
* fix conflicts
* fix №2
* attempt №3
* Description + little mistake
* fix style + expanded optimization + add performance test
* style + merge with new version
* one more branch
* bug fix + merge
* just merge
* some code style and logic fixes
* little changes
* tests
* test(2)
* style
* seems to have fixed everything that was required
* bug fix
* style
* build fix
* fix typo
* fix clang-10 warning
* fix clang-10 warning
* nolint
* add new files to ya.make
* extract all functions from Any
* add last new lines.
* extract all functions from Any
* add last new lines.
* build + requested changes
* code style
* build + little perf test + anyLast
* minor changes
* bug fix
* minor changes
* another minor changes
* fix + experement
* experement 2.0
* experement 3.0
* experement 3.1
* experement 4.0
* last experement(think so)
* just another attempt to fix UB
* minor changes
* I think I won
* ya.make
* fix requested changes
Co-authored-by: Artem Zuikov <chertus@gmail.com>
2020-06-18 19:34:29 +03:00
Artem Zuikov
6af36cb703
CAST keep nullable ( #11733 )
2020-06-18 13:18:28 +03:00
xPoSx
2d8110ce45
Eliminate min/max/any aggregators of GROUP BY keys in SELECT section ( #11667 )
2020-06-17 12:32:43 +03:00
Artem Zuikov
857d84bf7c
Buffer left blocks optimisation for MergeJoin ( #10601 )
2020-06-16 23:13:18 +03:00
xPoSx
9fc37e1f75
Remove functions of other keys in GROUP BY section ( #10051 )
2020-06-16 12:14:25 +03:00
Anton Popov
b19d48a11c
Merge remote-tracking branch 'upstream/master' into HEAD
2020-06-16 06:37:55 +03:00
Mikhail Malafeev
10566e2b43
Remove duplicate ORDER BY and DISTINCT from subqueries ( #10067 )
2020-06-15 15:03:01 +03:00
Alexander Tokmakov
5f9739fbf9
Merge branch 'master' into fork-potya/null_data_mods
2020-06-14 18:11:55 +03:00
kssenii
18820814f5
Merge
2020-06-10 23:25:33 +00:00
alexey-milovidov
4f2ed7a5e3
Merge branch 'master' into arch-chooser
2020-06-10 22:31:19 +03:00
Ivan
058821fa02
Merge branch 'master' into kafka_better_settings
2020-06-06 19:50:38 +03:00
Anton Popov
5c42408add
Merge pull request #9113 from dimarub2000/group_by_in_order_optimization
...
[WIP] Optimization of GROUP BY with respect to table sorting key.
2020-06-06 14:25:59 +03:00
alexey-milovidov
5f99d887cc
Merge pull request #11443 from 4ertus2/strange
...
Rename setting
2020-06-06 01:45:21 +03:00
Artem Zuikov
ab86ca2fb6
rename v2
2020-06-05 01:10:52 +03:00
Alexander Kuzmenkov
377da4656d
cleanup
2020-06-04 18:51:34 +03:00
Artem Zuikov
24ee7346a9
rename setting
2020-06-04 17:31:57 +03:00
Mikhail Filimonov
ea6545a175
Return output_format_pretty_max_value_width after rebase
2020-06-03 20:28:28 +02:00
Mikhail Filimonov
4956ade67d
Support for all format settings in Kafka, expose some setting on table level, better defaults.
2020-06-03 19:01:41 +02:00
Anton Popov
1ce09e1faa
Merge remote-tracking branch 'upstream/master' into polymorphic-parts
2020-06-03 16:27:54 +03:00
Alexander Kuzmenkov
3bf9cec63b
Merge remote-tracking branch 'origin/master' into HEAD
2020-06-03 14:49:49 +03:00
Ruslan
7757c9ec57
Remove arithmetic operations from aggregation functions ( #10047 )
2020-06-03 13:28:30 +03:00
kssenii
d3b069e37b
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into add-storage-rabbitmq-read-only
2020-06-01 18:25:36 +00:00
Alexander Kuzmenkov
9a2474ba84
move settings to a more suitable location
2020-06-01 20:17:31 +03:00
Alexander Kuzmenkov
03d8bf9242
Merge remote-tracking branch 'origin/master' into HEAD
2020-06-01 20:15:25 +03:00
Alexey Milovidov
a76bd99e84
Added setting "output_format_pretty_max_value_width"
2020-06-01 01:12:13 +03:00
alexey-milovidov
bebc6f82fc
Merge pull request #10678 from livace/add_geo_types
...
Add geo data types Point and Polygon
2020-05-31 17:25:15 +03:00
kssenii
e80b405359
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into add-storage-rabbitmq-read-only
2020-05-31 10:30:53 +00:00
Dmitry
4b0d32f026
Merge branch 'master' of github.com:yandex/ClickHouse into group_by_in_order_optimization
2020-05-31 00:21:02 +03:00
Alexey Milovidov
421a62e978
Merge branch 'master' into fix-false-too-slow
2020-05-30 19:36:55 +03:00