Commit Graph

639 Commits

Author SHA1 Message Date
Yakov Olkhovskiy
a67418bcc8 add NOT_AN_AGGREGATE exception for interpolate expression columns 2024-05-19 07:14:37 +00:00
Yakov Olkhovskiy
79b3f52dc5 only interpolate expression should be used for DAG 2024-05-18 23:18:41 +00:00
Alexey Milovidov
bd9709adee
Merge pull request #64022 from ClickHouse/fix-analyzer
Fix a typo in Analyzer
2024-05-17 20:02:13 +02:00
Igor Nikonov
7e2c5c4eef Merge remote-tracking branch 'origin/master' into pr-plan-rewrite 2024-05-17 16:27:21 +00:00
Igor Nikonov
f990bb2a21 Fix: 02784_parallel_replicas_automatic_decision 2024-05-17 14:44:40 +00:00
Igor Nikonov
b8d8b76dd5 Fix 2024-05-17 13:59:39 +00:00
Igor Nikonov
79cd803914 Fix: set correct stage after regenerating plan with PR 2024-05-17 11:00:30 +00:00
Nikolai Kochetov
e0f405bc56
Merge pull request #63864 from ClickHouse/change-labmda-execution-name
Update lambda execution name
2024-05-17 10:01:48 +00:00
Alexey Milovidov
26501178e6 Fix analyzer 2024-05-17 10:23:32 +02:00
Dmitry Novik
91066aeace
Merge pull request #63983 from ClickHouse/fix-limit-by-skip-usunsed-shards
Limit by and skip_unused_shards with analyzer
2024-05-17 08:09:59 +00:00
Nikolai Kochetov
d34e06ce42 Add a comment. 2024-05-16 17:55:07 +00:00
Nikolai Kochetov
2f6a4e2a4f WithMergeableStateAfterAggregation is not a good idea. 2024-05-16 16:55:51 +00:00
Nikita Taranov
b1fc609e72
Merge pull request #63861 from nickitat/fix_mv_with_parallel_replicas
Fix incorrect result when reading from MV with parallel replicas and new analyzer
2024-05-16 15:51:39 +00:00
Raúl Marín
8051e1eca3 Needed a comment 2024-05-16 14:05:04 +02:00
Igor Nikonov
48ae7be85c Merge remote-tracking branch 'origin/master' into pr-plan-rewrite 2024-05-16 10:19:06 +00:00
Raúl Marín
ad5403a034
Merge pull request #63429 from Algunenano/micro_analyzer
Micro-optimizations for the new analyzer
2024-05-16 09:01:56 +00:00
Igor Nikonov
5a09efc6da Fix tests with non-replicated merge tree 2024-05-15 19:48:51 +00:00
Nikolai Kochetov
61acdc2bcb Fix test. 2024-05-15 17:38:33 +00:00
Nikolai Kochetov
7f05ccaddf Update lambda execution name. Fix query tree hash calculation in case of empty database. 2024-05-15 16:20:42 +00:00
Nikita Taranov
30bee3324c impl 2024-05-15 15:15:14 +01:00
Igor Nikonov
6faa4dd20c Fix 2024-05-15 11:19:03 +00:00
Igor Nikonov
de5ba95639 Rewrite plan for parallel replicas in planner 2024-05-14 19:22:49 +00:00
vdimir
53383396a3
Merge pull request #63432 from p1rattttt/external_cross_join
Added possibility to do cross join in temporary file if size exceeds limits
2024-05-14 17:15:47 +00:00
Nikolai Kochetov
5f91cb6dd7
Merge pull request #63702 from ClickHouse/add-fuzzed-analyzer_join_with_constants
Fix fuzzed analyzer_join_with_constant query
2024-05-14 11:26:15 +00:00
vdimir
d3f03e9c94
More details about allow_experimental_join_condition 2024-05-14 08:57:56 +00:00
Raúl Marín
61fb090850 Merge remote-tracking branch 'blessed/master' into micro_analyzer 2024-05-13 20:46:48 +02:00
Nikolai Kochetov
bd8cad1d8e Fix fuzzed analyzer_join_with_constant query 2024-05-13 15:10:51 +00:00
p1rattttt
0a7a69a00d
Merge branch 'ClickHouse:master' into external_cross_join 2024-05-09 18:51:44 +03:00
Alexey Milovidov
8c4a5d3663
Merge pull request #61823 from ClickHouse/total-rows-in-system-zeros-generate-random
Set total_rows_approx for trivial queries with LIMIT from system.zeros and generateRandom
2024-05-08 21:32:35 +00:00
p1rattttt
0fb8fea19b
Merge branch 'ClickHouse:master' into external_cross_join 2024-05-09 00:08:01 +03:00
Nikolai Kochetov
2e93bf92d7
Merge pull request #63415 from ClickHouse/revert-63297-revert-63047-do-not-remove-group-by-constants-for-secondary-query
Revert "Revert "Do not remove server constants from GROUP BY key for secondary query.""
2024-05-08 16:01:05 +00:00
vdimir
b57ad0f0eb
Analyzer fix 03024_total_rows_approx_is_set_for_system_zeros_and_generate_random 2024-05-08 09:58:01 +02:00
Nikolai Kochetov
a2e9b6f4c6 Another attempt. 2024-05-07 17:42:43 +00:00
Maksim Kita
cad9c97725 Analyzer setting max_streams_to_max_threads_ratio overflow fix 2024-05-07 17:21:25 +03:00
Alexey Milovidov
7700b2c1a3
Merge pull request #63273 from ClickHouse/vdimir/cross_join_algorithm_setting
CROSS join ignore join_algorithm setting
2024-05-07 01:40:38 +00:00
Raúl Marín
36e23d6790 Remove expensive logging in query stages 2024-05-06 20:58:44 +02:00
Nikolai Kochetov
9d55bc82d6
Revert "Revert "Do not remove server constants from GROUP BY key for secondary query."" 2024-05-06 16:19:57 +02:00
Maxim Alexeev
ec15298b82 First working prototype 2024-05-06 01:34:03 +03:00
Igor Nikonov
376c54c7f9 Merge remote-tracking branch 'origin/master' into pr-receive-timeout-on-handshake 2024-05-02 19:15:14 +00:00
Alexey Milovidov
2ca0251de4
Revert "Do not remove server constants from GROUP BY key for secondary query." 2024-05-02 21:09:53 +02:00
vdimir
6d31638a69
CROSS join ignore join_algorithm setting 2024-05-02 12:16:49 +00:00
vdimir
7617155901
Merge branch 'master' into vdimir/ineq_join_v2 2024-05-01 11:53:43 +00:00
vdimir
23525ea3d5
Merge branch 'master' into ineq_join_v2 2024-04-30 08:15:51 +00:00
Alexey Milovidov
fd3fe73b5b
Merge pull request #63047 from ClickHouse/do-not-remove-group-by-constants-for-secondary-query
Do not remove server constants from GROUP BY key for secondary query.
2024-04-30 04:42:06 +02:00
Igor Nikonov
20884efdcc Merge remote-tracking branch 'origin/master' into pr-receive-timeout-on-handshake 2024-04-29 13:36:13 +00:00
Alexey Milovidov
c570316c87
Merge branch 'master' into analyzer-support-recursive-cte 2024-04-29 02:26:59 +02:00
Maksim Kita
56037ffaca Fixed build 2024-04-28 12:52:17 +03:00
Maksim Kita
bd1189de70 Fixed tests 2024-04-28 12:52:17 +03:00
Maksim Kita
0111f30ed2 Fixed clang-tidy 2024-04-28 12:52:17 +03:00
Maksim Kita
06d2c18f26 Analyzer support recursive CTEs 2024-04-28 12:52:17 +03:00
Maksim Kita
bc6db79737 QueryPlan convert OUTER JOIN to INNER JOIN optimization 2024-04-28 12:52:04 +03:00
lgbo-ustc
6fa6c0261b apply 27a2b19 2024-04-28 09:27:16 +08:00
lgbo-ustc
7ee720ffb0 update settting 2024-04-28 09:27:15 +08:00
lgbo-ustc
6c30774ce5 disable when join_use_nulls=1
update setting

