Commit Graph

1040 Commits

Author SHA1 Message Date
vdimir
3a8ca9a68b
bind only full identifier 2024-04-29 10:01:08 +00:00
vdimir
64dba76afe
Analyzer: prefer column name to alias from array join 2024-04-25 16:54:49 +00:00
Maksim Kita
0e28d20791 Fixed code review issues 2024-04-22 14:37:04 +03:00
Maksim Kita
f1660fa8bb Analyzer support QUALIFY clause 2024-04-22 12:12:02 +03:00
Dmitry Novik
69cc3c9e8e
Analyzer: Fix exception message 2024-04-18 13:02:55 +02:00
Dmitry Novik
951fa6720f Merge remote-tracking branch 'origin/master' into analyzer-fix-param-view-alias 2024-04-17 12:41:06 +02:00
Dmitry Novik
14a49f804b
Merge pull request #62558 from ClickHouse/analyzer-fix-string-enum-optimization
Try to fix if_transform_strings_to_enum performance test
2024-04-16 10:57:27 +00:00
Nikolai Kochetov
6fa57b9d7d
Merge pull request #62567 from ClickHouse/fix-scalars-in-limit-offset
Fix scalar subquery in LIMIT
2024-04-12 15:03:45 +00:00
vdimir
602e17f3e6
Merge pull request #62142 from ClibMouse/fixes_in_with_pk_ft_scan
Fix primary index not being used when a redundant equals exists
2024-04-12 09:27:19 +00:00
Joshua Hildred
8f4f3aaf14 Small code cleanup 2024-04-11 12:56:50 -07:00
Nikolai Kochetov
61d4d9a46e
Update QueryAnalysisPass.cpp 2024-04-11 19:39:44 +02:00
Nikolai Kochetov
3e16309e99 Allow constant folding throught __getScalar 2024-04-11 15:25:52 +00:00
Joshua Hildred
dd49b09902 Address review comments 2024-04-11 06:58:35 -07:00
Dmitry Novik
5985a0d10b
Try to fix if_transform_strings_to_enum perf test 2024-04-11 15:40:53 +02:00
vdimir
fe4373fa53
Merge pull request #62387 from ClickHouse/vdimir/join_on_expression_optimizer_fix
Use function isNotDistinctFrom only in join key
2024-04-11 10:34:28 +00:00
Joshua Hildred
13774d897b Add additional tests for queries with toLowCardinality and toNullable 2024-04-10 19:09:03 -07:00
Joshua Hildred
dfa7a9704a Fix an isssue with constants being wrapped in nullables 2024-04-10 12:16:06 -07:00
Nikolai Kochetov
e87b5daa2d
Merge pull request #62236 from ClickHouse/group-by-use-nulls-another-fix
Fix another logical error in group_by_use_nulls.
2024-04-10 14:37:15 +00:00
flynn
eeeb8f3473 Merge branch 'master' of github.com:ClickHouse/ClickHouse into analyzer-position-arguments 2024-04-10 11:12:34 +00:00
vdimir
ecebeefabe
Merge branch 'master' into vdimir/join_on_expression_optimizer_fix 2024-04-10 12:18:21 +02:00
Dmitry Novik
443d3175af
Merge pull request #62433 from kitaisreal/optimize-group-by-injective-functions-pass-remove-unused-constant
OptimizeGroupByInjectiveFunctionsPass remove unused constant
2024-04-10 10:10:37 +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
Joshua Hildred
626b7b1253 Fix style 2024-04-09 14:12:13 -07:00
Joshua Hildred
9d4f1d890e Add an optimization that removes redundant equality
checks on boolean functions. This fixes a bug in
which the primary index is not used for queries like
SELECT * FROM <table> WHERE <pk> in (<n>) = 1
2024-04-09 12:08:31 -07:00
flynn
6feb274467 Fix 2024-04-09 15:18:57 +00:00
Nikolai Kochetov
814de46e13 Another one case. 2024-04-09 15:08:03 +00:00
Dmitry Novik
728ed2eee3
Simplify the change 2024-04-09 16:44:38 +02:00
Nikolai Kochetov
3900b95faf Another one case with aliases. 2024-04-09 13:01:38 +00:00
Nikolai Kochetov
bba66eb05a Review fixes. 2024-04-09 12:30:07 +00:00
Robert Schulze
4035334634
Merge remote-tracking branch 'rschu1ze/master' into static-instance2 2024-04-09 11:45:27 +00:00
Maksim Kita
0543fc3263 OptimizeGroupByInjectiveFunctionsPass remove unused constant 2024-04-09 13:17:42 +03:00
Nikolai Kochetov
e5282bf39f I ♥ group_by_use_nulls. 2024-04-08 16:39:55 +00:00
flynn
f9402f3584 Fix 2024-04-08 15:15:45 +00:00
Nikolai Kochetov
3421135ff1
Merge pull request #62281 from ClickHouse/analyzer-fix-resolve-from-parent-scopes
Analyzer: Fix name resolution from parent scopes
2024-04-08 15:06:57 +02:00
vdimir
35be12c184
Merge pull request #62325 from ClickHouse/vdimir/fix_optimize_uniq_to_count
Fix optimize_uniq_to_count when only prefix of key is matched
2024-04-08 14:11:39 +02:00
vdimir
f3e1132136
Merge pull request #62273 from ClickHouse/vdimir/analyzer_limit_constant_folding
Analyzer: limit maximal size of column in constant folding
2024-04-08 12:49:48 +02:00
vdimir
b8f6217168
Use function isNotDistinctFrom only in join key 2024-04-08 09:57:33 +00:00
Robert Schulze
97281203b8
Don't access static members through instance, pt. II
clang-tidy rightfully complains
(-readability-static-accessed-through-instance) that static member
functions are accessed through non-static members
2024-04-07 11:09:35 +00:00
flynn
39df144107 Merge branch 'master' of github.com:ClickHouse/ClickHouse into analyzer-position-arguments 2024-04-07 04:22:52 +00:00
flynn
b6dd55827f Fix analyzer with positional arguments in distributed query 2024-04-06 14:23:45 +00:00
Nikolai Kochetov
d1c42668bd Another attempt. 2024-04-05 16:22:57 +00: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
Nikolai Kochetov
07893fab63 Revert "Fixing 02535_analyzer_group_by_use_nulls"
This reverts commit 3b6ea659df.
2024-04-05 12:01:39 +00:00
vdimir
ce1f514417
Fix optimize_uniq_to_count when only prefix of key is matched 2024-04-05 10:39:05 +00:00
Robert Schulze
7ce2a47ba5
Merge pull request #62265 from rschu1ze/static-instance
Don't access static members through instance
2024-04-04 14:36:03 +02:00
Dmitry Novik
33aee0f599 Analyzer: Fix name resolution from parent scopes 2024-04-04 13:00:51 +02:00
Raúl Marín
276246ee97 Introduce IAggregateFunction_fwd to reduce header dependencies 2024-04-04 12:29:54 +02:00
Dmitry Novik
7aab28bcc8 Analyzer: Fix alias to parametrized view resolution 2024-04-04 11:53:41 +02:00
vdimir
e516bef844
Annalyzer: limit maximal size of column in constant folding 2024-04-04 09:52:58 +00:00
Dmitry Novik
d86eae3dd9
Merge pull request #62186 from ClickHouse/analyzer-query-param
Analyzer: Fix query parameter resolution
2024-04-04 11:26:12 +02:00