vdimir
b4ae81ee00
Merge pull request #62253 from ClickHouse/vdimir/analyzer_legacy_lambda_syntax
...
Fix lambda(tuple(x), x + 1) syntax in analyzer
2024-04-04 11:21:03 +02: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
Nikolai Kochetov
04445b30ef
Fix another logical error in group_by_use_nulls.
2024-04-03 11:50:14 +00:00
vdimir
71450c909a
Fix lambda(tuple(x), x + 1) syntax in analyzer
2024-04-03 10:39:43 +00:00
Dmitry Novik
40b9f39c00
Analyzer: Fix query parameters
2024-04-02 17:47:00 +02:00
Raúl Marín
c35a436435
Remove nested dependency on DateLutImpl
2024-04-02 14:45:48 +02:00
Raúl Marín
b2e764f633
Revert "Merge pull request #61564 from liuneng1994/optimize_in_single_value"
...
This reverts commit 20a45b4073
, reversing
changes made to a642f4d3ec
.
2024-04-01 13:51:56 +02:00
Nikolai Kochetov
697e72c13d
Merge pull request #61933 from ClickHouse/gb-use-null-analyzer-crashes
...
Fix some crashes with analyzer and group_by_use_nulls.
2024-03-29 19:29:55 +01:00
Nikolai Kochetov
c59961e980
Merge pull request #62046 from ClickHouse/fix-optimize_arithmetic_operations_in_aggregate_functions-function-type
...
Fix optimize_arithmetic_operations_in_aggregate_functions
2024-03-29 19:28:23 +01:00
Nikolai Kochetov
dc45666b4f
Merge pull request #62059 from ClickHouse/fix-type-after-IfChainToMultiIfPass
...
Ignore IfChainToMultiIfPass if returned type changed.
2024-03-29 19:26:55 +01:00
Nikolai Kochetov
45cac7e5c2
Merge pull request #62066 from ClickHouse/fix-convert-in-to-equals-type
...
Fix type for ConvertInToEqualPass
2024-03-29 19:26:28 +01:00
Nikolai Kochetov
fd01a12276
Fixing another case with grouping set
2024-03-28 18:26:15 +00:00
Nikolai Kochetov
8758d7f3a8
Fixing test.
2024-03-28 18:19:40 +00:00
Nikolai Kochetov
54d7a6041e
Fix type for ConvertInToEqualPass
2024-03-28 17:35:38 +00:00
Nikolai Kochetov
9c411a2503
Merge branch 'master' into gb-use-null-analyzer-crashes
2024-03-28 16:44:08 +00:00
Nikolai Kochetov
482400cd28
Merge pull request #61998 from ClickHouse/fix-scalars-create-as-select
...
Fix scalars create as select
2024-03-28 17:35:50 +01:00
Nikolai Kochetov
c834a11b65
Ignore IfChainToMultiIfPass if returned type changed.
2024-03-28 16:32:12 +00:00
Nikolai Kochetov
fb235c0840
Fix optimize_arithmetic_operations_in_aggregate_functions optimization which could change result type.
2024-03-28 14:44:45 +00:00
Kruglov Pavel
facde7541f
Merge pull request #61567 from Avogar/fix-analyzer-group-by-use-nulls
...
Fix logical error in group_by_use_nulls + grouping set + analyzer + materialize/constant
2024-03-28 14:38:11 +01:00
Nikolai Kochetov
ce2e5a7d13
Fixing tests.
2024-03-27 19:25:07 +00:00
Nikolai Kochetov
3ce122ef20
Fixing tests.
2024-03-27 19:23:16 +00:00
Nikolai Kochetov
920ba121fe
Fix scalars for CREATE AS SELECT for analyzer.
2024-03-27 19:17:41 +00:00
Nikolai Kochetov
dc52b81f5d
Merge branch 'master' into gb-use-null-analyzer-crashes
2024-03-27 18:37:27 +00:00
Nikolai Kochetov
6127b0b899
Revert "Fix broken only_analyze in QueryAnalysisPass"
...
This reverts commit c88cb6be9d
.
2024-03-27 17:43:27 +00:00
Nikolai Kochetov
6a7d48b932
Fix aliases.
2024-03-27 17:26:12 +00:00
Nikolai Kochetov
3b6ea659df
Fixing 02535_analyzer_group_by_use_nulls
2024-03-26 19:10:34 +00:00
Dmitry Novik
65121b712e
Merge remote-tracking branch 'origin/master' into enable-analyzer
2024-03-26 19:02:30 +01:00
Dmitry Novik
c88cb6be9d
Fix broken only_analyze in QueryAnalysisPass
2024-03-26 17:46:38 +01:00
Nikolai Kochetov
2dee605d52
Merge branch 'master' into gb-use-null-analyzer-crashes
2024-03-26 13:05:03 +01:00
Nikolai Kochetov
277df60dc4
Fix some crashes with analyzer and group_by_use_nulls.
2024-03-26 12:01:17 +00:00
Nikolai Kochetov
f2e9ea2417
Merge pull request #61875 from ClickHouse/try-to-fix-02901_parallel_replicas_rollup-with-analyzer
...
Try to fix 02901_parallel_replicas_rollup with analyzer.
2024-03-26 11:12:29 +01:00
vdimir
802d6a2dac
Merge pull request #59007 from ClickHouse/vdimir/using_alias_followup
...
Analyzer: fixes for JOIN columns resolution
2024-03-26 10:36:50 +01:00
Nikolai Kochetov
3752b13753
See what would happen if constant fold _CAST for scalar subqueries properly.
2024-03-25 15:36:01 +00:00
avogar
192d59e1ff
Disable optimize_group_by_function_keys when group_by_use_nulls=1
2024-03-25 14:00:40 +00:00
Yarik Briukhovetskyi
20a45b4073
Merge pull request #61564 from liuneng1994/optimize_in_single_value
...
New analyzer pass to optimize in single value
2024-03-25 12:53:01 +01:00
Igor Nikonov
54c3bde6a7
Fix: DISTINCT in subquery with analyzer
...
RemoveUnusedProjectionColumnsPass incorrectly removed columns,
unused in outer query, from subqueries with DISTINCT
2024-03-24 21:20:51 +00:00
Dmitry Novik
64301191b1
Merge remote-tracking branch 'origin/master' into enable-analyzer
2024-03-24 21:07:26 +00:00
vdimir
0e7bedc671
Fix resolvedIdenfiersFromJoinAreEquals function visibility
2024-03-24 17:30:51 +00:00
Nikolai Kochetov
e6242891be
Merge branch 'master' into fix-analyzer-group-by-use-nulls
2024-03-24 11:41:14 +00:00
vdimir
adbc9c66e9
fix infinite loop in ReplaceColumnsVisitor #ci_set_analyzer
2024-03-23 18:34:20 +00:00
vdimir
44f1f62904
fix ReplaceColumnsVisitor #ci_set_analyzer
2024-03-23 15:20:01 +00:00
vdimir
ee7d1cf7d9
another fix prewhere on join using column that changed type to supertype
...
tag: #ci_set_analyzer
2024-03-23 11:05:20 +00:00
vdimir
a1036075e0
Merge branch 'master' into vdimir/using_alias_followup
2024-03-22 20:16:26 +00:00
vdimir
5b7a3c276b
fix prewhere on join using column that changed type to supertype
2024-03-22 20:15:08 +00:00
Nikolai Kochetov
dd87e5793f
Merge branch 'master' into fix-analyzer-group-by-use-nulls
2024-03-22 18:24:02 +00:00
Nikolai Kochetov
897f58e5dd
Merge branch 'master' into fix-00223_shard_distributed_aggregation_memory_efficient-analyzer
2024-03-22 16:40:37 +01:00
Dmitry Novik
d43a1a1984
Merge remote-tracking branch 'origin/master' into enable-analyzer
2024-03-22 14:15:57 +01:00
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