Commit Graph

296 Commits

Author SHA1 Message Date
Alexey Arno
6efb40c48b Merge 2015-07-10 17:42:30 +03:00
Alexey Milovidov
b308d79f5e dbms: improved performance of query parsing and analyzing with very long arrays [#METR-17061]. 2015-06-29 07:54:52 +03:00
Alexey Milovidov
0719320758 dbms: improvement [#METR-2944]. 2015-06-18 05:11:05 +03:00
Alexey Milovidov
7b76ff3118 dbms: additions to prev. revision [#METR-2944]. 2015-06-12 08:54:49 +03:00
Alexey Milovidov
a9becd36ea dbms: allowed constant expressions in IN [#METR-2944]. 2015-06-12 08:18:47 +03:00
Andrey Mironov
5a60c588bf dbms: ExpressionAnalyzer: redundant null check eliminated, refactoring 2015-06-08 18:22:04 +03:00
Alexey Milovidov
5390f492e1 dbms: JOIN with empty table: additions [#METR-16476]. 2015-05-27 03:55:54 +03:00
Alexey Milovidov
baaf5d0485 dbms: allowed to JOIN with empty table [#METR-16476]. 2015-05-26 03:37:48 +03:00
Andrey Mironov
3fc0fda58f dbms: ExpressionAnalyzer: addStorageAliases add useful todo 2015-05-22 16:25:59 +03:00
Andrey Mironov
8ddc49125c dbms: do not expand ALIAS column names. [#METR-16390] 2015-05-21 16:47:29 +03:00
Andrey Mironov
095fd54ae8 dbms: correctly handle injective dictGet* functions during ExpressionAnalyzer's optimizations. 2015-05-13 19:11:24 +03:00
Alexey Milovidov
b5463a887f dbms: allowed to type 'count(*)' instead of 'count()' as exception [#METR-2944]. 2015-05-13 04:19:19 +03:00
Alexey Milovidov
488343c252 dbms: fixed tiny error [#METR-10859]. 2015-05-12 23:09:18 +03:00
Alexey Milovidov
310ed66b00 Revert "dbms: improvement (incomplete) [#METR-16164]."
This reverts commit 6f4f44ce7980cace32edd0913b8d1d53cd51682b.
2015-05-03 12:13:08 +03:00
Alexey Milovidov
3b5fe94b82 dbms: fixed indent [#METR-16164]. 2015-05-03 11:35:50 +03:00
Alexey Milovidov
b5f1084132 dbms: improvement (incomplete) [#METR-16164]. 2015-04-30 08:45:34 +03:00
Alexey Milovidov
9077eb4f3c dbms: preparation [#METR-15418]. 2015-04-19 01:30:43 +03:00
Alexey Milovidov
114b3de689 dbms: cut dependencies [#METR-2944]. 2015-04-16 09:12:35 +03:00
Alexey Milovidov
c4ea83a906 dbms: cut dependencies [#METR-2944]. 2015-04-14 05:45:30 +03:00
Alexey Milovidov
db2956eb73 dbms: removing duplicate elements from ORDER BY [#METR-2944]. 2015-03-12 06:31:15 +03:00
Alexey Milovidov
1d7d1051a2 dbms: fixed error [#METR-15451]. 2015-03-12 05:22:55 +03:00
Alexey Arno
4dd8387f2d dbms: Server: feature development [#METR-14875] 2015-02-18 20:05:25 +03:00
Alexey Arno
8407779d2e dbms: Server: feature development [#METR-14875] 2015-02-18 20:03:15 +03:00
Alexey Arno
932755f851 dbms: Server: feature development [#METR-14875] 2015-02-18 20:03:14 +03:00
Alexey Arno
99663bfc99 dbms: Server: feature development [#METR-14875] 2015-02-18 20:03:14 +03:00
Alexey Arno
f37fea7f24 dbms: Server: feature development [#METR-14875] 2015-02-18 20:03:14 +03:00
Alexey Arno
f49bcac364 dbms: Server: feature development [#METR-14875] 2015-02-18 20:03:14 +03:00
Alexey Arno
c342867233 dbms: Server: feature development [#METR-14875] 2015-02-18 20:03:14 +03:00
Alexey Arno
5546e6c872 dbms: Server: feature development [#METR-14875] 2015-02-18 20:03:14 +03:00
Alexey Arno
c95bec1cf4 dbms: Server: feature development [#METR-14875] 2015-02-18 20:03:14 +03:00
Alexey Milovidov
5271a45625 dbms: fixed error with JOINs [#METR-14847]. 2015-02-01 10:20:33 +03:00
Alexey Milovidov
1e18ff37c6 dbms: fixed error with JOIN [#METR-14847]. 2015-01-31 00:19:35 +03:00
Alexey Milovidov
e4e313f54f dbms: StorageJoin: development [#METR-2944]. 2015-01-28 05:37:05 +03:00
Alexey Milovidov
fed642cd7c dbms: added StorageSet [#METR-2944]. 2015-01-27 03:52:03 +03:00
Alexey Milovidov
715f5bf8d1 dbms: fixed error with GLOBAL IN when one of shard is localhost [#METR-14557]. 2015-01-14 05:44:25 +03:00
Andrey Mironov
f283719d89 dbms: fix in/join identifier subquery [#METR-14402] 2014-12-23 03:31:17 +03:00
Andrey Mironov
e7301a4050 dbms: add override to AST types 2014-12-17 18:51:21 +03:00
Andrey Mironov
3ebfd2fb7f dbms: pass proper context into Storage::read(). [#METR-14179]
This reverts commit 34b3f738a67432b44f6f69238dd1529535984d1a.
2014-12-17 17:19:07 +03:00
Andrey Mironov
49e322a045 Revert "dbms: pass proper context into Storage::read(). [#METR-14179]"
This reverts commit c0800b74a6fa338d29a65111599aa1fe71b67201.
2014-12-16 19:22:57 +03:00
Andrey Mironov
fc9472ba47 dbms: pass proper context into Storage::read(). [#METR-14179] 2014-12-16 15:40:25 +03:00
Andrey Mironov
731be3e7cf Merge 2014-11-12 13:37:47 +03:00
Andrey Mironov
2e7c880fe5 dbms: remove accidentally forgotten code. [#METR-13321] 2014-10-21 18:08:06 +04:00
Andrey Mironov
25639d9834 dbms: fix segmentation fault when left tuple of IN contains array types. [#METR-13321] 2014-10-21 17:07:38 +04:00
Andrey Mironov
220ce78326 dbms: support ALIAS in table declaration 2014-10-03 19:30:10 +04:00
Andrey Mironov
9800d0d95f Merge 2014-10-02 22:34:49 +04:00
Alexey Milovidov
3b8c4d2c9d dbms: style [#METR-12108]. 2014-08-20 03:12:31 +04:00
Alexey Milovidov
b16c083de5 dbms: fixed error with GROUP BY expression with IN operators [#METR-12383]. 2014-08-19 02:43:03 +04:00
Andrey Mironov
e8fe836a1b dbms: more sound solution for backtracking for-loop. [#METR-12108] 2014-08-08 10:10:12 +04:00
Andrey Mironov
beca178f2f dbms: support WITH TOTALS without GROUP BY 2014-08-08 10:10:12 +04:00
Andrey Mironov
5c529d7b4f dbms: ExpressionsAnalyzer: switch off group by literal elimination completely. [#METR-12108] 2014-07-31 17:17:51 +04:00
Andrey Mironov
c519e9d15f dbms: ExpressionsAnalyzer: switch literal optimization off temporarily. [#METR-12108] 2014-07-31 17:14:08 +04:00
Andrey Mironov
18db7b24d1 comment typo fixed 2014-07-31 15:27:34 +04:00
Andrey Mironov
91373f1525 dbms: ExpressionAnalyzer: eliminate constant expressions from GROUP BY statement 2014-07-31 15:26:05 +04:00
Andrey Mironov
1995d3e1ba replace commentary tabs with spaces 2014-07-31 12:14:19 +04:00
Andrey Mironov
5c85b79e68 dbms: ExpressionAnalyzer: eliminate injective function calls from group by expressions. [#METR-12108] 2014-07-31 11:24:07 +04:00
Michael Kolupaev
f58b4f6ccb ClickHouse: Added table system.parts. [#METR-12036] 2014-07-29 19:21:09 +04:00
Alexey Milovidov
80f163eb08 dbms: removed debug output [#METR-11370]. 2014-07-16 06:13:26 +04:00
Michael Kolupaev
0a67d151bd dbms: updated all usages of NamesAndTypesPair to new field names. [#METR-10202] 2014-07-09 15:54:26 +04:00
Alexey Milovidov
9e1e1f4552 dbms: fixed error [#METR-11370]. 2014-07-07 02:32:09 +04:00
Alexey Milovidov
4f2d00e696 dbms: fixed error in prev. revision [#METR-11370]. 2014-07-07 00:46:17 +04:00
Alexey Milovidov
8643f02ac0 dbms: reworked GLOBAL subqueries (probably doesn't work) [#METR-11370]. 2014-07-06 23:48:39 +04:00
Alexey Milovidov
0ee947c62a dbms: fixed leak in GLOBAL IN; improvements [#METR-11370]. 2014-07-06 08:22:12 +04:00
Alexey Milovidov
e7722f50b1 dbms: JOINs: development [#METR-11370]. 2014-07-06 04:19:49 +04:00
Alexey Milovidov
18f670defa dbms: JOINs: development [#METR-11370]. 2014-07-05 00:30:06 +04:00
Alexey Milovidov
ecb1cf9b33 dbms: ExpressionAnalyzer: better [#METR-11370]. 2014-07-04 23:13:38 +04:00
Alexey Milovidov
be8c22f47f dbms: GLOBAL JOINs: development [#METR-11370]. 2014-07-04 05:40:22 +04:00
Alexey Milovidov
8a7a4b11f0 dbms: better [#METR-11370]. 2014-07-04 02:39:13 +04:00
Alexey Milovidov
2fa4a2cf60 dbms: GLOBAL JOINs: development [#METR-11370]. 2014-07-04 00:32:42 +04:00
Alexey Milovidov
1579017cfd dbms: JOINs: fixed dealing with aliases [#METR-11370]. 2014-07-03 00:23:48 +04:00
Alexey Milovidov
c9cde08e36 dbms: improved error message [#METR-11524]. 2014-06-27 22:22:33 +04:00
Alexey Milovidov
108a7850a5 dbms: improved performance on short queries [#METR-11571]. 2014-06-26 04:58:14 +04:00
Alexey Milovidov
413b8d214e dbms: improved performance of short queries [#METR-11571]. 2014-06-25 04:17:51 +04:00
Alexey Milovidov
149e92c6a7 dbms: removed useless copy of Block [#METR-11571]. 2014-06-24 23:53:48 +04:00
Alexey Milovidov
d67b11211a dbms: added support for ANY INNER JOIN [#METR-11370]. 2014-06-18 22:31:35 +04:00
Alexey Milovidov
b8ee43e5c5 dbms: removed debug output [#METR-11370]. 2014-06-17 00:01:42 +04:00
Alexey Milovidov
29e8538f25 dbms: JOINs: development [#METR-11370]. 2014-06-13 13:07:20 +04:00
Alexey Milovidov
870f766798 dbms: JOINs: development [#METR-11370]. 2014-06-13 10:39:15 +04:00
Alexey Milovidov
bfff8ab715 dbms: JOINs: development [#METR-11370]. 2014-06-13 06:05:05 +04:00
Alexey Milovidov
1ba07d65ad dbms: development [#METR-11370]. 2014-06-13 03:21:38 +04:00
Alexey Milovidov
607485d82a dbms: better [#METR-11370]. 2014-06-13 01:17:03 +04:00
Alexey Milovidov
8ca868ce25 dbms: better [#METR-11370]. 2014-06-13 01:12:47 +04:00
Alexey Milovidov
5a74e92b0b dbms: better [#METR-11370]. 2014-06-12 23:53:36 +04:00
Alexey Milovidov
f16a9beb61 dbms: removed sign_rewrite (obsolete, unused); tiny modifications [#METR-11370]. 2014-06-12 23:23:06 +04:00
Alexey Milovidov
a7c8921eb2 dbms: little more readable [#METR-11370]. 2014-06-12 22:41:09 +04:00
Alexey Milovidov
a77ec35c96 dbms: JOINs: development [#METR-11370]. 2014-06-12 09:13:50 +04:00
Alexey Milovidov
0ba0894a90 dbms: JOINs: development [#METR-11370]. 2014-06-12 08:04:47 +04:00
Alexey Milovidov
5e153b2bb9 dbms: support for JOINs in parser [#METR-11370]. 2014-06-12 04:48:56 +04:00
Sergey Fedorov
2bdcb127ec dbms: fixed compilation bug [METR-11023] 2014-05-15 14:35:02 +04:00
Sergey Fedorov
b308db2434 dbms: limits for transfering external tables, only_external mode in set [METR-11023] 2014-05-15 14:24:03 +04:00
Sergey Fedorov
208e5ccdce dbms: rewriting logic of global in queries [METR-10974] 2014-05-14 19:07:51 +04:00
Alexey Milovidov
8198d86f5a dbms: fixed errors on clang [#METR-2807]. 2014-05-12 04:45:50 +04:00
Michael Kolupaev
4cee45e004 dbms: better optimization of ARRAY JOIN; tests for it. [#METR-11017] 2014-04-30 23:19:35 +04:00
Sergey Fedorov
add1b80d7a dbms: fixed global_in inside aggregate function. [METR-10974] 2014-04-29 20:53:01 +04:00
Michael Kolupaev
345b1bfb44 Merge 2014-04-22 14:41:53 +04:00
Alexey Milovidov
29186e8a17 dbms: improved code [#METR-10498]. 2014-04-12 19:49:36 +04:00
Pavel Kartavyy
3974dd8e1d dbms: in refactoring [#METR-10498] 2014-04-10 12:57:01 +04:00
Sergey Fedorov
8f39a1177a expressionAnalyzer: fixed query "where smth in t" [METR-10071] 2014-04-09 17:21:29 +04:00
Pavel Kartavyy
6a15b2b588 dbms: in refactoring [#METR-10498] 2014-04-09 14:32:52 +04:00
Pavel Kartavyy
d63e779d9d dbms: fixed exceptions in In; unknown element in AST, not found column [#METR-10498] 2014-04-09 13:05:37 +04:00
Alexey Milovidov
63cff6a5a4 Improvement [#METR-2807]. 2014-04-08 11:58:53 +04:00
Pavel Kartavyy
d9e931a8fe dbms: fixed Null pointer [#METR-10498] 2014-04-07 20:29:26 +04:00
Pavel Kartavyy
049db94426 dbms: development [#METR-10498] 2014-04-07 20:29:25 +04:00
Pavel Kartavyy
bdeee5386b dbms: development [#METR-10498]
Signed-off-by: Pavel Kartavyy <kartavyy@yandex-team.ru>
2014-04-07 20:29:25 +04:00
Sergey Fedorov
fff1593bd9 dbms: Sending only required external tables to remote servers [METR-10071] 2014-04-01 18:06:58 +04:00
Michael Kolupaev
25f5d03f77 dbms: (Warning: this commit makes clickhouse distributed queries incompatible with previous versions) Improved distributed query processing: more stages and optimizations are now made on remote side. Significantly reduced spaghettiness of InterpreterSelectQuery. [#METR-10616] 2014-03-28 16:13:58 +04:00
Alexey Milovidov
eba3126077 dbms: style [#METR-10071]. 2014-03-27 23:09:23 +04:00
Alexey Milovidov
26848b6803 dbms: added pretty-formatting for GLOBAL IN; pedantic modifications in comments [#METR-10071]. 2014-03-27 21:58:25 +04:00
Sergey Fedorov
eda2a1590b dbms: fixed different names of new external storages in expression analyzer [METR-10071] 2014-03-27 16:06:45 +04:00
Sergey Fedorov
003c7b30cd dbms: fixes and more comments on 'Global in' and external tables behavior [METR-10071] 2014-03-27 16:06:45 +04:00
Sergey Fedorov
f0aae9604a dbms: Global in function, sexternal tables transfers to remote servers [METR-10071] 2014-03-27 16:06:45 +04:00
Sergey Fedorov
cf25673606 expression analyzer: support "IN t" = "in select * from t" [METR-10071] 2014-03-27 16:06:45 +04:00
Michael Kolupaev
262ffcd74b Fixed parametric aggregate functions in totals. [#METR-10566] 2014-03-25 22:16:40 +04:00
Alexey Milovidov
b8218d64b8 dbms: Fixed accidentially introduced error [#METR-10377]. 2014-03-12 22:20:03 +04:00
Michael Kolupaev
dbddbf4244 fixed a typo in comment. [#METR-10377] 2014-03-07 23:21:38 +04:00
Alexey Milovidov
1eb66250c1 dbms: Fixed error with extremes and subqueries [#METR-10377]. 2014-03-07 22:19:14 +04:00
Michael Kolupaev
dcaa75fe9c clickhouse: probably fixed. [#METR-10364] 2014-03-07 16:10:37 +04:00
Michael Kolupaev
09777523b4 Revert "clickhouse: probably fixed a bug that would probably never be encountered in practice anyway. [#METR-10364]"
This reverts commit 796955dc18de92a63023d0379a89bfc16cf4e7ac.
2014-03-07 15:37:44 +04:00
Michael Kolupaev
2d812c3c25 clickhouse: probably fixed a bug that would probably never be encountered in practice anyway. [#METR-10364] 2014-03-07 15:34:47 +04:00
Michael Kolupaev
1b3ec0e915 clickhouse: fixed creating unused tuples for IN sets in PKCondition. [#METR-10364] 2014-03-07 15:11:31 +04:00
Michael Kolupaev
d3874a1202 clickhouse: subqueries in IN update progress and can be cancelled (and added missing files). [#METR-10102] 2014-03-04 21:56:24 +04:00
Pavel Kartavyy
95c801b2c6 Revert "clickhouse: subqueries in IN update progress and can be cancelled. [#METR-10102]"
This reverts commit 98eb21cee309e52fc8be378ebd7cec757b38300f.
2014-03-04 18:19:32 +04:00
Michael Kolupaev
9c3297f3a1 clickhouse: subqueries in IN update progress and can be cancelled. [#METR-10102] 2014-03-04 15:26:55 +04:00
Sergey Fedorov
967677e8cf table functions: refixed table function analyzation in expression analyzer [METR-9750] 2014-02-28 17:28:42 +04:00
Alexey Milovidov
82b98ffb6d dbms: fixed error with ARRAY JOIN [#METR-9753]. 2014-01-29 19:00:19 +00:00
Alexey Milovidov
42ed5f89a6 dbms: fixed error with IN and limits [#METR-9748]. 2014-01-28 19:24:50 +00:00
Sergey Fedorov
a7edba5032 table functions: main interface implementation, function merge implementation, plug for remote function [METR-9750] 2014-01-28 16:45:10 +00:00
Sergey Fedorov
9cc974568e Merge 2014-01-17 15:19:20 +00:00
Sergey Fedorov
da115c14f7 Merge 2014-01-16 14:52:13 +00:00
Michael Kolupaev
936fc15640 clickhouse: better error message when an aggregate function is missing. [#METR-9590] 2014-01-13 11:29:24 +00:00
Sergey Fedorov
91609727a8 Merge 2014-01-10 13:24:50 +00:00
Sergey Fedorov
d2fe6e0fa9 dbms: update in expression analyzer, now * is only for virtual columns 2013-12-27 14:11:11 +00:00
Michael Kolupaev
c74cca252e ClickHouse: fixed one case in ARRAY JOIN. [#METR-8821] 2013-12-06 10:41:54 +00:00
Michael Kolupaev
857cebea6f ClickHouse: small fixes for PREWHERE. [#METR-9091] 2013-12-05 13:07:55 +00:00
Alexey Milovidov
3c1ec5bc34 dbms: allowed to return tuples as query result [#METR-8970]. 2013-10-26 19:00:13 +00:00
Michael Kolupaev
491480e79c ClickHouse: fixed and claened up ARRAY JOIN a little. [#CONV-8821] 2013-10-21 11:33:25 +00:00
Michael Kolupaev
bc071d70c1 ClickHouse: fixed ARRAY JOIN when its result is unused. [#CONV-8821] 2013-10-18 08:40:14 +00:00
Michael Kolupaev
59b80197fc ClickHouse: fixed aliases on aliases: SELECT [1,2,3] AS a, x ARRAY JOIN a AS x. [#CONV-8821] 2013-10-18 08:07:51 +00:00
Michael Kolupaev
1cab77c753 Added support for multiple expressions in ARRAY JOIN section. There are known issues. Sorry for automatic indentation changes. [#CONV-8821] 2013-10-17 13:32:32 +00:00
Michael Kolupaev
d2b63a74a0 Fixed IN with subqueries in some cases. [#CONV-8804] 2013-10-01 13:16:10 +00:00
Vyacheslav Alipov
9de74db58b fixed GROUP BY [#CONV-7967] 2013-08-01 18:04:59 +00:00
Vyacheslav Alipov
c82710b275 fixed arrayJoin, also functions on the original array should be working now [#CONV-7967] 2013-08-01 16:00:38 +00:00
Vyacheslav Alipov
f298f2698e reorganized array_joined_columns ('ARRAY JOIN ColumnArray AS alias' should be working now) [#CONV-7967] 2013-08-01 15:28:10 +00:00
Vyacheslav Alipov
f81a5d0d85 fixes, going to reorganize ExpressionActions::Action::array_joined_columns [#CONV-7967] 2013-08-01 15:06:41 +00:00
Vyacheslav Alipov
371c8ce796 fixed getRequiredColumns, getSelectSampleBlock, aliases dict and originalNestedName [#CONV-7967] 2013-08-01 14:43:04 +00:00
Vyacheslav Alipov
733db69d41 fixed server start up [#CONV-7967] 2013-08-01 13:43:47 +00:00
Vyacheslav Alipov
f504fd2193 reorganized adding of MULTIPLE_ARRAY_JOIN action [#CONV-7967] 2013-08-01 13:29:32 +00:00
Vyacheslav Alipov
d6acde63a9 fixed aliases for ARRAY JOIN section (unknown kolumn issue) [#CONV-7967] 2013-07-31 11:28:55 +00:00
Vyacheslav Alipov
857063ebf3 fixed aliases for ARRAY JOIN section (required_columns issue) [#CONV-7967] 2013-07-31 10:06:44 +00:00
Vyacheslav Alipov
ef8cd52e73 added alias support for ARRAY JOIN section [#CONV-7967] 2013-07-30 17:25:46 +00:00
Vyacheslav Alipov
3ef3d700fa reverted getArrayJoinImpl [#CONV-7967] 2013-07-26 17:21:01 +00:00