Nikita Mikhaylov
5c6d6bdf54
Merge pull request #11995 from azat/load_balancing-priority
...
Load balancing manual priority
2020-07-06 13:32:20 +04:00
alexey-milovidov
b6a19b5eff
Merge pull request #12148 from ClickHouse/fix-bad-redundant-order-by-optimization
...
Fix bad code in redundant ORDER BY optimization
2020-07-06 09:21:45 +03:00
Alexey Milovidov
1ca45c1b7e
Fix mutations interpreter #9088
2020-07-06 09:05:48 +03:00
alexey-milovidov
3aad122153
Merge pull request #12092 from CurtizJ/fix-state-resample
...
Fix segfault with -StateResample combinators
2020-07-06 08:47:42 +03:00
Alexey Milovidov
6483ba7d52
Style
2020-07-06 05:07:55 +03:00
Alexey Milovidov
f08ff9010e
Whitespace
2020-07-06 04:57:10 +03:00
Alexey Milovidov
95a7a09c37
Fix transform query for external databases in presense of aliases #12032
2020-07-06 04:50:45 +03:00
Alexey Milovidov
7f3a8f3eb9
Fix bad code in redundant ORDER BY optimization #10067
2020-07-06 02:50:20 +03:00
Anton Popov
e2e92afd98
fix segfault with -StateResample combinators
2020-07-06 02:17:46 +03:00
alexey-milovidov
6a013b966c
Update AggregateDescription.cpp
2020-07-05 19:27:54 +03:00
alexey-milovidov
0f1bfa5b19
Merge pull request #12042 from ClickHouse/fix-constraints
...
Fix constraints check for constant columns, step 1.
2020-07-05 19:01:33 +03:00
alexey-milovidov
eecf7ae3ee
Merge pull request #12140 from ClickHouse/fix-division
...
Fix potential overflow in integer division
2020-07-05 19:00:41 +03:00
myrrc
8c3417fbf7
ILIKE operator ( #12125 )
...
* Integrated CachingAllocator into MarkCache
* fixed build errors
* reset func hotfix
* upd: Fixing build
* updated submodules links
* fix 2
* updating grabber allocator proto
* updating lost work
* updating CMake to use concepts
* some other changes to get it building (integration into MarkCache)
* further integration into caches
* updated Async metrics, fixed some build errors
* and some other errors revealing
* added perfect forwarding to some functions
* fix: forward template
* fix: constexpr modifier
* fix: FakePODAllocator missing member func
* updated PODArray constructor taking alloc params
* fix: PODArray overload with n restored
* fix: FakePODAlloc duplicating alloc() func
* added constexpr variable for alloc_tag_t
* split cache values by allocators, provided updates
* fix: memcpy
* fix: constexpr modifier
* fix: noexcept modifier
* fix: alloc_tag_t for PODArray constructor
* fix: PODArray copy ctor with different alloc
* fix: resize() signature
* updating to lastest working master
* syncing with 273267
* first draft version
* fix: update Searcher to case-insensitive
* added ILIKE test
* fixed style errors, updated test, split like and ilike, added notILike
* replaced inconsistent comments
* fixed show tables ilike
* updated missing test cases
* regenerated ya.make
* Update 01355_ilike.sql
Co-authored-by: myrrc <me-clickhouse@myrrec.space>
Co-authored-by: alexey-milovidov <milovidov@yandex-team.ru>
2020-07-05 18:57:59 +03:00
alexey-milovidov
f02edaa48c
Merge pull request #12137 from ClickHouse/fix-loop-geodistance
...
Remove harmful code from "geoDistance"
2020-07-05 18:22:15 +03:00
Alexey Milovidov
6e1c1b0dbb
Whitespace
2020-07-05 03:35:57 +03:00
Alexey Milovidov
73a5c38398
Fix potential overflow in integer division #12119
2020-07-05 03:29:03 +03:00
Alexey Milovidov
731d92657d
Remove harmful code from "geoDistance" #12117
2020-07-05 00:57:57 +03:00
alexey-milovidov
e05283d5d3
Merge pull request #12060 from ClickHouse/fix-12053
...
Check wrong type for filter.
2020-07-04 23:46:34 +03:00
alexey-milovidov
cf1967bb29
Merge pull request #12089 from ClickHouse/fix-11595
...
Fix result_rows and result_bytes metrics for selects.
2020-07-04 23:41:51 +03:00
Alexey Milovidov
c4b6c780c6
Merge branch 'master' into fix-constraints
2020-07-04 23:36:48 +03:00
Mikhail Filimonov
6e599533a7
Add missing query context for system logs
...
Needed to allow attaching materialized views with joins or with
subqueries to system.logs.
2020-07-03 19:19:32 +02:00
Vitaly Baranov
929d652297
Merge pull request #12083 from vitlibar/improve-revoke-command
...
Improve REVOKE command
2020-07-03 17:17:36 +03:00
Alexander Tokmakov
383c583bdd
add uuid to atomic databases
2020-07-02 23:39:31 +03:00
Anton Popov
a5cbeda1e3
fix segfault with -StateResample combinators
2020-07-02 19:13:42 +03:00
Nikolai Kochetov
57d727d078
Fix result_rows and result_bytes metrics for selects.
2020-07-02 17:51:10 +03:00
alexey-milovidov
82061da77c
Merge pull request #12040 from azat/dist-fixes
...
Tiny fixes for distributed queries
2020-07-02 17:02:56 +03:00
Anton Popov
71059e4dff
Merge pull request #12062 from nvartolomei/nv/set-index-tuple-types
...
Try fix pk in tuple performance
2020-07-02 15:51:03 +03:00
Vitaly Baranov
03b36c262e
Improve REVOKE command: now it requires only grant/admin option for only
...
access which will be revoked.
REVOKE ALL FROM user1 now revokes all granted roles.
2020-07-02 12:54:24 +03:00
Nikolai Kochetov
79cd33a567
Fix tests.
2020-07-02 10:44:47 +03:00
Nicolae Vartolomei
3854ce6d84
Rewrite Set lookup to make it more readable
2020-07-01 15:05:54 +01:00
Nikolai Kochetov
3585700506
Fix tests.
2020-06-30 19:41:43 +03:00
Vitaly Baranov
c39eb8f71b
Fix partial revokes (complex cases).
2020-06-30 18:47:02 +03:00
Nikolai Kochetov
ddc231b088
Check type of filter for prewhere.
2020-06-30 17:58:11 +03:00
Nikolai Kochetov
e3aede57c6
Check type of filter for prewhere.
2020-06-30 17:48:00 +03:00
Nikolai Kochetov
18059e9289
Check type of filter for prewhere.
2020-06-30 17:44:49 +03:00
alexey-milovidov
81b43dc481
Merge pull request #12020 from ClickHouse/fix-collations-order-by-tuple-const
...
Fix ORDER BY tuple with COLLATE on const column
2020-06-30 15:09:57 +03:00
Artem Zuikov
29178e26da
fix low card types in merge join ( #12035 )
2020-06-30 14:13:43 +03:00
Alexander Kuzmenkov
67a28971e8
Merge remote-tracking branch 'origin/master' into HEAD
2020-06-30 09:09:36 +03:00
Alexey Milovidov
d97cb1e7b4
Fix constraints check for constant columns
2020-06-30 01:54:20 +03:00
Alexey Milovidov
5a35ff8938
Merge branch 'master' of github.com:yandex/ClickHouse into fix-collations-order-by-tuple-const
2020-06-30 01:51:04 +03:00
Nikolai Kochetov
8587c2025d
Merge branch 'master' into initial-explain
2020-06-29 23:35:56 +03:00
Nikolai Kochetov
b3a7a27779
Update arrows.
2020-06-29 23:23:34 +03:00
Azat Khuzhin
ebff4eae7d
Add replica priority for load_balancing
...
Make default 1, to match with <weight>
2020-06-29 23:03:28 +03:00
Azat Khuzhin
03def348c8
Sync comments for <node>/<replica> in Cluster.h
2020-06-29 23:03:28 +03:00
Azat Khuzhin
177d699cde
Do not check *optimize_skip_unused_shards_nesting w/o *optimize_skip_unused_shards
...
This will avoid supperior log message in case of
*optimize_skip_unused_shards_nesting already disables it.
And also it is logical.
2020-06-29 23:00:14 +03:00
Nikita Mikhaylov
da26f6496f
Merge pull request #11857 from ClickHouse/better-distinct-for-query-plan
...
Update query plan traits for DISTINCT. Add more comments.
2020-06-29 23:06:22 +04:00
alexey-milovidov
eeb9998d51
Merge pull request #12022 from oandrew/clickhouse-local-improvements
...
clickhouse-local improvements
2020-06-29 17:54:24 +03:00
Alexander Kuzmenkov
af8d62bbcb
Add TLB misses perf counters.
2020-06-29 15:48:18 +03:00
Nikolai Kochetov
40b398c8c4
Merge branch 'master' into better-distinct-for-query-plan
2020-06-29 11:14:05 +03:00
Andrew Onyshchuk
3c0ba8f9ad
Limit /proc/cpuinfo metrics to linux only
2020-06-28 18:44:24 -05:00
Alexey Milovidov
4dcdad2f08
Fix ORDER BY tuple with COLLATE on const column
2020-06-28 23:55:45 +03:00
Alexey Milovidov
28c446e9a5
Whitespace
2020-06-28 23:51:14 +03:00
Alexey Milovidov
6a8659ab34
Whitespace
2020-06-28 23:49:13 +03:00
Alexey Milovidov
1462a66d1e
Fix typos
2020-06-27 22:05:00 +03:00
Nikolai Kochetov
90fb5716cf
Fix build.
2020-06-27 18:30:19 +03:00
Nikolai Kochetov
ff47f83034
Refactor some code.
2020-06-27 17:18:23 +03:00
Nikolai Kochetov
5b1596cdb2
Refactor some code.
2020-06-27 17:02:24 +03:00
Nikolai Kochetov
893a75bcf7
Merge branch 'master' into initial-explain
2020-06-27 12:45:40 +03:00
Nikolai Kochetov
f1f98d7582
More comments.
2020-06-27 12:30:37 +03:00
Nikolai Kochetov
2c02bfac75
Compact pipeline.
2020-06-27 12:32:53 +03:00
Nikolai Kochetov
f4e944cd35
Graph for pipeline.
2020-06-27 12:30:37 +03:00
Nikolai Kochetov
79bcc8309c
Header for pipeline.
2020-06-27 12:31:56 +03:00
Nikolai Kochetov
5a678d74c2
Add explain pipeline.
2020-06-27 12:31:31 +03:00
Nikolai Kochetov
ca01094f4b
More actions description.
2020-06-27 12:31:11 +03:00
Nikolai Kochetov
d88e19b69d
Added actions setting for Explain query.
2020-06-27 12:31:06 +03:00
Nikolai Kochetov
b282a1775f
Add description setting.
2020-06-27 12:30:37 +03:00
Nikolai Kochetov
8408c03aff
Update explain settings.
2020-06-27 12:30:37 +03:00
Nikolai Kochetov
47d9f4af9c
Header for explain.
2020-06-27 12:30:51 +03:00
Nikolai Kochetov
e1481ccfc2
Add initial explain.
2020-06-27 12:30:38 +03:00
Alexander Kuzmenkov
58bf6f7adc
Merge pull request #11972 from ClickHouse/aku/cpu-freq
...
Add CPU frequencies to system.asynchronous_metrics
2020-06-26 20:45:58 +03:00
Nikolai Kochetov
4f5be494c5
Merge pull request #11950 from 4ertus2/joins
...
Extract JOIN in own plan step
2020-06-26 15:52:58 +03:00
Nikolai Kochetov
7c47a964cf
Update ExpressionActions.h
2020-06-26 15:24:13 +03:00
Anton Popov
39fe7d6c3f
Merge pull request #11729 from CurtizJ/distinct-combinator
...
Merging #10930 . (Distinct combinator)
2020-06-26 13:40:32 +03:00
Alexander Kuzmenkov
808713471c
Update AsynchronousMetrics.h
2020-06-26 05:18:57 +03:00
Artem Zuikov
54fd9ce76b
fix totals
2020-06-26 03:23:11 +03:00
Alexander Kuzmenkov
d77f397b38
review fixes
2020-06-26 03:18:33 +03:00
Artem Zuikov
d573005b04
place left join keys in before_join actions
2020-06-26 02:10:37 +03:00
alexey-milovidov
6a45f3e960
Merge pull request #11936 from ClickHouse/fix_11918
...
Fix query parameter visitor
2020-06-26 00:54:37 +03:00
Artem Zuikov
9637dad462
keep ArrayJoin optimisation
2020-06-25 23:59:10 +03:00
Alexander Kuzmenkov
477fbc70f8
Update AsynchronousMetrics.cpp
2020-06-25 23:46:18 +03:00
Alexander Kuzmenkov
059a2704d0
Add CPU frequencies to system.asynchronous_metrics
2020-06-25 23:43:57 +03:00
Artem Zuikov
2d7d389b77
better ExpressionAction::execute()
2020-06-25 23:28:41 +03:00
Artem Zuikov
bfe30a9723
remove a trick with expression continuation
2020-06-25 22:26:03 +03:00
Artem Zuikov
0e49a9ed4d
fix crash
2020-06-25 21:44:05 +03:00
Artem Zuikov
ae5ed098f4
remove useless logic
2020-06-25 21:18:27 +03:00
Artem Zuikov
801efc387a
extract JOIN in own plan step
2020-06-25 20:40:25 +03:00
Anton Popov
14e09e5650
Merge remote-tracking branch 'upstream/master' into HEAD
2020-06-25 14:59:15 +03:00
tavplubix
0260358253
Merge pull request #11934 from ClickHouse/fix_some_logical_errors
...
Fix some logical errors
2020-06-25 14:20:58 +03:00
alesapin
78ddeff1bc
Merge pull request #11920 from vitlibar/access-check-fix-using-current-database
...
Fix using current database while checking access rights.
2020-06-25 11:56:15 +03:00
Alexander Kuzmenkov
5bf30b1c1f
Merge pull request #11931 from ClickHouse/aku/local-tmp
...
Put clickhouse-local data to /tmp by default
2020-06-25 10:06:38 +03:00
Alexander Tokmakov
ae9aaa006d
fix query parameter visitor
2020-06-25 00:36:18 +03:00
Alexander Tokmakov
a6b7010531
fix some logical errors
2020-06-24 23:51:17 +03:00
Alexander Kuzmenkov
c678708c0c
Put clickhouse-local data to /tmp by default
...
This fixes https://github.com/ClickHouse/ClickHouse/issues/9848
Also fixes https://github.com/ClickHouse/ClickHouse/issues/11926
2020-06-24 22:03:28 +03:00
Artem Zuikov
2391ac22b7
Rewrite arithmetic in aggregate functions optimisation ( #11899 )
2020-06-24 21:49:55 +03:00
Vitaly Baranov
29a9d4187f
Fix using current database while checking access rights.
2020-06-24 17:31:05 +03:00
Alexey Milovidov
cd34cacee2
Keep alias after substitution of query parameters #11914
2020-06-24 16:14:04 +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
Vxider
c118f806ed
Remove unused code
2020-06-24 16:56:31 +08:00
tavplubix
2401bc9143
Merge pull request #11896 from ClickHouse/merging_drop_replica
...
Merging #10679
2020-06-24 11:42:39 +03:00
alexey-milovidov
55eee9bfa1
Merge pull request #11745 from ClickHouse/atomic_metadata5
...
Atomic metadata.
2020-06-23 22:28:40 +03:00
Alexander Tokmakov
7b5de16da9
minor improvements
2020-06-23 22:15:01 +03:00
hexiaoting
9135cb1bf1
fix bug for query "select *, abc.*" should failed. ( #11753 )
2020-06-23 12:16:42 +03:00
amudong
2a51286527
Optimize code
2020-06-23 16:22:53 +08:00
amudong
0101947403
rewrite static StorageReplicatedMergeTree::dropReplica
2020-06-23 12:12:30 +08:00
amudong
7723dc4935
add drop relica database and the whole replica
...
fix removeReplicaByZKPath
fix bug: add zkpath empty judge
fix: rewrite code
delete useless code.
fix:ast fromat
fix bug
add test_drop_replica
add drop_replica doc
add drop databse checkAccess
refactor dropReplica
update tests
add static method StorageReplicatedMergeTree::dropReplicaByZkPath
update doc and delete useless code
fix conflict
fix doc
fix doc
fix StorageReplicatedMergeTree::dropReplica
fix bug
delete useless code
2020-06-23 12:12:30 +08:00
amudong
2e6a3eff8e
fix: can not drop local table and replace ALTER with SYSTEM
...
fix test_drop_replica
fix drop replica '/path/to/zk/' ending in '/' and update doc
2020-06-23 12:12:30 +08:00
sundy-li
0a4af8f0a7
add SYSTEM DROP REPLICA
2020-06-23 12:12:30 +08:00
sundy-li
d4aa3cea4b
fix merge state
...
Fix style && build
2020-06-23 12:12:30 +08:00
sundy-li
906a43e4a8
Add drop replica alter support
2020-06-23 12:12:30 +08:00
Anton Popov
2f95daf4ed
more optimal aggregate functions with both 'if' and 'distinct' combinators
2020-06-22 17:57:30 +03:00
Nikolai Kochetov
58b3b5c2f9
Rename step.
2020-06-22 13:21:13 +03:00
Nikolai Kochetov
d7d334bf6f
Update query plan traits for DISTINCT. Add more comments.
2020-06-22 13:18:28 +03:00
alesapin
f262c4f652
Better comments
2020-06-22 12:49:21 +03:00
alesapin
b1e8976df4
Merge with master
2020-06-22 12:04:27 +03:00
alesapin
b9e74f4e82
Merge branch 'master' into atomic_metadata5
2020-06-22 12:03:53 +03:00
alexey-milovidov
38b018fa04
Update executeQuery.cpp
2020-06-21 21:29:11 +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
90b5e5d2f9
Merge pull request #11688 from ClickHouse/query-plan
...
Query plan
2020-06-21 14:05:13 +03:00
alexey-milovidov
cd3d7c9155
Merge pull request #11806 from azat/optimize_aggregators_of_group_by_keys-fix-alias
...
Preserve column alias with optimize_aggregators_of_group_by_keys
2020-06-21 00:13:19 +03:00
Denis Glazachev
6c1b2a4831
Merge branch 'master' into ldap-per-user-authentication
...
* master: (114 commits)
Update alter.md (#11823 )
Update PODArray.h
Added a test for #6549
Update create.md
Update create.md
replacingmergetree translate into "替换合并树“ better (#11814 )
Whitespace
Fix style
Added a test
Fix another 10% of bad code #11529
Update join.md (#11798 )
Update memory.md (#11800 )
Whitespace
Check for tests with "fail" in their names
Fix 10% of bad code #11756
Update PODArray.h
avoid duplicate short system name
adapt recent result as well
[website] tune benchmark pages styling + add extra checks
Added MSan suppression for Hyperscan
...
# Conflicts:
# src/Common/ErrorCodes.cpp
2020-06-20 22:01:12 +04:00
alexey-milovidov
c6877371ac
Merge pull request #11816 from ClickHouse/better-code-agr-functions-optimize
...
Fix 10% of bad code #11756
2020-06-20 16:51:44 +03:00
Nikolai Kochetov
819ea4fb89
Fix tests.
2020-06-20 16:48:21 +03:00
Nikolai Kochetov
0c6129ac7c
Fix build.
2020-06-20 11:52:41 +03:00
Nikolai Kochetov
4d70cc34c1
Merge branch 'master' into query-plan
2020-06-20 10:53:48 +03:00
Alexey Milovidov
9f26ac06ea
Fix another 10% of bad code #11529
2020-06-20 09:54:05 +03:00
Alexey Milovidov
b91782594d
Fix 10% of bad code #11756
2020-06-20 09:24:34 +03:00
alexey-milovidov
4129300fdb
Merge pull request #11788 from ClickHouse/fix-too-many-threads
...
Fix too many threads
2020-06-20 08:24:47 +03:00
alexey-milovidov
d341e34fac
Merge pull request #11795 from ClickHouse/remove-leader-election-3
...
Remove leader election, step 3: remove yielding of leadership; remove sending queries to leader.
2020-06-20 08:24:16 +03:00
tavplubix
b8685322b7
Merge pull request #11767 from amosbird/fs1
...
add scalars in time
2020-06-20 01:01:20 +03:00
Azat Khuzhin
5f14622bfd
Preserve column alias with optimize_aggregators_of_group_by_keys
...
optimize_aggregators_of_group_by_keys has been introduced in #11667
2020-06-19 23:04:19 +03:00
alesapin
85070ea2fd
Remove unused variable
2020-06-19 22:41:24 +03:00
Nikolai Kochetov
8a048340b0
Fix tests.
2020-06-19 21:23:44 +03:00
alesapin
4c0879ae30
Better logging in storages
2020-06-19 20:17:13 +03:00
Nikolai Kochetov
9ca456f255
Try fix totals.
2020-06-19 19:58:27 +03:00
Nikolai Kochetov
4cafa3d703
Try fix totals.
2020-06-19 19:51:44 +03:00
Nikolai Kochetov
f6cd3f43bb
Fix Context leak in InterpreterSelectQuery
2020-06-19 17:42:01 +03:00
Alexey Milovidov
5211a42c04
Remove leader election, step 3
2020-06-19 17:18:58 +03:00
Nikolai Kochetov
6c9c33f870
Fix Context leak in InterpreterSelectQuery
2020-06-19 17:00:11 +03:00
Nikolai Kochetov
ec892775a5
Fix Context leak in InterpreterSelectQuery
2020-06-19 16:34:40 +03:00
alexey-milovidov
3e06182079
Update InterpreterSelectQuery.cpp
2020-06-19 14:28:48 +03:00
Nikolai Kochetov
0335c698e0
Limit the number of threads.
2020-06-19 13:57:44 +03:00
Nikolai Kochetov
9ddd7b98cc
Fix tests.
2020-06-19 12:47:15 +03:00
Nikolai Kochetov
6708ae75f3
Fix build.
2020-06-19 11:30:21 +03:00
Nikolai Kochetov
cda4de40d7
Merge branch 'master' into query-plan
2020-06-19 11:29:15 +03:00
alesapin
67062f45be
Merge branch 'master' into atomic_metadata5
2020-06-19 11:09:03 +03:00
Anton Popov
36b9847d9a
Merge pull request #11768 from CurtizJ/any-input-optimize
...
Sligtly better code after #11529 .
2020-06-19 03:36:49 +03:00
Denis Glazachev
5db60202b6
Merge branch 'master' into ldap-per-user-authentication
2020-06-19 00:11:08 +04:00
Ruslan
f44dbcd2ab
Fix crash in min(multiply(1))
with optimize_arithmetic_operations_in_aggregate_functions ( #11756 )
2020-06-18 22:25:28 +03:00
Azat Khuzhin
d34e6217bc
Add logging of adjusting conditional settings for distributed queries
2020-06-18 21:49:29 +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
Nikolai Kochetov
7bfb5c9a47
Fix build.
2020-06-18 21:40:02 +03:00
Nikolai Kochetov
a99d9f7712
Fix build.
2020-06-18 21:36:37 +03:00
Nikolai Kochetov
b7bed87a7f
Use QueryPlan in InterpreterSelectQuery [part 3].
2020-06-18 21:29:33 +03:00
Nikolai Kochetov
45adacf0bc
Use QueryPlan in InterpreterSelectQuery [part 2].
2020-06-18 20:45:00 +03:00
alesapin
2ca9cfa753
Merge branch 'master' into atomic_metadata5
2020-06-18 20:28:01 +03:00
Anton Popov
bd28b7e1c2
better code
2020-06-18 20:05:26 +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
Amos Bird
d524301038
add scalars in time
2020-06-19 00:14:19 +08:00
alesapin
d79982f497
Better locks in Storages
2020-06-18 19:10:47 +03:00
Nikolai Kochetov
e0841360db
Use QueryPlan in InterpreterSelectQuery [part 1].
2020-06-18 16:38:45 +03:00
Nikolai Kochetov
5bb2ddc6f9
Add DISTINCT trait for QueryPlanStep.
2020-06-18 16:00:16 +03:00
Alexander Kuzmenkov
730c22f767
Merge pull request #11748 from ClickHouse/aku/unbreak-jemalloc-metrics
...
Unbreak jemalloc stats + add more of them
2020-06-18 15:24:30 +03:00
alesapin
d4c49816ab
Really atomic metadata
2020-06-18 14:02:31 +03:00
alesapin
aab4ce6394
Truncate with metadata
2020-06-18 13:29:13 +03:00
Artem Zuikov
6af36cb703
CAST keep nullable ( #11733 )
2020-06-18 13:18:28 +03:00
alesapin
ebb36bec8a
Merge branch 'master' into atomic_metadata5
2020-06-18 11:57:16 +03:00
Alexander Kuzmenkov
07ead3c815
Use hours instead of days.
...
std::chrono::days is C++20 which the barbarian Arcadia build is unable
to appreciate.
2020-06-18 05:03:59 +03:00
Alexander Kuzmenkov
4e42903eac
Unbreak jemalloc stats + add more of them
...
We didn't call the `epoch` mallctl, so all the statistics were stale.
Fix that, and also add some more statistics for arenas.
2020-06-18 04:54:10 +03:00
Anton Popov
8ba5bd8530
Merge remote-tracking branch 'upstream/master' into distinct-combinator
2020-06-18 01:44:36 +03:00
Nikolai Kochetov
9ad00187e3
Update InterpreterSelectQuery..
2020-06-17 23:19:55 +03:00
Nikolai Kochetov
169ad5e805
Add FinishSortingStep.
2020-06-17 22:57:13 +03:00
Nikolai Kochetov
e8049d34c5
Add OffsetsStep.
2020-06-17 22:38:45 +03:00
Anton Popov
88b325dcdc
rework distinct combinator
2020-06-17 22:36:27 +03:00
Nikolai Kochetov
69ff3a8f7d
Add ExtremesStep.
2020-06-17 22:30:36 +03:00
Nikolai Kochetov
d795b2b037
Add FillingStep
2020-06-17 22:20:30 +03:00
Nikolai Kochetov
84fd7fe51c
Update having.
2020-06-17 22:02:46 +03:00
Nikolai Kochetov
2cffa56914
Add RollupStep and CubeStep.
2020-06-17 20:20:09 +03:00
Nikolai Kochetov
d41db3622f
Add RollupStep and CubeStep.
2020-06-17 20:15:24 +03:00
alesapin
51a47560e0
Fix segmentation fault
2020-06-17 19:59:26 +03:00
Nikolai Kochetov
c5d9379df0
Add TotalsHavingStep.
2020-06-17 19:54:51 +03:00
alesapin
dffdece350
getColumns in StorageInMemoryMetadta (only compilable)
2020-06-17 19:39:58 +03:00
Nikolai Kochetov
1ad4f2c0fd
Add CreatingSets step.
2020-06-17 18:50:21 +03:00
Nikolai Kochetov
f279df6015
Added AggregatingStep.
2020-06-17 17:21:48 +03:00
alesapin
31abbe5dbd
Select query in metadata
2020-06-17 17:06:22 +03:00
alesapin
ed8f3b2fc4
TTL in storage in memory metadata
2020-06-17 16:39:26 +03:00
Nikolai Kochetov
582ea24469
Added AddingDelayedStreamStep
2020-06-17 16:38:17 +03:00
Vitaly Baranov
7011401cd4
Merge pull request #11670 from vitlibar/rbac-improve-parser-multiple-entities
...
RBAC: improve syntax
2020-06-17 16:26:02 +03:00
alesapin
1afdebeebd
Primary key in storage metadata
2020-06-17 15:39:20 +03:00
alesapin
1da393b218
Sampling key in StorageInMemoryMetadata
2020-06-17 15:07:09 +03:00
alesapin
eca6e9087e
Fix race condition
2020-06-17 14:52:19 +03:00
alesapin
ba04d02f1e
Compilable sorting key in metadata
2020-06-17 14:05:11 +03:00
alesapin
ab61abccc1
Partition key in StorageInMemoryMetadata
2020-06-17 13:34:23 +03:00
alesapin
62f2c17a66
Secondary indices in StorageInMemoryMetadata
2020-06-17 12:38:47 +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
Nikita Mikhaylov
edec79cf69
Merge pull request #11703 from nikitamikhaylov/merging-alter-query
...
Merging #11508
2020-06-17 12:47:34 +04:00
Nikita Mikhaylov
edff6eac6e
comment
2020-06-17 11:44:52 +03:00
alesapin
2fac3290f0
Merge branch 'master' into atomic_metadata5
2020-06-17 11:14:03 +03:00
Nikita Mikhaylov
ab04a6bb62
Merge pull request #11615 from azat/SYSTEM-FLUSH-LOGS-force-table-creation-v2
...
Force table creation on SYSTEM FLUSH LOGS (v2)
2020-06-17 11:09:19 +04:00
alexey-milovidov
e07d02015c
Merge pull request #11661 from ClickHouse/return-not-nullable-from-count-distinct-2
...
Return non-Nullable results from COUNT(DISTINCT), more complete.
2020-06-17 09:25:45 +03:00
alexey-milovidov
598fd75caf
Merge pull request #11639 from ClickHouse/remove-leader-election-2
...
Remove leader election, step 2: allow multiple leaders
2020-06-17 09:25:23 +03:00