Commit Graph

1040 Commits

Author SHA1 Message Date
vdimir
de33af8e1a
Merge pull request #60875 from ZhiguoZh/20240305-analyzer-refactor
Refactor OptimizeDateOrDateTimeConverterWithPreimageVisitor
2024-03-07 15:58:31 +01:00
Dmitry Novik
23b33e5e32 Merge remote-tracking branch 'origin/master' into analyzer-refactor-constant-name 2024-03-07 14:18:44 +01:00
vdimir
21609a91e6
Merge pull request #60655 from ClickHouse/vdimir/analyzer/join_use_nulls_prewhere
Analyzer: Fix bug with join_use_nulls and PREWHERE
2024-03-07 13:28:00 +01:00
Dmitry Novik
71dc34074b
Merge pull request #60386 from ClickHouse/imp-analyzer-mask
Analyzer - improve hiding secret arguments.
2024-03-07 12:01:48 +01:00
Dmitry Novik
d92538ced2
Merge branch 'master' into analyzer-refactor-constant-name 2024-03-06 17:55:52 +01:00
vdimir
4dede601ef
fix 2024-03-06 12:10:26 +00:00
vdimir
d9f7ac8815
Analyzer: Fix bug with join_use_nulls and PREWHERE 2024-03-06 12:10:25 +00:00
Dmitry Novik
55c028322d
Fix typo 2024-03-05 16:59:22 +01:00
Yakov Olkhovskiy
34f01c4a02 Merge branch 'master' into imp-analyzer-mask 2024-03-05 15:30:34 +00:00
Zhiguo Zhou
c4009a16f9 Refactor OptimizeDateOrDateTimeConverterWithPreimageVisitor
The generateOptimizedDateFilter function is refactored to enhance
the code readability. And this commit also fixes the duplicate
creations of ColumnNode.
2024-03-05 23:18:54 +08:00
Dmitry Novik
5524f5901f Cleanup code 2024-03-05 16:18:03 +01:00
Dmitry Novik
01829450fb Merge remote-tracking branch 'origin/master' into analyzer-refactor-constant-name 2024-03-04 14:12:15 +01:00
Yakov Olkhovskiy
aa42d5a88d separate FunctionSecretArgumentsFinder for AST and TreeNode to avoid binary bloat due to linkage dependencies 2024-03-01 20:58:22 +00:00
vdimir
47aa33408b
Resubmit "Analyzer: compute ALIAS columns right after reading"
This reverts commit 8141e1c3d1, reversing
changes made to fb099bbd62.
2024-03-01 14:53:02 +00:00
Alexander Tokmakov
2dedfd6cf9
Revert "Analyzer: compute ALIAS columns right after reading" 2024-02-29 14:22:07 +01:00
Dmitry Novik
814691bf78
Merge pull request #52230 from JackyWoo/optimize_aggregators_of_group_by_keys
New analyzer: add eliminate min/max/any/anyLast aggregators  pass
2024-02-29 11:46:26 +01:00
vdimir
5dd81f38fb
Merge pull request #59595 from ClickHouse/vdimir/analyzer/comute_alias_columns
Analyzer: compute ALIAS columns right after reading
2024-02-29 10:28:31 +01:00
Kruglov Pavel
a7eabbbe3a
Merge branch 'master' into variant-improvements 2024-02-28 17:38:54 +01:00
Dmitry Novik
d129bfd277 Merge remote-tracking branch 'origin/master' into optimize_aggregators_of_group_by_keys 2024-02-28 15:48:49 +00:00
Yakov Olkhovskiy
ad7715b2fa fix style 2024-02-27 23:12:29 +00:00
Yakov Olkhovskiy
d4b71748fc fix style 2024-02-27 22:38:41 +00:00
Yakov Olkhovskiy
802db19e3b dedicated FunctionSecretArgumentsFinder for TreeNode, refactoring of FunctionSecretArgumentsFinder 2024-02-27 20:42:02 +00:00
Dmitry Novik
33ae650e6a Merge remote-tracking branch 'origin/master' into analyzer-refactor-constant-name 2024-02-27 16:35:28 +01:00
Dmitry Novik
a2cabc9fe1 Fixup 2024-02-27 16:16:15 +01:00
Raúl Marín
f0354ee07f Fix optimization with nullable arguments 2024-02-27 16:15:21 +01:00
Raúl Marín
e81c2ede2a Add setting to control preimage optimization 2024-02-27 15:58:42 +01:00
Yakov Olkhovskiy
5ed09dc76b refactoring, add test 2024-02-27 14:58:17 +00:00
Dmitry Novik
6ad10629ff
Fix crash 2024-02-27 15:37:53 +01:00
Raúl Marín
f71f833c61 Fix terrible formatting 2024-02-27 13:38:50 +01:00
Yakov Olkhovskiy
4b858f167b consistent mask ids based on node hash, respect format_display_secrets_in_show_and_select setting 2024-02-27 05:52:07 +00:00
vdimir
5a9026f39b
Analyzer: compute ALIAS columns right after reading 2024-02-26 16:15:05 +00:00
Nikolai Kochetov
2b9889fb84
Merge pull request #60082 from amosbird/non-trivial-count-optimization
Refactor prewhere and primary key optimization
2024-02-26 16:17:24 +01:00
Dmitry Novik
42b91201a5 Merge remote-tracking branch 'origin/master' into analyzer-refactor-constant-name 2024-02-26 15:11:57 +00:00
Dmitry Novik
32c63cc57a Fix style 2024-02-26 15:02:06 +00:00
Dmitry Novik
96dff28a96 Update comment 2024-02-26 14:17:05 +00:00
Dmitry Novik
848d4009e6 Rewrite implementation 2024-02-26 14:14:30 +00:00
Robert Schulze
5c967c44de
Merge pull request #60248 from ClickHouse/revert-59450-order-by-all-ambiguities
Revert "Replace `ORDER BY ALL` by `ORDER BY *`"
2024-02-26 10:23:41 +01:00
Amos Bird
207d36d7c1
Make it work 2024-02-26 02:31:58 +08:00
Amos Bird
6137914604
Fix most tests 2024-02-26 02:31:58 +08:00
Amos Bird
7435568a0d
Fix tests 2024-02-26 02:31:57 +08:00
Yakov Olkhovskiy
ab6ab8bfac replace only secret arguments with [HIDDEN], also hide it in TreeNode dump 2024-02-25 17:11:22 +00:00
avogar
39ad054e94 Merge branch 'master' of github.com:ClickHouse/ClickHouse into variant-improvements 2024-02-23 18:59:34 +00:00
Dmitry Novik
600d020379 Merge remote-tracking branch 'origin/master' into optimize_aggregators_of_group_by_keys 2024-02-23 16:07:28 +00:00
Nikolai Kochetov
83841c23d3
Merge pull request #60230 from ClickHouse/fix-analyzer-secrets
Fix analyzer - hide arguments for secret functions
2024-02-23 15:26:49 +01:00
Dmitry Novik
601c3c33bc Set correct execution name for ConstantNode 2024-02-22 17:44:41 +01:00
Robert Schulze
7930c2a993
Better! 2024-02-21 20:31:49 +00:00
Robert Schulze
52afa46e23
Revert "Replace ORDER BY ALL by ORDER BY *" 2024-02-21 19:05:20 +01:00
Nikolai Kochetov
0e9d7f3540
Merge pull request #60037 from ClickHouse/fix-01656_test_query_log_factories_info-for-analyzer
Fix 01656_test_query_log_factories_info with analyzer.
2024-02-21 17:37:15 +01:00
Yakov Olkhovskiy
b55aef9091 hash argument projection names for secret functions 2024-02-21 14:53:01 +00:00
avogar
bd2390996e Merge branch 'master' of github.com:ClickHouse/ClickHouse into variant-improvements 2024-02-21 13:16:07 +01:00
avogar
16e8e5af8d Clean up 2024-02-20 19:00:15 +00:00
avogar
122dc6769d Fixes and improvements for Variant type 2024-02-20 18:58:06 +00:00
Nikolai Kochetov
37b85360e1
Update CNF.cpp 2024-02-20 13:15:34 +01:00
Robert Schulze
6f6e74ad8b
Merge remote-tracking branch 'rschu1ze/master' into order-by-all-ambiguities 2024-02-19 15:19:13 +00:00
Robert Schulze
8f5a4d92a1
Fix style 2024-02-19 15:19:04 +00:00
Dmitry Novik
11970ddf82
Merge branch 'master' into analyzer-fix-test_select_table_name_from_merge_over_distributed 2024-02-19 14:07:58 +01:00
Dmitry Novik
2122454576 Temporary progress 2024-02-19 12:41:29 +00:00
Alexey Milovidov
232fe0dd1b Fix inconsistent formatting of SELECT ... FROM (EXPLAIN ...) 2024-02-18 05:38:34 +01:00
Dmitry Novik
a3c34a7cc2
Merge pull request #54211 from ClickHouse/Support_parameterized_view_with_analyzer
Refactor parameterized view & add support for new analyzer
2024-02-16 16:13:49 +01:00
Dmitry Novik
2b02bcd67b
Merge pull request #59926 from azat/analyzer/NormalizeCountVariantsVisitor-fix
Do not rewrite sum() to count() if return value differs in analyzer
2024-02-16 09:16:46 +01:00
Nikolai Kochetov
ef7e8e0c5d Fixing style. 2024-02-15 17:35:44 +00:00
Nikolai Kochetov
365530c463 Fix 01656_test_query_log_factories_info with analyzer. 2024-02-15 17:12:22 +00:00
Dmitry Novik
8397b856ae Cleanup 2024-02-15 17:28:54 +01:00
Dmitry Novik
dfaea604c3 Remove redundant includes 2024-02-15 17:27:26 +01:00
Robert Schulze
058461e786
Merge remote-tracking branch 'rschu1ze/master' into order-by-all-ambiguities 2024-02-15 16:21:16 +00:00
Robert Schulze
1edf3b2254
Replace ORDER BY ALL by ORDER BY * to get rid of ambiguities 2024-02-15 16:19:56 +00:00
Dmitry Novik
a11b9553ca Fix implementation in new analyzer 2024-02-15 17:16:27 +01:00
Azat Khuzhin
504a2dd9d9 Do not rewrite sum() to count() if return value differs in analyzer
v2: fix for LowCardinality
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-02-15 12:41:05 +01:00
Alexey Milovidov
b73c9ce9f5
Merge pull request #59981 from ClickHouse/analyzer-fix-test_storage_rabbitmq
Analyzer: Fix test_storage_rabbitmq
2024-02-15 02:58:09 +01:00
Dmitry Novik
e95726f57c Analyzer: Fix test_shard_level_const_function 2024-02-14 13:21:23 +00:00
Dmitry Novik
12963ce53e Analyzer: Fix test_storage_rabbitmq 2024-02-14 12:20:37 +00:00
Kruglov Pavel
48a3b8e675
Merge pull request #58292 from ucasfl/negtive-position
Resubmit: Support negtive position arguments
2024-02-13 18:35:28 +01:00
Smita Kulkarni
8f71d7817c Fix clang build 2024-02-13 14:57:45 +01:00
Smita Kulkarni
d7056d642d Addressed review comments 2024-02-13 13:53:40 +01:00
Smita Kulkarni
3526d7982c Merge branch 'master' into Support_parameterized_view_with_analyzer 2024-02-13 13:08:35 +01:00
Azat Khuzhin
7c01705231 Run ValidationChecker for sanitizers build as well
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-02-13 10:50:45 +01:00
Dmitry Novik
1dfecd5e6c Merge remote-tracking branch 'origin' into analyzer-fix-const-fold 2024-02-09 11:57:23 +01:00
Antonio Andelic
160f1b7fd8 Fix logical optimizer with LowCardinality 2024-02-08 15:01:56 +01:00
Dmitry Novik
b8f74b5b05
Merge pull request #50894 from ClickHouse/storage-merge-aliases-analyzer
Analyzer: support aliases and distributed JOINs in StorageMerge
2024-02-08 11:22:00 +01:00
Dmitry Novik
d558728281
Merge branch 'master' into storage-merge-aliases-analyzer 2024-02-06 20:24:20 +01:00
Raúl Marín
e10e105ec1 Merge remote-tracking branch 'blessed/master' into more_sanity_checks 2024-02-06 17:42:36 +01:00
Raúl Marín
5d042dc815 Check pointer 2024-02-06 17:42:24 +01:00
vdimir
3642bbc05c
Merge pull request #59483 from ClickHouse/vdimir/analyzer/00917_multiple_joins_denny_crane
Analyzer: Fix denny_crane
2024-02-06 10:17:27 +01:00
Raúl Marín
40885d7f16 Add extra sanity check 2024-02-05 21:51:26 +01:00
vdimir
d3123438c7
Merge pull request #59382 from ClickHouse/vdimir/analyzer/fix_array_join_subcolumn
Fix ARRAY JOIN with subcolumns
2024-02-05 17:27:59 +01:00
vdimir
9b5ea7bb8a
Analyzer: Fix 00917_multiple_joins_denny_crane 2024-02-05 16:25:13 +00:00
Robert Schulze
dd484fc312
Simplify what happens in SELECT all, ... [...] ORDER BY ALL
Previously setting `enable_order_by_all` distinguished for ORDER BY ALL
whether we should sort by column 'all' (if given in the SELECT clause)
or by all columns. The actual behavior was not always intuitive.

