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
988ce29e9e
Check if expression step violates sorting correctly
2022-08-06 22:37:14 +00:00
Igor Nikonov
f5f6ada69b
ActionsDAG check is not dependent on sort description
2022-08-05 11:00:18 +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
658a269d56
Merge branch 'master' into use-dag-in-key-condition
2022-08-04 16:18:40 +02:00
Nikolai Kochetov
77c143aa23
Fix extra column after ARRAY JOIN optimization.
2022-08-01 17:56:27 +00:00
Nikolai Kochetov
b70be40804
Merge branch 'master' into use-dag-in-key-condition
2022-07-25 14:30:22 +02:00
Alexander Tokmakov
a8da5d96fc
remove some dead and commented code
2022-07-21 15:05:48 +02:00
Nikolai Kochetov
eaeb30a71a
Merge branch 'master' into use-dag-in-key-condition
2022-07-19 18:39:52 +02:00
Nikita Taranov
2487ba7f00
Move updateInputStream
to ITransformingStep
( #37393 )
2022-06-27 13:16:52 +02:00
zhanglistar
ca67e67a74
Fix a typo
2022-05-27 15:52:04 +08:00
Amos Bird
76ddb39d02
refactor format
2022-05-24 12:09:00 +08: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
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
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
Nickita Taranov
698a984c07
throw if sorting column not found
2022-04-04 14:33:58 +02:00
Nickita Taranov
b095838444
stash
2022-04-04 14:33:57 +02:00
Nickita Taranov
4c51329ad6
stash
2022-04-04 14:33:57 +02:00
Maksim Kita
b1a956c5f1
clang-tidy check performance-move-const-arg fix
2022-03-02 18:15:27 +00:00
vdimir
ee09ec4dd1
Apply join_use_nulls on types before join
2022-02-11 15:56:45 +00:00
Amos Bird
52aabf98fe
Revise and add more comments
2022-02-06 16:53:54 +08:00
Maksim Kita
5ef83deaa6
Update sort to pdqsort
2022-01-30 19:49:48 +00:00
Azat Khuzhin
dd7bffcaf9
ActionsDAG: add allow_constant_folding flag for removeUnusedActions()
2021-10-26 22:56:44 +03:00
Azat Khuzhin
248b689067
ActionsDag: add allow_remove_inputs for other variants of removeUnusedActions()
2021-10-26 22:56:44 +03:00
Nikolai Kochetov
122d39cbba
Fix missing condition in pushed down predicate. ( #29625 )
2021-10-04 17:50:03 +03:00
Mike Kot
8e9aacadd1
Initial: replacing hardcoded toString for enums with magic_enum
2021-09-06 16:24:03 +02:00
Nikolai Kochetov
98eb619b4b
Merge pull request #23367 from Avogar/short-circuit
...
Implement short circuit function evaluation
2021-08-17 12:36:07 +03:00
vdimir
db187c6b2d
Fix aliased_column_distributed_bug
2021-08-16 17:26:14 +03:00
mergify[bot]
319e5af6eb
Merge branch 'master' into short-circuit
2021-08-13 13:01:46 +00:00
kssenii
dcc6f597dc
Move templates from FunctionsConvertion
2021-08-11 19:09:51 +00:00
kssenii
7555fc19fd
Revert "Move some templates"
...
This reverts commit 7f247becca
.
2021-08-11 18:49:25 +00:00
kssenii
7f247becca
Move some templates
2021-08-11 07:32:46 +00:00
Pavel Kruglov
b841a96c39
Refactor code
2021-08-10 14:31:15 +03:00
Pavel Kruglov
b6061e132a
Small fixes
2021-08-09 17:44:39 +03:00
Pavel Kruglov
775d190fb3
Fix tests
2021-08-09 17:43:10 +03:00
Pavel Kruglov
50d4192126
Implement short circuit function evaluation, first attempt
2021-08-09 17:43:10 +03:00
kssenii
9ca422f0c5
Introduce CAST for internal usage
2021-08-07 09:03:10 +00:00
Nikolai Kochetov
0ae7195a8c
Merge branch 'master' into use-dag-in-key-condition
2021-07-14 12:02:18 +03:00
Alexey Milovidov
d848e5495c
Better implementation
2021-07-12 09:36:46 +03:00
Alexey Milovidov
ff5c433f10
Check for non-deterministic functions in keys, including constant expressions
2021-07-12 08:58:19 +03:00
Maksim Kita
da8c957167
Aggregator added CompiledExpressionCache
2021-07-01 22:56:36 +03:00
Nikolai Kochetov
21e39e10ea
Update KeyCondition constructor
2021-06-22 13:28:56 +03:00
Nikolai Kochetov
5227a76e3a
Add comment.
2021-06-17 23:05:39 +03:00
Nikolai Kochetov
4a496f1374
Fix lost considion in predicate push down.
2021-06-17 12:47:12 +03:00
Nikolai Kochetov
d4998909b6
Merge pull request #24463 from ClickHouse/fix-24024
...
Fix header mismatch for UNION.
2021-05-25 12:04:45 +03:00
Maksim Kita
0628fb8b1b
Merge pull request #24417 from kitaisreal/function-constant-result-with-nonconstant-arguments
...
Function constant result with nonconstant arguments
2021-05-24 23:16:47 +03:00
Nikolai Kochetov
79a0029843
Fix header mismatch for UNION.
2021-05-24 21:09:00 +03:00
Maksim Kita
7af4d5b86d
Fixed tests
2021-05-24 14:25:02 +03:00
Maksim Kita
1a725d916b
Upated LogicalFunctions
2021-05-24 10:16:12 +03:00
Maksim Kita
ed443c8941
Function constant result with nonconstant arguments
2021-05-24 10:16:12 +03:00
Alexey Milovidov
d32819f068
Mark false positives for PVS-Studio
2021-05-24 06:59:12 +03:00
Maksim Kita
b0476c1fa2
Merge pull request #24273 from kitaisreal/expression-actions-compile-only-necessary-places
...
ExpressionActions compile only necessary places
2021-05-20 10:53:30 +03:00
Maksim Kita
150a88d647
ExpressionActions compile only necessary places
2021-05-19 11:43:16 +03:00
Nikolai Kochetov
57f5e33464
Try to fix GROUP BY _shard_num
2021-05-18 18:17:19 +03:00
Maksim Kita
947f28d430
IFunction refactoring
2021-05-15 20:33:15 +03:00
Nikolai Kochetov
782f02b1dc
Review fixes.
2021-05-14 13:01:27 +03:00
Nikolai Kochetov
a1e9202b93
Review fixes.
2021-05-14 12:30:32 +03:00
Nikolai Kochetov
bc4ccdece6
Fix tests.
2021-05-13 21:07:47 +03:00
Nikolai Kochetov
d78be51fb4
Calculate header for ActionsDAG
2021-05-13 16:38:18 +03:00
Amos Bird
51d685bb9c
Even more fixes
2021-05-11 18:12:29 +08:00
Amos Bird
718c284437
Fix more tests
2021-05-11 18:12:28 +08:00
Amos Bird
ba17acbd63
Fix tests
2021-05-11 18:12:28 +08:00
Amos Bird
f7f949c1f9
Fix aggregation keys order
2021-05-11 18:12:27 +08:00
Amos Bird
35961c0c5d
Use ActionsDAG to rewrite projection queries
2021-05-11 18:12:27 +08:00
Maksim Kita
6dc0dcdfa4
Fixed code review issues
2021-05-08 17:39:35 +03:00
Maksim Kita
dd44d93f49
Fixed compile expressions
2021-05-08 17:39:35 +03:00
alexey-milovidov
b76503a4ea
Update ActionsDAG.cpp
2021-05-08 17:39:35 +03:00
Maksim Kita
21d8684aaf
Added CHJIT documentation
2021-05-08 17:39:35 +03:00
Nikolai Kochetov
c508868570
Merge pull request #23082 from ClickHouse/explain-output
...
JSON output for EXPLAIN
2021-04-28 15:39:06 +03:00
Alexander Kuzmenkov
7ea5bd4a3f
Merge remote-tracking branch 'origin/master' into HEAD
2021-04-23 09:26:43 +03:00
Alexander Kuzmenkov
06ca44a378
fix pvs warnings
2021-04-22 22:54:58 +03:00
mergify[bot]
71bca99bbf
Merge branch 'master' into explain-output
2021-04-22 07:02:47 +00:00
Nikolai Kochetov
942cd54f23
Fix copy paste thanks to PVS studio.
2021-04-20 16:41:37 +03:00
Amos Bird
32c84f77c3
Resurrect indexHint function.
2021-04-20 19:27:23 +08:00
Nikolai Kochetov
9b86c19836
Use JSONBuilder for explain json result.
2021-04-14 17:07:56 +03:00
Nikolai Kochetov
48bcd5b490
Add tree conversion for expression.
2021-04-09 19:18:45 +03:00
Nikolai Kochetov
3ea186358e
Fix fuzz crash.
2021-04-08 18:00:32 +03:00
Nikolai Kochetov
118090396f
Filter column after filter push down now always the first one..
2021-04-08 12:54:39 +03:00
Nikolai Kochetov
c3c393a7aa
Merge branch 'master' into refactor-actions-dag
2021-03-18 14:33:07 +03:00
Nikolai Kochetov
9fdb0e667f
Add comment.
2021-03-17 21:40:26 +03:00
Nikolai Kochetov
2c1539f641
Fix added input.
2021-03-17 20:08:30 +03:00
Nikolai Kochetov
3eba817a68
Add comments.
2021-03-17 19:08:46 +03:00
Nikolai Kochetov
738cb1af62
Fix filter push down columns order.
2021-03-17 18:33:18 +03:00
Nikolai Kochetov
b3ea25116f
Fix style
2021-03-12 00:33:06 +03:00
Nikolai Kochetov
a5a8a70e6f
Remove commented code.
2021-03-11 20:03:39 +03:00
Nikolai Kochetov
78b7137877
Try fix last tests.
2021-03-11 17:13:36 +03:00
Nikolai Kochetov
7a4dafe106
Fix filter push down columns order.
2021-03-11 13:34:15 +03:00
Nikolai Kochetov
3ee771c600
Remove debug output.
2021-03-10 21:50:34 +03:00
Nikolai Kochetov
7b341c3749
Remove debug output.
2021-03-10 19:05:37 +03:00
Nikolai Kochetov
3a050286f7
Try fix other tests.
2021-03-10 18:12:34 +03:00
Nikolai Kochetov
4f133ae036
Merge branch 'master' into refactor-actions-dag
2021-03-10 12:40:55 +03:00
Nikolai Kochetov
f3cfc67fa3
Fix other tests.
2021-03-10 00:41:10 +03:00
Nikolai Kochetov
4d697c27e4
Fix some tests.
2021-03-09 19:54:06 +03:00
Vladimir
6ec19b2632
Merge pull request #19885 from ClickHouse/vdimir/join-cast-types-v2
2021-03-09 09:30:50 +03:00
Nikolai Kochetov
c481401b0b
Fix build.
2021-03-05 12:54:17 +03:00
Nikolai Kochetov
9a39459888
Refactor ActionsDAG
2021-03-04 20:38:12 +03:00
Nikolai Kochetov
15921fbfcb
Remove index by name from ActionsDAG
2021-03-03 23:01:07 +03:00
Nikolai Kochetov
4775ea305e
Remove index by name from ActionsDAG
2021-03-02 20:51:54 +03:00
Nikolai Kochetov
ffaf9da2db
Remove index by name from ActionsDAG
2021-03-02 20:08:59 +03:00
Nikolai Kochetov
ffbea93b10
Merge pull request #19576 from traceon/row-policy-with-prewhere
...
Allow row policies with PREWHERE
2021-03-02 13:51:37 +03:00
Nikolai Kochetov
d328bfa41f
Review fixes. Add setting max_optimizations_to_apply.
2021-02-26 19:29:56 +03:00
Nikolai Kochetov
00e0dbc3e5
Fix test.
2021-02-20 20:42:06 +03:00
Nikolai Kochetov
f0396661b3
Refactor ActionsDAG::splitActionsForFilter
2021-02-20 19:13:36 +03:00
vdimir
a378bd08aa
Perform implicit type conversion for JOIN ON keys
2021-02-19 14:28:40 +03:00
Nikolai Kochetov
6522bfc402
Support for DIstinct, sorting steps.
2021-02-17 19:54:11 +03:00
Nikolai Kochetov
a8647096ed
Try fix tests.
2021-02-17 13:27:47 +03:00
Nikolai Kochetov
ae73600fb0
Refactor row level security actions.
2021-02-15 22:48:06 +03:00
Nikolai Kochetov
f1c32c4690
Merge branch 'master' into filter-push-down
2021-02-12 18:26:08 +03:00
Nikolai Kochetov
bbed905461
Fix ActionsDAG::removeUnusedResult
2021-02-12 18:20:54 +03:00
Nikolai Kochetov
7e75965af8
Fix ActionsDAG::splitActionsForFilter
2021-02-12 12:35:26 +03:00
Nikolai Kochetov
2deff0d9d0
Fix ActionsDAG::splitActionsForFilter
2021-02-11 18:44:10 +03:00
Nikolai Kochetov
e24b8e8a13
Fix ActionsDAG::splitActionsForFilter
2021-02-11 15:06:28 +03:00
alesapin
c2bb2c2902
Merge pull request #20097 from ClickHouse/remove-adding-missed-step
...
Build actions dag to evaluate missing defaults.
2021-02-11 10:51:21 +03:00
Nikolai Kochetov
a83885392e
Split filter for predicate push down.
2021-02-10 20:47:48 +03:00
Nikolai Kochetov
48f6f7e490
Split filter for predicate push down.
2021-02-10 19:26:49 +03:00
alesapin
420f2958e2
Merge pull request #19991 from ClickHouse/constant-propagation-fix
...
Do not use inputs which values are known constants in ActionsDAG.
2021-02-10 14:13:52 +03:00
Nikolai Kochetov
d7fa440356
Merge branch 'master' into remove-adding-const-column-transform
2021-02-08 15:49:23 +03:00
Nikolai Kochetov
d563cfb2be
Fix tests.
2021-02-05 22:22:11 +03:00
Nikolai Kochetov
e49315e058
Fix tests.
2021-02-05 19:52:50 +03:00
Nikolai Kochetov
a7f58da87e
Fix tests.
2021-02-05 19:35:21 +03:00
Nikolai Kochetov
31384cd652
Fix test.
2021-02-05 17:37:49 +03:00
Nikolai Kochetov
d9aa1096cf
Build actions dag to evaluate missing defaults.
2021-02-04 23:36:50 +03:00
Nikolai Kochetov
e3d6ffd9dc
Remove AddingConstColumn step and transform.
2021-02-04 17:25:11 +03:00
Nikolai Kochetov
7a2279d067
Fix removing filter column from expression after Filter actions split
2021-02-04 14:44:00 +03:00
Nikolai Kochetov
73002eb3b7
Fix constant propagation.
2021-02-03 13:29:44 +03:00
Nikolai Kochetov
998aed3029
Do not use inputs which values are known constants in ActionsDAG.
2021-02-02 14:58:35 +03:00
Nikolai Kochetov
f7dc83ae96
Merge pull request #19725 from ClickHouse/limit-push-down
...
Update QueryPlan tree optimization traverse.
2021-01-30 16:34:46 +03:00
Nikolai Kochetov
e1765e7f88
Add method trivial to ActionsDAG
2021-01-28 14:00:24 +03:00
Nikolai Kochetov
d13ec0d909
Fix crash after mergine ActionsDAG.
2021-01-27 14:10:09 +03:00
Nikolai Kochetov
d683bf42ce
Review fixes.
2021-01-22 16:46:56 +03:00
Nikolai Kochetov
f4a718aab9
Fix tests.
2021-01-19 17:53:51 +03:00
Nikolai Kochetov
b0b3cfbd02
Split filter optimization.
2021-01-19 14:48:09 +03:00
Nikolai Kochetov
b00f01d6b1
Split filter optimization.
2021-01-19 13:03:25 +03:00
Nikolai Kochetov
b9c0f2b4c9
Push actions result to begin of block.
2021-01-19 00:54:01 +03:00
Nikolai Kochetov
c00471bd1c
Update tryLiftUpArrayJoin
2021-01-18 23:52:33 +03:00
Nikolai Kochetov
d914bf9552
Update tryLiftUpArrayJoin
2021-01-18 23:34:46 +03:00
Nikolai Kochetov
31a40880b4
Update tryLiftUpArrayJoin
2021-01-18 22:56:34 +03:00
Nikolai Kochetov
7135c62204
Update tryLiftUpArrayJoin
2021-01-18 19:12:16 +03:00
Nikolai Kochetov
8bafe9cca3
Support split for ActionsDAG.
2021-01-18 17:59:59 +03:00
Nikolai Kochetov
74cdf98e8f
Try to fix ActionsDAG::merge.
2021-01-12 21:58:05 +03:00
Nikolai Kochetov
1937659450
Add more info for ActionsDAG
2021-01-12 21:47:54 +03:00
Nikolai Kochetov
24d462b018
Try to remove ActionsDAG::removeColumn
2021-01-11 19:15:03 +03:00
Alexander Kuzmenkov
3f33e6b3e0
some review fixes
2020-12-22 20:46:31 +03:00
Alexander Kuzmenkov
5e19eaf2f0
Merge remote-tracking branch 'origin/master' into tmp
2020-12-18 03:49:59 +03:00
Alexander Kuzmenkov
fabb37d3c9
cleanup
2020-12-15 20:39:58 +03:00
Alexander Kuzmenkov
6d5b23de67
something works
2020-12-15 03:36:03 +03:00
Maksim Kita
0464859cfe
Updated usage of different types during IN query
...
1. Added accurateCast function.
2. Use accurateCast in Set during execute.
3. Added accurateCast tests.
4. Updated select_in_different_types tests.
2020-12-14 22:12:15 +03:00
Nikolai Kochetov
d9773942a2
Rewiev fixes.
2020-12-01 14:19:03 +03:00