Nikolai Kochetov
ec134d2642
Another attempt.
2024-03-22 10:51:01 +00:00
liuneng
6a550bc754
add test case and support constant expression
2024-03-22 11:23:59 +08:00
Nikolai Kochetov
89d80a4d65
Redo fix.
2024-03-21 18:16:31 +00:00
Alexey Milovidov
8670f1dc91
Merge pull request #61543 from ClickHouse/fix-regexp-recompilation-in-parser
...
Fix recompilation of regexps during backtracking in the parser
2024-03-21 21:15:17 +03:00
Dmitry Novik
e4209218d4
Merge pull request #60497 from ClickHouse/analyzer-distr-json
...
Analyzer: Support different ObjectJSON on shards
2024-03-21 16:25:30 +01:00
vdimir
46ab53ef79
fix
2024-03-21 14:03:43 +00:00
Dmitry Novik
466cfe29b2
Fix tests with clickhouse-local #ci_set_analyzer
2024-03-21 15:01:08 +01:00
vdimir
15bf6d1d5f
Merge branch 'master' into vdimir/using_alias_followup
2024-03-21 10:39:18 +00:00
vdimir
e002e42805
remove old nodes from node_to_projection_name when node become nullable
2024-03-21 10:38:50 +00:00
vdimir
33169e72df
Fix AMBIGUOUS_IDENTIFIER with join_use_nulls
...
https://github.com/ClickHouse/ClickHouse/issues/59067#issuecomment-1912500556
2024-03-21 10:37:52 +00:00
vdimir
42d59a8fd1
Update after refactoring ALIAS columns computation
2024-03-21 09:16:58 +00:00
vdimir
add1613a50
Merge pull request #61631 from ClickHouse/vdimir/analyzer_join_using_unresolved_error_msg
...
Verbose error message about analyzer_compatibility_join_using_top_level_identifier
2024-03-21 10:12:25 +01:00
Antonio Andelic
5f067c16be
Merge pull request #61656 from ClickHouse/another-fix-for-sum-if-to-count-if-pass
...
Another fix for `SumIfToCountIfPass`
2024-03-21 08:49:19 +01:00
liuneng
ada4384deb
fix ut failed
2024-03-21 10:38:51 +08:00
Alexey Milovidov
4d6709579b
Fix error
2024-03-21 02:28:14 +01:00
Alexey Milovidov
99ed82d561
Merge branch 'master' into fix-regexp-recompilation-in-parser
2024-03-21 02:21:09 +01:00
avogar
355909eb3a
Clean up
2024-03-20 14:54:07 +00:00
avogar
01c0af07aa
Disable optimize_injective_functions_in_group_by when group_by_use_nulls=1
2024-03-20 14:49:43 +00:00
Antonio Andelic
a343406da4
Another fix for SumIfToCountIfPass
2024-03-20 15:33:45 +01:00
Yarik Briukhovetskyi
5ed895dbf5
remove whitespace before coma
2024-03-20 14:12:33 +01:00
Raúl Marín
c98634ad8c
Merge remote-tracking branch 'blessed/master' into nested_includes
2024-03-20 14:08:10 +01:00
Nikolai Kochetov
624b3a6dbe
Fixing 00223_shard_distributed_aggregation_memory_efficient with analyzer.
2024-03-20 12:08:46 +00:00
vdimir
25bae3e0a5
Verbose error medssage about analyzer_compatibility_join_using_top_level_identifier
2024-03-20 10:58:43 +00:00
liuneng
d2d5f3b323
add not in
2024-03-20 17:46:07 +08:00
liuneng
45bbef689a
fix error for in Null
2024-03-20 12:29:48 +08:00
liuneng
862abf2f6e
remove config
2024-03-20 10:40:22 +08:00
liuneng
a29d4f5db2
fix bug
2024-03-20 10:24:57 +08:00
Alexey Milovidov
cfab620f49
Fix bad code
2024-03-20 01:11:53 +01:00
Alexey Milovidov
82b18670a2
Fix error
2024-03-19 22:31:26 +01:00
avogar
bd7c13c1b6
Merge branch 'master' of github.com:ClickHouse/ClickHouse into fix-analyzer-group-by-use-nulls
2024-03-19 19:29:49 +00:00
Alexey Milovidov
a996155e83
Merge branch 'master' of github.com:ClickHouse/ClickHouse into fix-regexp-recompilation-in-parser
2024-03-19 19:56:11 +01:00
Dmitry Novik
221b74c77f
Fix #ci_set_analyzer
2024-03-19 19:44:15 +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
avogar
462445c2c2
Fix logical error in group_by_use_nulls + analyzer + materialize/constant
2024-03-19 10:41:23 +00:00
liuneng
761c612295
fix style
2024-03-19 18:29:07 +08:00
liuneng
532d72a7d8
add test case
2024-03-19 17:30:16 +08:00
liuneng
a742b235a4
add pass covert in single value to equal
2024-03-19 17:12:13 +08:00
Alexey Milovidov
613c31038a
Fix recompilation of regexps during backtracking in the parser
2024-03-18 18:40:47 +01:00
vdimir
dbed5d1902
Add analyzer_compatibility_join_using_top_level_identifier
2024-03-18 11:11:21 +00:00
vdimir
fbad9b799c
fix PREWHERE with join_use_nulls
2024-03-18 11:11:06 +00:00
vdimir
e27e6fb2f5
Analyzer: support join using column from select list
2024-03-18 11:11:00 +00:00
Robert Schulze
c17536c3b3
Enable clang-tidy in headers
2024-03-18 08:00:09 +00:00
Antonio Andelic
060f79862d
Fix
2024-03-15 10:49:36 +00:00
Antonio Andelic
b000849529
Better
2024-03-14 18:21:21 +00:00
Antonio Andelic
22ca96cf8d
Disable optimize_rewrite_sum_if_to_count_if if return is nullable
2024-03-14 16:05:01 +00:00
Nikolai Kochetov
6f31a77f70
Fix test 02174_cte_scalar_cache_mv
2024-03-08 15:33:45 +00:00
Nikolai Kochetov
00557a9c6c
Merge branch 'master' into use-global-scalars-cache-analyzer
2024-03-08 12:30:04 +00:00
Dmitry Novik
526af77f4a
Merge pull request #60313 from ClickHouse/analyzer-refactor-constant-name
...
Analyzer: Refactor execution name for ConstantNode
2024-03-08 12:08:05 +01:00
Nikolai Kochetov
4c3fa4e864
Use global scalars cache in analyzer.
2024-03-08 09:43:57 +00:00
Nikolai Kochetov
97607f1031
Fix style
2024-03-07 17:06:45 +00:00
Nikolai Kochetov
2b8cf8b6e9
Merge branch 'master' into constant-folding-scalar-subqueries
2024-03-07 16:06:55 +00:00
Nikolai Kochetov
2db1876750
Fixing analyzer.
2024-03-07 15:42:45 +00:00
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