Now, we throw unconditionally an exception which also simplifies the
handling a bit. Only an edge case is affected and if users really want
to run ORDER BY ALL on a column names 'all', they can alias it.
2024-02-02 09:53:35 +00:00
Robert Schulze
82a4fa0dfc
Smaller fixups 2024-02-01 11:58:43 +00:00
zhongyuankai
d076b13ac8 order by all doesn't work for select * 2024-02-01 18:51:54 +08:00
vdimir
a043227685
Fix ARRAY JOIN with subcolumns in analyzer 2024-02-01 10:36:31 +00:00
Dmitry Novik
0d21004218 WIP on StorageMerge 2024-01-31 13:50:15 +00:00
Dmitry Novik
722f3db738 Merge remote-tracking branch 'origin/master' into storage-merge-aliases-analyzer 2024-01-30 19:50:01 +00:00
Dmitry Novik
ff71973536 Merge remote-tracking branch 'origin/master' into analyzer-fix-const-fold 2024-01-30 18:43:47 +00:00
Dmitry Novik
5a024dfc09
Merge pull request #59117 from ClickHouse/fix-analyzer-order-by-all
Followup 57875
2024-01-30 15:54:18 +01:00
Dmitry Novik
c339a74ac3
Merge pull request #59177 from ClickHouse/fix-analyzer-cte-resolve
Analyzer: Fix CTE name clash resolution
2024-01-30 08:13:38 +01:00
flynn
4f12ca249d Fix typo 2024-01-30 07:01:07 +00:00
flynn
9858c41849 Merge branch 'master' of github.com:ClickHouse/ClickHouse into negtive-position 2024-01-30 04:03:35 +00:00
flynn
0ded580011 Fix 2024-01-30 04:03:27 +00:00
avogar
5833641fa5 Merge branch 'master' of github.com:ClickHouse/ClickHouse into variant-data-type 2024-01-26 16:54:02 +00:00
Dmitry Novik
6c5057c4f2
Merge pull request #58919 from ClickHouse/analyzer-inj-func-elemination
Analyzer: Support GROUP BY injective function elimination
2024-01-26 16:45:09 +01:00
Dmitry Novik
a9d2e13697 Handle CTEs more careafully 2024-01-26 15:20:09 +00:00
Dmitry Novik
e38face46b Fix style 2024-01-26 15:20:09 +00:00
Dmitry Novik
778f4371c2 Cleanup the code 2024-01-26 15:20:09 +00:00
Dmitry Novik
e3c07d4562 Analyzer: Fix CTE name clash resolution 2024-01-26 15:20:09 +00:00
Dmitry Novik
394e37894f Small improvement in QueryAnalysisPass 2024-01-26 15:03:35 +00:00
Nikolai Kochetov
75edbdd39c
Merge pull request #59147 from ClickHouse/vdimir/fix_agg_nothing_2
Fix AggregateFunctionNothing result type issues introducing it with different names
2024-01-26 14:33:38 +01:00
Dmitry Novik
a2d7bcbd5f
Merge pull request #58958 from ClickHouse/analyzer-insert-block
Analyzer: fix storage replacement with insertion block
2024-01-25 09:25:50 +01:00
Dmitry Novik
7826706ff9
Small fix 2024-01-24 16:09:26 +01:00
vdimir
bcfe691954
Use different names for nothing function with different result types 2024-01-24 09:55:09 +00:00
Dmitry Novik
8e0aea301e Analyzer: Add cast for ConstantNode from constant folding 2024-01-23 14:29:26 +00:00
Dmitry Novik
bef0fcb482
Fix is_order_by_all flag in QueryNode 2024-01-23 14:56:24 +01:00
Dmitry Novik
e9ea1307e0 Make optimization more general 2024-01-23 13:03:09 +00:00
Dmitry Novik
7a95eb8bd1
Review fixes 2024-01-23 11:59:41 +01:00
Dmitry Novik
6962859e43
Merge pull request #59068 from ClickHouse/check-optimization-setting
Followup to 57853
2024-01-23 11:24:31 +01:00
Dmitry Novik
f702afb72d Fix includes 2024-01-22 15:26:25 +00:00
Dmitry Novik
1abe1307db Make test to check the feature 2024-01-22 15:15:30 +00:00
Raúl Marín
1e875431db
Style 2024-01-22 14:59:53 +01:00
vdimir
0791c75315
Merge pull request #58654 from yariks5s/paste_join_aliases_requirement
Avoid alias duplicates in PASTE JOIN and fix aliases requirement
2024-01-22 14:48:13 +01:00
Dmitry Novik
3d0e915088
Followup to 57853 2024-01-22 14:44:07 +01:00
Raúl Marín
d9ab300300
Merge pull request #57853 from jiebinn/rewriteSumFunction
Rewrite the AST/Analyzer of sum(column +/- literal) function
2024-01-22 10:41:30 +01:00
Kruglov Pavel
20379d34d5
Merge branch 'master' into variant-data-type 2024-01-19 23:17:42 +01:00
Yarik Briukhovetskyi
e28fd94e1c
fix style 2024-01-19 20:19:34 +01:00
yariks5s
76b43a6aba small changes(revert) 2024-01-19 18:13:05 +00:00
Jiebin Sun
e9662d4d62 polish the code and adjust some code style 2024-01-20 01:43:06 +08:00
Dmitry Novik
d8b5623c67 Analyzer: Support GROUP BY injective function elimination 2024-01-19 14:00:12 +00:00
vdimir
b8340afddf
Merge pull request #58943 from ClickHouse/vdimir/analyzer_column_not_found
Analyzer: fix join column not found with compound identifiers
2024-01-19 10:40:03 +01:00
Jiebin Sun
0fb7d2290c
Update src/Analyzer/Passes/RewriteSumFunctionWithSumAndCountPass.cpp
Co-authored-by: Raúl Marín <git@rmr.ninja>
2024-01-19 17:01:11 +08:00
Yakov Olkhovskiy
43aaccdaa1 clang tidy 2024-01-18 19:17:05 +00:00
Yakov Olkhovskiy
b914938c4c clenup 2024-01-18 18:10:54 +00:00
Yakov Olkhovskiy
bb1058e2b2 fix storage replacement with insertion block for analyzer 2024-01-18 17:59:23 +00:00
Kruglov Pavel
5444cde408
Merge branch 'master' into variant-data-type 2024-01-18 18:31:27 +01:00
Anton Popov
d2142041cd Merge remote-tracking branch 'upstream/master' into HEAD 2024-01-18 16:03:54 +00:00
yariks5s
6ad6d6a121 fix due to review 2024-01-18 15:41:25 +00:00
vdimir
f2e73c13a9
Analyzer: fix join column not found with compound identifiers 2024-01-18 12:30:28 +00:00
Jiebin Sun
206e1c87e0 revise the comments 2024-01-18 19:07:02 +08:00
Anton Popov
94bb9a171d fix FunctionToSubcolumnsPass 2024-01-17 21:36:23 +00:00
Smita Kulkarni
d3b4dea805 Fix clang tidy build 2024-01-17 20:02:17 +01:00
Dmitry Novik
3a1c3638e8 Style fix 2024-01-17 15:04:50 +00:00
Yarik Briukhovetskyi
38914ef70c
Update QueryAnalysisPass.cpp 2024-01-17 15:48:26 +01:00
Yarik Briukhovetskyi
f05733e7b8
Update QueryAnalysisPass.cpp 2024-01-17 15:28:02 +01:00
Jiebin Sun
784cab638a rename some function_name and add more tests 2024-01-17 22:10:08 +08:00
yariks5s
66f71008b3 revert and fix 2024-01-16 15:36:43 +00:00
Smita Kulkarni
76ba60aa24 Merge branch 'master' into Support_parameterized_view_with_analyzer 2024-01-16 11:26:41 +01:00
vdimir
d2dccf9a22
Merge pull request #49703 from ClickHouse/vdimir/analyzer_join_resolve_nested
Analyzer: Fix resolving subcolumns in JOIN
2024-01-16 11:24:02 +01:00
Smita Kulkarni
605c76e66e Fix test fails 2024-01-16 11:22:27 +01:00
Alexey Milovidov
8973e7d873
Merge pull request #58833 from ClickHouse/fix-analyzer-remote-aggregation
Analyzer: Resolve GROUPING function on shards
2024-01-15 23:33:14 +01:00
yariks5s
b4f078e5cc fix bug with several joins 2024-01-15 16:49:42 +00:00
Dmitry Novik
de115c4da7 Fix for passes that use column source 2024-01-15 16:25:39 +00:00
Dmitry Novik
0f7daeffc8 Analyzer: Resolve GROUPING function on shards 2024-01-15 16:02:37 +00:00
vdimir
e9ab8e8a7d
update comment to check_nested_column_not_in_using 2024-01-15 10:58:37 +00:00
Yakov Olkhovskiy
62660e6e84
Merge pull request #58703 from ClickHouse/imp-error-message
Add identifier name to the error INVALID_IDENTIFIER
2024-01-14 07:46:33 -05:00
Yakov Olkhovskiy
ef880657ce
replace BAD_ARGUMENTS error with INVALID_IDENTIFIER 2024-01-12 11:34:35 -05:00
Dmitry Novik
a3dcd350dd
Merge pull request #58723 from ClickHouse/fix-analyzer-count-distinct-pass
Analyzer: Fix LOGICAL_ERROR in CountDistinctPass
2024-01-12 09:06:39 +01:00
Dmitry Novik
f41c6b0e6b Analyzer: Fix LOGICAL_ERROR in CountDistinctPass 2024-01-11 19:11:42 +00:00
yariks5s
567e5d378e fixes 2024-01-11 15:43:17 +00:00
yariks5s
92c6eba922 avoiding only for paste join now 2024-01-10 18:18:50 +00:00
Robert Schulze
52d75ab68f
Merge pull request #58458 from rschu1ze/replace-std_regexp-by-re2
Replace `std::regex` by re2
2024-01-10 17:46:54 +01:00
yariks5s
f656a6d799 errors fix 2024-01-10 15:16:53 +00:00
Yarik Briukhovetskyi
d1f00b5b22
Merge branch 'master' into paste_join_aliases_requirement 2024-01-10 15:22:03 +01:00
yariks5s
7a1c1a3b62 analyzer implementation 2024-01-10 13:38:46 +00:00
vdimir
2c68bdecd8
add comment to check_nested_column_not_in_using 2024-01-10 13:35:33 +00:00
Dmitry Novik
b2bf1372aa
Merge pull request #58457 from ClickHouse/analyzer-fuzz-low-condinality
Analyzer: Fix LOGICAL_ERROR with LowCardinality
2024-01-10 11:06:42 +01:00
vdimir
25268fb863
Analyzer: Fix resolving subcolumns in JOIN 2024-01-09 19:05:44 +00:00
Dmitry Novik
629d4b921e Fix style 2024-01-09 15:38:04 +00:00
Dmitry Novik
11280cbde1 Merge remote-tracking branch 'origin/master' into storage-merge-aliases-analyzer 2024-01-09 15:10:59 +00:00
Jiebin Sun
22aadc7f5d add the default action for get() 2024-01-09 00:39:39 +08:00
Kruglov Pavel
b947609b8e
Merge branch 'master' into variant-data-type 2024-01-08 15:04:51 +01:00
flynn
e2588850f6 Fix conflict 2024-01-08 11:36:19 +00:00
Jiebin Sun
7bbeaf461f
Merge pull request #6 from jiebinn/master
Update to the latest upstream
2024-01-08 15:49:50 +08:00
Jiebin Sun
dfc8e79511 Add the Analyzer implementation for the RewriteSumFunctionWithSumAndCount
Signed-off-by: Jiebin Sun <jiebin.sun@intel.com>
2024-01-08 23:58:13 +08:00
Robert Schulze
f553b55e3a
Merge remote-tracking branch 'rschu1ze/master' into regex-std-re2 2024-01-07 22:31:35 +00:00
Robert Schulze
8e804487f3
Some fixups 2024-01-07 22:28:08 +00:00
Smita Kulkarni
16e682e0ae Merge branch 'master' into Support_parameterized_view_with_analyzer 2024-01-07 16:38:01 +01:00
Smita Kulkarni
4be844509e Merge branch 'master' into Support_parameterized_view_with_analyzer 2024-01-05 13:58:07 +01:00
Nikolai Kochetov
80c1e59d3f Merge branch 'master' into analyzer-execution-names 2024-01-05 09:31:25 +00:00
Dmitry Novik
558d103f96 Apply optimization only in case of type match 2024-01-03 16:18:00 +00:00
Kruglov Pavel
4d8cf71ba7
Merge branch 'master' into variant-data-type 2024-01-03 15:21:23 +01:00
Raúl Marín
ff90f64bc1 Merge remote-tracking branch 'blessed/master' into speedup_numbers 2024-01-03 13:33:22 +00:00
Alexey Milovidov
e1812f3b58
Merge pull request #58266 from ClickHouse/vdimir/simple_fix_tuple_elimination
Analyzer: fix tuple comparison when result is always null
2023-12-30 13:02:38 +01:00
Raúl Marín
bda6104f84 Replace std::iota with DB::iota where possible 2023-12-29 14:38:22 +01:00
flynn
2e9cdd17ef Fix flaky test 2023-12-28 15:57:25 +00:00
avogar
275fbe3e98 Support function to subcolumns optimization for Variant, better text priority for reading Bool 2023-12-27 20:04:14 +00:00
vdimir
1137461aaf
Analyzer: fix tuple comparison when result is always null 2023-12-27 18:19:39 +00:00
Kruglov Pavel
745d9bb47f
Merge pull request #58214 from kevinmingtarja/optimize-long-and-notequals-chain
Add optimization for AND notEquals chain in logical expression optimizer
2023-12-27 15:51:59 +01:00
Kevin Mingtarja
3d7596da4b Rename test, fix style 2023-12-27 17:28:01 +07:00
Azat Khuzhin
3be3b0a280 Fix incorrect Exceptions
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-12-24 21:26:32 +01:00
Kevin Mingtarja
807d815df1 Merge branch 'master' into optimize-long-and-notequals-chain 2023-12-24 18:49:30 +00:00
Kevin Mingtarja
5416bd6e93 Add optimization for AND notEquals chain to NOT IN 2023-12-24 13:26:41 +00:00
Smita Kulkarni
08d5b8cc1d Merge branch 'master' into Support_parameterized_view_with_analyzer 2023-12-22 14:08:33 +01:00
vdimir
b06ae8bcee
Merge pull request #57139 from ClickHouse/vdimir/fix_logical_error_analyzer_and_optimize
Analyzer: Fix assert in tryReplaceAndEqualsChainsWithConstant
2023-12-22 13:15:24 +01:00
vdimir
c08a490578
Fix nullability after tryReplaceOrEqualsChainWithIn 2023-12-21 14:30:54 +00:00
vdimir
a78b00a854
Analyzer: Fix assert in tryReplaceAndEqualsChainsWithConstant 2023-12-20 15:44:05 +00:00
Robert Schulze
a8845ba729
Reorganize the test (a bit) + whitespace fixes 2023-12-19 08:16:54 +00:00
ubuntu
a077ad4c15 support new analyzer 2023-12-19 15:18:27 +08:00
Nikolai Kochetov
288888f950 Another try. 2023-12-16 15:41:02 +00:00
Nikolai Kochetov
fd64599127 Re-visit subquery for IN in CreateUniqueTableAliasesVisitor. 2023-12-15 15:15:07 +00:00
Nikolai Kochetov
5c1ed3e2c2 Fix additional filters. 2023-12-15 13:00:10 +00:00
Nikolai Kochetov
c05c232974
Merge branch 'master' into analyzer-execution-names 2023-12-13 17:21:26 +01:00
Nikolai Kochetov
093431be99 Fix some tests. 2023-12-13 14:21:42 +00:00
Raúl Marín
8c2137e0c6 Revert "Merge pull request #57741 from ucasfl/negtive-position"
This reverts commit 3d846800e0, reversing
changes made to b31b4c932f.
2023-12-13 13:09:36 +01:00