update
2024-04-28 09:26:11 +08:00
lgbo-ustc
c51e9163a5 reduce hash join code size
add check

debug

fixed

fixed

fixed

fixed

fixed

debug

debug

update

rename full_expression

rollback ExecutionContext

experiment: support join_use_nulls
2024-04-28 09:26:11 +08:00
lgbo-ustc
cd9c87811f fixed bugs for all right join
add test cases

fixed typos

add document

fixed stype error and rename some variables

fixed test error

add test cases

try to recude hash join code size

debug

fixed

fixed coredump

fixed. condition result type is not bool

enable when allow_experimental_analyzer=0

fixed tests

fixed

update tests

update tests

roll backup when use the old analyzer

fixed typos

fixed

test

large obj check

test

test
2024-04-28 09:26:11 +08:00
lgbo-ustc
4a2ad7beb5 fixed bugs 2024-04-28 09:26:11 +08:00
lgbo-ustc
2692784585 support inequal join for left/right/inner all 2024-04-28 09:26:11 +08:00
Nikolai Kochetov
48213c2c3e Do not remove server constants from GROUP BY key for secondary query. 2024-04-26 16:19:51 +00:00
Igor Nikonov
6db303cea3 Merge remote-tracking branch 'origin/master' into pr-receive-timeout-on-handshake 2024-04-24 18:56:49 +00:00
Igor Nikonov
abf5be05b8 Set table for parallel replicas with analyzer 2024-04-24 18:56:03 +00:00
Maksim Kita
7c13ea020c PlannerJoins remove unused comments 2024-04-23 14:17:30 +03:00
Maksim Kita
f1660fa8bb Analyzer support QUALIFY clause 2024-04-22 12:12:02 +03:00
Igor Nikonov
043c62931d Merge remote-tracking branch 'origin/master' into pr-receive-timeout-on-handshake 2024-04-17 16:48:40 +00:00
Igor Nikonov
1e43e3515e Check table status for parallel replicas 2024-04-17 16:47:52 +00:00
vdimir
b981d2dba4
Merge pull request #62287 from ClickHouse/vdimir/internal_functions_fix
Fix __actionName, add tests for internal functions direct call
2024-04-17 13:16:18 +00:00
Nikolai Kochetov
c83c336dbb
Merge pull request #62462 from ClickHouse/fix-analyzer-lambda-level
Fix capture of nested lambda.
2024-04-11 11:49:10 +00:00
Nikolai Kochetov
e8f3279f37 Review fix 2024-04-10 15:30:20 +00:00
Nikolai Kochetov
5c6a3f1b76 Review fixes. 2024-04-10 14:21:10 +00:00
Nikolai Kochetov
25d64d490a
Merge pull request #62409 from ClickHouse/fix-global-in-table-with-analyzer
Fix GLOBAL IN table queries with analyzer.
2024-04-10 07:04:21 +00:00
Nikolai Kochetov
8a172003ce Fix capture of nested lambda. 2024-04-09 18:52:03 +00:00
Nikolai Kochetov
de2a5f018f
Update CollectSets.cpp 2024-04-09 20:40:40 +02:00
Nikolai Kochetov
bba66eb05a Review fixes. 2024-04-09 12:30:07 +00:00
vdimir
4ce35b1fe6
Fix __actionName, add tests for internal functions direct call 2024-04-09 10:54:53 +00:00
Kruglov Pavel
057efdb447
Merge pull request #62398 from Avogar/fix-analyzer-merge-push-down
Fix filter pushdown from additional_table_filters in Merge engine in analyzer
2024-04-09 10:54:06 +00:00
Nikolai Kochetov
b97e16f2b4
Merge bcccbe2b19 into c369d2171d 2024-04-08 16:54:43 +02:00
Nikolai Kochetov
bcccbe2b19 Fixing typo 2024-04-08 14:54:36 +00:00
Nikolai Kochetov
82b2adef97 Fix GLOBAL IN table queries with analyzer. 2024-04-08 14:50:13 +00:00
avogar
e4b0ca5d83 Fix filter pushdown from additional_table_filters in Merge engine in analyzer 2024-04-08 12:59:20 +00:00
vdimir
eb7a74247d
Merge pull request #62336 from ClickHouse/vdimir/prewhere_lambda_function
Analyzer: Fix PREWHERE with lambda functions
2024-04-08 13:52:50 +02:00
Raúl Marín
7df11b1852
Merge pull request #62264 from Algunenano/nested_includes_Ñ
Remove more nested includes
2024-04-05 17:00:28 +02:00
vdimir
e53ba4fa9d
Analyzer: Fix PREWHERE with lambda functions 2024-04-05 13:34:34 +00:00
Robert Schulze
de2a0be025
Don't access static members through instance
- clang-tidy rightfully complains (-readability-static-accessed-through-instance)
- not going to enable the warning for now to avoid breaking the build
2024-04-03 18:50:33 +00:00
Raúl Marín
40b901a2e3 More crap 2024-04-03 19:49:56 +02:00
Kruglov Pavel
3116650fa9
Merge pull request #61201 from ClickHouse/revert-61200-revert-60430-max-parallel-replicas-validate
Don't allow to set max_parallel_replicas to 0 as it doesn't make sense
2024-04-03 17:05:59 +02:00
Raúl Marín
48ab0721a8 Unify lightweight mutation control 2024-04-02 11:52:14 +02:00
Nikolai Kochetov
abe78e1a7b Merge branch 'master' into fix-virtual-columns-storage-merge-analyzer 2024-03-25 10:43:23 +00:00
Alexey Milovidov
65f866d2df
Merge branch 'master' into fix-analyzer-shard-offset 2024-03-25 03:04:39 +03:00
Yakov Olkhovskiy
24735354d9 fix add offset step 2024-03-24 23:38:13 +00:00
robot-ch-test-poll
5e51880750
Merge pull request #61789 from ClickHouse/vdimir/analyzer_join_distributed_assert
Analyzer: Fix assert in JOIN with Distributed table
2024-03-23 17:14:18 +01:00
vdimir
f54e11176d
u 2024-03-22 18:12:31 +00:00
vdimir
edc9e8fbc8
Analyzer: Fix assert in JOIN with Distributed table 2024-03-22 17:30:50 +00:00
Nikolai Kochetov
5207526910 Fix more tests with wirtual columns in StorageMerge. 2024-03-22 16:55:01 +00:00
Dmitry Novik
22b26a3a49
Merge pull request #61717 from ClickHouse/analyzer-fix-group-by-usel-nulls
Analyzer: fix group_by_use_nulls
2024-03-22 13:17:02 +01:00
Dmitry Novik
110b08f666
Fixup #ci_set_analyzer 2024-03-21 18:38:57 +01:00
Dmitry Novik
7c173e4dbc Analyzer: fix group_by_use_nulls #ci_set_analyzer 2024-03-21 16:03:50 +01:00
Raúl Marín
c98634ad8c Merge remote-tracking branch 'blessed/master' into nested_includes 2024-03-20 14:08:10 +01:00
Kruglov Pavel
e7e11d738b
Merge branch 'master' into revert-61200-revert-60430-max-parallel-replicas-validate 2024-03-20 13:59:38 +01:00
Raúl Marín
de855ca917 Reduce header dependencies 2024-03-19 17:04:29 +01:00
Dmitry Novik
a8885e361e
Merge branch 'master' into vdimir/analyzer/join_using_parent_scope 2024-03-19 15:51:53 +01:00