Alexey Milovidov
d8cda3dbb8
Remove PVS-Studio
2023-02-19 23:30:05 +01:00
Nikita Mikhaylov
33877b5e00
Parallel replicas. Part [2] ( #43772 )
2023-02-03 14:34:18 +01:00
Igor Nikonov
7108189b45
Merge remote-tracking branch 'origin/master' into revert-45414-revert-43905-igor/remove_redundant_order_by
2023-01-24 11:46:24 +00:00
Alexander Tokmakov
70d1adfe4b
Better formatting for exception messages ( #45449 )
...
* save format string for NetException
* format exceptions
* format exceptions 2
* format exceptions 3
* format exceptions 4
* format exceptions 5
* format exceptions 6
* fix
* format exceptions 7
* format exceptions 8
* Update MergeTreeIndexGin.cpp
* Update AggregateFunctionMap.cpp
* Update AggregateFunctionMap.cpp
* fix
2023-01-24 00:13:58 +03:00
Igor Nikonov
1866f990de
Revert "Revert "Remove redundant sorting""
2023-01-18 20:12:34 +01:00
Igor Nikonov
7ed8fec94f
Revert "Remove redundant sorting"
2023-01-18 18:38:25 +01:00
Igor Nikonov
cec7dc5a5a
Renaming according to setting
2023-01-09 10:06:47 +00:00
Igor Nikonov
e29cd5d640
Rename settings to remove_redundant_sorting
2023-01-09 09:50:00 +00:00
Igor Nikonov
6f5fc6645b
Fix: remove ORDER BY before "mergeExpressions" optimization
...
When removing ORDER BY we remove corresponding expression,
so to remove only ORDER BY expression, do it before "mergeExpressions"
optimization is applied
2022-12-13 10:52:18 +00:00
Igor Nikonov
c2b10e8dba
Respect stateful functions in the optimization
2022-12-09 11:57:58 +00:00
Igor Nikonov
e59703abc6
Some tests + setting
2022-12-02 20:53:22 +00:00
Igor Nikonov
47ca855816
save
2022-12-02 19:27:45 +00:00
Nikolai Kochetov
2db1638b41
Disable optimize_in_window_order in case if read-in-order for query plan is enabled.
2022-11-04 16:18:35 +00:00
Nikolai Kochetov
9ffebf4a0c
Fixing read-in-order for special storages.
2022-11-01 19:51:52 +00:00
Nikolai Kochetov
375db5bd15
Use read-in-order from query plan by default.
2022-10-31 13:54:03 +00:00
Raúl Marín
133345eb37
Fix missing read bytes/rows in X-ClickHouse-Summary
2022-09-20 15:12:44 +02:00
Igor Nikonov
5ceaeb9e12
Sorting mode renaming
...
+ sort mode -> sort scope
+ Stream -> Global
+ Port -> Stream
2022-08-17 12:19:36 +00:00
Igor Nikonov
ea10fd65b8
Sorting properties in EXPLAIN PLAN
...
~ change formatting for sorting
~ rename sortmode option -> sorting
2022-08-15 15:14:59 +00:00
Igor Nikonov
86c5280db3
Merge remote-tracking branch 'origin/master' into skipping_sorting_step
2022-08-08 12:43:06 +00:00
Igor Nikonov
6572a447fa
Check if sorting order is preserved for FilterStep
2022-08-08 12:42:10 +00:00
Igor Nikonov
f52720fedc
Try to fix style errors
2022-08-06 23:33:19 +00:00
Igor Nikonov
a70c47f780
EXPLAIN PLAN sortmode options
...
+ ActionsDAG fixes
2022-08-04 22:02:53 +00:00
Igor Nikonov
0a659f5ab8
Analyze ActionsDAG in ExpressionStep
...
+ check if sorting order can be kept from prevous step
+ EXPLAIN PLAN header=1 contains Sort Mode and Sort Description for each step
+ some tests
+ fix some review comments
2022-08-04 19:30:25 +00:00
Nikolai Kochetov
eaeb30a71a
Merge branch 'master' into use-dag-in-key-condition
2022-07-19 18:39:52 +02:00
Nikolai Kochetov
00395e752e
Cleanup
2022-06-02 16:59:14 +00:00
Nikolai Kochetov
fd97a9d885
Move some resources
2022-05-23 19:47:32 +00:00
Nikolai Kochetov
9756b759c6
Move some resources
2022-05-23 13:46:57 +00:00
Nikolai Kochetov
56feef01e7
Move some resources
2022-05-20 19:49:31 +00:00
Amos Bird
a25bb50096
Refactor many exception messages
...
1. Always use fmt variant
2. Remove redundant period at the end of message
3. Remove useless parenthesis
2022-04-24 19:44:00 +08:00
vdimir
f106e2dd49
fix style in QueryPlan.cpp
2022-03-24 11:53:58 +00:00
vdimir
d16ae46589
remove description for ReadFromMergeTree from pipeline, adjust tests for plan
2022-03-24 11:31:52 +00:00
helifu
8a5bd2defa
Add explicit table info to the scan node of query plan and pipeline
...
:) explain plan select * from table1 t1 left join table2 t2 on t1.name = t2.name;
┌─explain──────────────────────────────────────────────────────────────────────────────────────┐
│ Expression ((Projection + Before ORDER BY)) │
│ Join (JOIN) │
│ Expression (Before JOIN) │
│ SettingQuotaAndLimits (Set limits and quota after reading from storage) │
│ ReadFromMergeTree (default.table1) │
│ Expression ((Joined actions + (Rename joined columns + (Projection + Before ORDER BY)))) │
│ SettingQuotaAndLimits (Set limits and quota after reading from storage) │
│ ReadFromMergeTree (default.table2) │
└──────────────────────────────────────────────────────────────────────────────────────────────┘
:) explain pipeline select * from table1 t1 left join table2 t2 on t1.name = t2.name;
┌─explain──────────────────────────────────────────┐
│ (Expression) │
│ ExpressionTransform × 24 │
│ (Join) │
│ JoiningTransform × 24 2 → 1 │
│ Resize 1 → 24 │
│ FillingRightJoinSide │
│ Resize 24 → 1 │
│ (Expression) │
│ ExpressionTransform × 24 │
│ (SettingQuotaAndLimits) │
│ (ReadFromMergeTree default.table1) │
│ MergeTreeThread × 24 0 → 1 │
│ (Expression) │
│ ExpressionTransform × 24 │
│ (SettingQuotaAndLimits) │
│ (ReadFromMergeTree default.table2) │
│ MergeTreeThread × 24 0 → 1 │
└──────────────────────────────────────────────────┘
2022-03-24 10:49:12 +00:00
Maksim Kita
1f5837359e
clang-tidy check performance-noexcept-move-constructor fix
2022-03-02 18:15:27 +00:00
Raúl Marín
dbb13036bc
Hook progress callbacks with subqueries too
2021-12-22 23:13:45 +01:00
Raúl Marín
edf4095139
Add QueryStatus to BuildQueryPipelineSettings and use it
2021-12-09 10:02:32 +01:00
Nikolai Kochetov
a08c98d760
Move some files.
2021-10-16 17:03:50 +03:00
Nikolai Kochetov
a8c3b02598
Merge branch 'master' into rewrite-pushing-to-views
2021-09-17 15:38:11 +03:00
Nikolai Kochetov
b997214620
Rename QueryPipeline to QueryPipelineBuilder.
2021-09-14 20:48:18 +03:00
Anton Popov
3a0d4807a5
Merge branch 'async-insert' of git://github.com/abyss7/ClickHouse into merging-20557
2021-08-06 16:20:02 +03:00
Peng Jian
8522589483
Collect the amount of parts, rows and marks during the build query pipeline
2021-07-13 22:50:47 +08:00
Alexey Milovidov
9c0097cd9b
Review fixes
2021-07-11 02:14:03 +03:00
Peng Jian
fb793696a1
Add bytes to result of EXPLAIN ESTIMATES
2021-07-09 19:17:03 +08:00
Peng Jian
b526aacd56
Show estimates for SELECT query
2021-07-09 18:29:45 +08:00
Nikolai Kochetov
47f130d39c
Try use expression for KeyCondition from query plan.
2021-06-22 16:54:00 +03:00
Ivan Lezhankin
774107738c
Fix build
2021-06-02 19:52:33 +03:00
Alexey Milovidov
ad88819ee4
Fix a bunch of warnings from PVS-Studio
2021-05-08 19:13:10 +03:00
Alexey Milovidov
3025f9e141
More fixes for PVS-Studio
2021-05-08 19:12:49 +03:00
Nikolai Kochetov
9632b83bdf
Support explain json = 1, indexes = 1. Added test.
2021-04-20 16:39:23 +03:00
Nikolai Kochetov
8c2d58333a
Merge branch 'master' into explain-output
2021-04-19 17:40:27 +03:00
Nikolai Kochetov
23089a2fec
Add special setting to show indexes.
2021-04-16 14:11:45 +03:00