vdimir
98004eec6b
Fix NOT_IMPLEMENTED error with CROSS JOIN and algorithm = auto
2023-03-01 13:08:24 +00:00
Vitaly Baranov
a3423ce196
Remove unnecessary execute() while evaluating a constant expression.
2023-02-05 20:26:34 +01:00
Alexander Tokmakov
70d1adfe4b
Better formatting for exception messages ( #45449 )
...
* save format string for NetException
* format exceptions
* format exceptions 2
* format exceptions 3
* format exceptions 4
* format exceptions 5
* format exceptions 6
* fix
* format exceptions 7
* format exceptions 8
* Update MergeTreeIndexGin.cpp
* Update AggregateFunctionMap.cpp
* Update AggregateFunctionMap.cpp
* fix
2023-01-24 00:13:58 +03:00
Kseniia Sumarokova
db3e0219fc
Merge pull request #41687 from ClickHouse/40907_Parameterized_views_as_table_functions
...
40907 Parameterized views as table functions
2023-01-12 14:24:32 +01:00
Nikolai Kochetov
533911b28b
Respect requested columns order for select.
2023-01-04 19:59:15 +00:00
Smita Kulkarni
1f89db78a5
Added is_create_parameterized_view flag in ActionsVisitor, added functions for column manipulation for parameterized view in StorageView, updated tests to fix flaky test issues and addressed small review comments- 40907 Parameterized views as table functions
2023-01-03 11:00:39 +01:00
SmitaRKulkarni
4d7459bd65
Merge branch 'master' into 40907_Parameterized_views_as_table_functions
2022-12-27 08:15:42 +01:00
Dmitry Novik
4793412887
Merge branch 'master' into refector-function-node
2022-12-20 18:26:19 +01:00
Nikolai Kochetov
be93fb1d71
Remove commented code. Add a comment.
2022-12-19 18:41:32 +00:00
Nikolai Kochetov
860afd1832
Add a very bad fix.
2022-12-19 16:33:10 +00:00
Nikolai Kochetov
d6b68120d7
Add a very bad fix.
2022-12-19 14:48:06 +00:00
Nikolai Kochetov
707db18ddc
Add a very bad fix.
2022-12-19 14:37:01 +00:00
Nikolai Kochetov
5e55b88fbb
Remove comments.
2022-12-18 17:41:04 +00:00
Nikolai Kochetov
6cbae727da
Remove comments.
2022-12-18 17:39:45 +00:00
Nikolai Kochetov
d54d2ec378
Check what would be if we do not allow to replace function IN to constant.
2022-12-18 17:33:58 +00:00
Smita Kulkarni
dd8df3347b
Addressed style review comments and removed bool variables assignment from Clone of ASTs - 40907 Parameterized views as table functions
2022-12-16 11:11:19 +01:00
Smita Kulkarni
16d8fd02fb
Merge branch 'master' into 40907_Parameterized_views_as_table_functions
2022-12-16 08:52:48 +01:00
Dmitry Novik
3d2fccab87
Merge branch 'master' into refector-function-node
2022-12-12 21:36:39 +01:00
Nikita Taranov
3e3738bd49
impl ( #44051 )
2022-12-10 13:28:21 +01:00
Dmitry Novik
25ecb75ca8
Merge remote-tracking branch 'origin/master' into refector-function-node
2022-12-07 18:36:50 +00:00
Nikolai Kochetov
0ed82f3cc0
Merge branch 'master' into aggregating-in-order-from-query-plan
2022-12-06 16:36:49 +01:00
Dmitry Novik
2c70dbc76a
Refactor FunctionNode
2022-12-02 19:15:26 +00:00
Smita Kulkarni
953e1068b5
Merge branch 'master' into 40907_Parameterized_views_as_table_functions
2022-11-28 19:10:32 +01:00
Smita Kulkarni
0545e24151
Updated to support query parameters in different parts of query (SELECT, ORDERBY, GROUP BY), updated the approach in WHERE & HAVING, added tests for the same - 40907 Parameterized views as table functions
2022-11-28 19:05:01 +01:00
Nikolai Kochetov
6d0646ed8f
Merge branch 'master' into aggregating-in-order-from-query-plan
2022-11-28 16:53:29 +01:00
Igor Nikonov
20e67b7140
Merge remote-tracking branch 'origin/master' into HEAD
2022-11-24 13:10:37 +00:00
Nikolai Kochetov
62debf42b4
Aggregating in order [in progress].
2022-11-23 18:38:12 +00:00
Antonio Andelic
9af9ef3916
Fix SAMPLE BY with Merge tables
2022-11-17 08:56:51 +00:00
Smita Kulkarni
95abe5d027
Updated to support query parameters in HAVING clause and addressed review comments - 40907 Parameterized views as table functions
2022-11-16 12:27:08 +01:00
Smita Kulkarni
4dec8337f0
Merge branch 'master' into 40907_Parameterized_views_as_table_functions
2022-11-11 19:04:35 +01:00
Smita Kulkarni
779b9197e3
Moved is_create_parameterized_view check inside finalize function and refactor check for isParmaeterizedView when replacing subquery - 40907 Parameterized views as table functions
2022-11-08 11:03:40 +01:00
Nikolai Kochetov
79facdb4f2
Make query plan optimisation respect query settings in EXPLAIN
2022-11-04 15:44:31 +00:00
Nikolai Kochetov
51ec95eb82
Try to fix #39157 in a different way.
2022-11-03 20:33:48 +00:00
Nikolai Kochetov
375db5bd15
Use read-in-order from query plan by default.
2022-10-31 13:54:03 +00:00
vdimir
63dbb9482e
JoinSwitcher don't use grace hash join
2022-10-26 16:09:11 +00:00
Smita Kulkarni
d8fe1d2d63
Moved is_create_parameterized_view out of Context , and added into ActionsMatcher::Data and SelectQueryInfo - 40907 Parameterized views as table functions
2022-10-21 14:45:28 +02:00
Smita Kulkarni
e4ac3d0e18
Added FunctionParameterValuesVisitor, renamed bool to is_create_parameterized_view, added checks for parameterized view and support & test to propagate query parameters - 40907 Parameterized views as table functions
2022-10-19 18:30:03 +02:00
Smita Kulkarni
614fd4cf42
Added is_parameterized_view to Context and removed flag from ASTs, updated to use tryGetTable, addressed review comments - 40907 Parameterized views as table functions
2022-10-17 18:11:22 +02:00
vdimir
f3781be762
wip grace hash
2022-10-04 08:20:13 +00:00
Smita Kulkarni
7033a56ff2
Moved QueryParameterVisitor to Parsers & EXPLAIN SYNTAX test fix - 40907 Parameterized views as table functions
2022-10-03 16:42:44 +02:00
vdimir
b120ad1452
Use TemporaryDataOnDisk for grace hash join
2022-09-30 11:07:49 +00:00
vdimir
7ebc297f4c
Merge branch 'master' into pr/BigRedEye/38191
2022-09-30 09:40:47 +00:00
Smita Kulkarni
bbc33a54b2
Addressed review comments - 40907 Parameterized views as table functions
...
Implementation
* Fix for clang-today build fails - updated to use const in Context.cpp & const function in ActionsVisitior.cpp
* Updated to use QueryParameterVisitor to check if query has query parameters
* Updated executeTableFunction to check if table/table exists instead of try-catch approach
* Fixed small review comments and style comments.
Documentation:
* Addressed review comments and added the LIVE view part which was removed by mistake in the previous commits.
2022-09-27 16:30:59 +02:00
Smita Kulkarni
f801772a86
40907 Parameterized views as table functions
...
Implementation:
* Updated parsers by adding a bool allow_query_parameters while creating ordinary view, which is used in interpreters to allow query parameters in SELECT.
* Added a check in ActionsVisitor if multiple parameters have same names while creating parameterised view.
* Added bool in StorageView to represent parameterized view.
* Updated processing of SELECT with parameter values to check for views and added substitution of values in the query parameters.
Testing:
* Added a test tests/queries/0_stateless/02428_parameterized_view.sql
Documentation:
* Updated the english documentation for VIEW.
2022-09-23 14:04:43 +02:00
Alexey Milovidov
b01f5bdca8
Merge pull request #39354 from ClickHouse/window-order-by
...
Respect ORDER BY clause in window functions
2022-09-19 09:22:37 +03:00
vdimir
7f6c8a0ae7
More tests for grace hash join
2022-09-15 12:14:27 +00:00
vdimir
8183b07dfa
Fix 01721_join_implicit_cast_long
2022-09-07 16:38:47 +00:00
vdimir
9cc98f09ca
Fix chooseJoinAlgorithm for grace_hash
2022-09-07 15:00:38 +00:00
vdimir
6d4b6c452a
Merge branch 'master' into grace_hash_join
2022-09-07 08:00:14 +00:00
Dmitry Novik
0a8378d9cd
Merge branch 'master' into betterorderbyoptimization
2022-08-30 14:23:22 +02:00