Dmitry Novik
d9a6e36685
Add comments
2023-06-05 11:02:23 +00:00
Nikolai Kochetov
975e58c56d
Fix style.
2023-06-02 15:15:44 +00:00
Nikolai Kochetov
92859ebb3b
Fixing more tests.
2023-06-01 21:15:15 +00:00
Dmitry Novik
c6dcb69b85
Fix GLOBAL IN
2023-06-01 14:34:30 +00:00
Dmitry Novik
70c1b1de57
Remove code
2023-06-01 14:34:29 +00:00
Dmitry Novik
a4cb82127d
Analyzer: WIP on distributed queries
2023-06-01 14:34:29 +00:00
Nikolai Kochetov
c740328426
Fix more tests.
2023-05-30 18:51:18 +00:00
Nikolai Kochetov
8cec00dd6e
Merge branch 'master' into refactor-subqueries-for-in
2023-05-30 18:08:37 +02:00
Sema Checherinda
84d6bfe5f6
Merge pull request #50204 from azat/InsertSelectQueries-pe
...
Add new profile events for queries with subqueries
2023-05-30 15:19:04 +02:00
Azat Khuzhin
6b5933a3db
Add new profile events for queries with subqueries
...
Differs from SelectQuery/InsertQuery that it could be > 1 (in case of
MATERIALIZED VIEW attached to the table), since each local SELECT/INSERT
query is accounted, not only initial.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-05-26 18:28:40 +02:00
Antonio Andelic
4bdce2a669
Fix test for new analyzer
2023-05-26 15:02:50 +00:00
Nikolai Kochetov
b5b261b22c
Merge branch 'master' into refactor-subqueries-for-in
2023-05-25 21:22:06 +02:00
Nikolai Kochetov
7ebe19f5fb
Fixing more tests
2023-05-25 19:18:11 +00:00
Nikolai Kochetov
30ff5113d9
Fixing more tests.
2023-05-25 13:33:52 +00:00
Nikita Mikhaylov
1c3b6738f4
Fixes for parallel replicas ( #50195 )
2023-05-25 14:41:04 +02:00
Nikolai Kochetov
6de52e9fce
Fixing some tests.
2023-05-23 18:36:02 +00:00
Nikolai Kochetov
ff6400f91a
Merge branch 'master' into refactor-subqueries-for-in
2023-05-22 13:07:51 +02:00
Igor Nikonov
e743693fb3
Merge remote-tracking branch 'origin/master' into fill_with_by_sorting_prefix_2
2023-05-14 15:56:12 +00:00
Igor Nikonov
72f4aed64b
Add setting use_with_fill_by_sorting_prefix
2023-05-10 21:08:29 +00:00
Igor Nikonov
5143b37d06
Fix clang-tidy build
2023-05-10 17:03:48 +00:00
Azat Khuzhin
d03ae2abfa
Fix modernize-loop-convert clang-tidy warning
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-05-09 21:19:37 +02:00
Alexey Milovidov
6fddb5bad3
Simplification
2023-05-07 06:31:00 +02:00
Igor Nikonov
6e9c519195
Merge remote-tracking branch 'origin/master' into fill_with_by_sorting_prefix_2
2023-05-06 19:33:26 +00:00
Nikolai Kochetov
54ef6769f1
Refactor PreparedSets [4]
2023-05-05 18:30:08 +00:00
Nikolai Kochetov
f598a39ea2
Refactor PreparedSets [3]
2023-05-04 17:54:08 +00:00
Igor Nikonov
0f9271a349
Passing sort description apart of fill description
2023-05-04 12:10:06 +00:00
Azat Khuzhin
2b21b83979
Reduce inter-header dependencies
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-05-02 21:15:18 +02:00
Nikolai Kochetov
80a2f30a0c
Refactor PreparedSets [2]
2023-04-25 18:14:08 +00:00
Alexander Gololobov
018f768e7e
Cleanups
2023-04-14 20:07:37 +02:00
Alexander Gololobov
0ae74ddf42
Use different types for referencing local set and set that is stored in cache shared between tasks
2023-04-14 16:12:18 +02:00
Alexander Gololobov
05a9d1cbfc
Cleanups
2023-04-14 16:12:18 +02:00
Alexander Gololobov
fbf09a1115
Fixes for new analyzer
2023-04-14 16:12:18 +02:00
Alexander Gololobov
adbe87e9d3
Fixes
2023-04-14 16:12:18 +02:00
Alexander Gololobov
0b9579bfb8
Reworked, testing
2023-04-14 16:12:18 +02:00
Robert Schulze
7a21d5888c
Remove -Wshadow suppression which leaked into global namespace
2023-04-13 08:46:40 +00:00
Dmitry Novik
235ad55bad
Merge branch 'master' into analyzer-additional-filters
2023-04-12 01:13:38 +02:00
Dmitry Novik
0e417b1a6f
Cleanup the code
2023-04-11 14:08:28 +00:00
Azat Khuzhin
79b83c4fd2
Remove superfluous includes of logger_userful.h from headers
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-04-10 17:59:30 +02:00
Dmitry Novik
a1552159e3
Fix style
2023-04-06 21:35:28 +00:00
Dmitry Novik
a60c315b3e
Support additional_result_filter
2023-04-06 19:18:26 +00:00
Vladimir C
e7a5c96353
Merge pull request #48219 from ClickHouse/vdimir/lock_order_47072
2023-04-06 11:54:33 +02:00
Dmitry Novik
4cb1ffa2eb
Fix distributed case
2023-04-05 16:13:03 +00:00
vdimir
01ce3baf0f
Rename Context::getTemporaryVolume to getGlobalTemporaryVolume
2023-04-05 13:42:13 +00:00
Dmitry Novik
96a1304730
WIP on additional_table_filters
2023-04-04 20:33:59 +00:00
Dmitry Novik
a06e1f4d59
Fix lambda type resolution
2023-04-03 15:46:32 +00:00
Antonio Andelic
ac8dd527dc
Address PR comments
2023-03-28 07:49:34 +00:00
Antonio Andelic
28182e9489
Fix typo
2023-03-27 15:51:42 +02:00
Antonio Andelic
fa8ea85f3d
Make custom key work with new analyzer
2023-03-27 13:39:33 +00:00
Antonio Andelic
5b0d94415c
Merge branch 'master' into custom-key-new-analyzer
2023-03-27 10:04:09 +00:00
Dmitry Novik
0638f31a09
Merge pull request #47727 from ClickHouse/const-aggregation-key-fix
...
Fix aggregation with constant key in planner
2023-03-24 19:47:20 +01:00
Maksim Kita
5cb2d30563
Merge pull request #47316 from ClickHouse/vdimir/transform_external_query_analyzer
...
Support transformQueryForExternalDatabase for analyzer
2023-03-24 17:53:00 +01:00
Nikolai Kochetov
a2182f2659
Merge pull request #47874 from amosbird/correct_exact_rows_before_limit
...
Correct `exact_rows_before_limit` in some scenarios
2023-03-24 15:09:42 +01:00
vdimir
c2a3679959
Add buildSelectQueryInfo to Planner/Utils, use in unit tests
2023-03-23 15:53:22 +00:00
Maksim Kita
f45dac99c2
Revert "Revert "Analyzer planner fixes before enable by default""
2023-03-22 17:19:32 +01:00
Amos Bird
02c5d1f364
Correct exact_rows_before_limit in all senarios
2023-03-22 23:26:31 +08:00
vdimir
023d14a894
Support transformQueryForExternalDatabase for analyzer
2023-03-22 08:59:04 +01:00
Dmitry Novik
3cafb9747a
Fix corner cases and TOTALS with constants
2023-03-20 19:42:11 +01:00
Antonio Andelic
23644f655b
Add support for custom key in new analyzer
2023-03-20 13:23:25 +00:00
Dmitry Novik
f6569f60e6
Remove constant aggregation keys
2023-03-19 20:50:32 +01:00
Alexey Milovidov
ef5e8462da
Revert "Analyzer planner fixes before enable by default"
2023-03-19 19:25:37 +03:00
Maksim Kita
2d2696bc20
Fixed code review issues
2023-03-17 14:34:23 +01:00
Maksim Kita
7b108c9788
Fixed tests
2023-03-15 15:21:49 +01:00
Maksim Kita
87f8138c55
Analyzer support row policy
2023-03-15 15:21:49 +01:00
Maksim Kita
6c2084052c
Fixed tests
2023-03-15 15:21:49 +01:00
Maksim Kita
c102adb728
Analyzer added PREWHERE support
2023-03-15 15:21:49 +01:00
Dmitry Novik
ae3d30a736
Merge remote-tracking branch 'origin/master' into fix-grouping-for-grouping-sets
2023-03-14 12:01:51 +00:00
Maksim Kita
fe25922899
Planner JOIN TREE build fix
2023-03-12 13:43:58 +01:00
Maksim Kita
faaa1d8570
Fixed tests
2023-03-11 11:51:54 +01:00
Maksim Kita
25088187d4
Fixed tests
2023-03-11 11:51:54 +01:00
Maksim Kita
3d34247998
Fixed tests
2023-03-11 11:51:54 +01:00
Maksim Kita
0358cb36d8
Fixed tests
2023-03-11 11:51:54 +01:00
Maksim Kita
a762112e15
Analyzer support distributed JOINS and subqueries in IN functions
2023-03-11 11:51:54 +01:00
Vladimir C
12480f60b5
Merge pull request #47068 from ClickHouse/vdimir/auto-join-cross
2023-03-10 16:12:46 +01:00
Dmitry Novik
a305c6e7ab
Fix distributed GROUPING SETS and GROUPING function
2023-03-09 18:00:23 +00:00
Dmitry Novik
13f1e5b022
Merge remote-tracking branch 'origin/master' into analyzer-group-by-use-nulls
2023-03-07 16:16:48 +00:00
Igor Nikonov
56e8547f7e
Do not apply the optimization when plan is built only for analysis
2023-03-06 10:47:32 +00:00
Igor Nikonov
b6f05a6399
Merge remote-tracking branch 'origin/master' into analyzer_trivial_count_optimization
2023-03-03 17:44:08 +00:00
Maksim Kita
d55b800fc6
Fixed code review issues
2023-03-02 13:43:03 +01:00
Igor Nikonov
e17c0b6bf1
Review fixes
2023-03-01 20:19:51 +00:00
Maksim Kita
d39be3ac9c
Fixed tests
2023-03-01 18:05:07 +01:00
Maksim Kita
14e01566a0
Fixed tests
2023-03-01 18:05:07 +01:00
Maksim Kita
51ee007e01
Fixed tests
2023-03-01 18:05:07 +01:00
Maksim Kita
07e114d8f6
Analyzer WITH FILL and INTERPOLATE fix
2023-03-01 18:03:42 +01:00
Maksim Kita
bff55d5b2a
Planner table expression data column order fix
2023-03-01 18:03:42 +01:00
Maksim Kita
40fc36bb6f
Fixed tests
2023-03-01 18:03:42 +01:00
Maksim Kita
8665077b5c
Planner add logging
2023-03-01 18:03:41 +01:00
vdimir
0a4842a99f
Fix empty result when selection from only one side of join in analyzer
2023-03-01 16:10:31 +00:00
vdimir
98004eec6b
Fix NOT_IMPLEMENTED error with CROSS JOIN and algorithm = auto
2023-03-01 13:08:24 +00:00
Dmitry Novik
54680b1a0a
Merge remote-tracking branch 'origin/master' into analyzer-group-by-use-nulls
2023-03-01 01:08:17 +00:00
Igor Nikonov
42c5634ae4
Remove debug logging
2023-02-28 11:35:36 +00:00
Igor Nikonov
e01c9ff5ec
Fixes: group by, final
2023-02-27 17:37:29 +00:00
Igor Nikonov
efc93a26c7
Merge remote-tracking branch 'origin/master' into analyzer_trivial_count_optimization
2023-02-27 10:57:30 +00:00
Igor Nikonov
cac9e96d04
Fix: do not apply if FINAL
2023-02-27 10:56:59 +00:00
Igor Nikonov
f9a324c47a
Make diagnostic traces debug level
2023-02-27 09:48:24 +00:00
Igor Nikonov
1e4d9e2421
try to fix
2023-02-26 22:51:17 +00:00
Igor Nikonov
4b5d62d5bf
Analyzer: trivial count optimization
2023-02-26 22:19:01 +00:00
vdimir
e4e19c90e7
Do not reanalyze expressions from aggregation in projection
2023-02-24 15:45:15 +00:00
Maksim Kita
cbd961de98
Fixed code review issues
2023-02-18 17:06:00 +01:00
Maksim Kita
6b2adc1ec2
Analyzer storage Merge fixes
2023-02-16 12:17:03 +01:00
Maksim Kita
80af0666ea
Analyzer support Materialized View
2023-02-16 12:17:03 +01:00