Commit Graph

515 Commits

Author SHA1 Message Date
Andrey Mironov
0bfd35e5c7 dbms: defaulted columns support for ALTER, currently without type deduction and checking. 2014-10-16 17:37:01 +04:00
Andrey Mironov
6f7997ce11 dbms: prohibit inserting materialized columns, support create as and similar queries. [#METR-12739] 2014-10-10 19:45:43 +04:00
Alexey Milovidov
58982a2530 dbms: fixed error [#METR-11587]. 2014-10-08 05:54:26 +04:00
Alexey Milovidov
bae467c493 dbms: preparation [#METR-2944]. 2014-08-23 00:14:53 +04:00
Andrey Mironov
beca178f2f dbms: support WITH TOTALS without GROUP BY 2014-08-08 10:10:12 +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
f107415f75 dbms: fixed error; more diagnostics for GLOBAL subqueries [#METR-11370]. 2014-07-07 01:59:20 +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
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
108a7850a5 dbms: improved performance on short queries [#METR-11571]. 2014-06-26 04:58:14 +04:00
Alexey Milovidov
29e8538f25 dbms: JOINs: development [#METR-11370]. 2014-06-13 13:07:20 +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
0ba0894a90 dbms: JOINs: development [#METR-11370]. 2014-06-12 08:04:47 +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
Alexey Milovidov
b5c63dade9 Merge 2014-04-12 20:11:06 +04:00
Pavel Kartavyy
3974dd8e1d dbms: in refactoring [#METR-10498] 2014-04-10 12:57:01 +04:00
Pavel Kartavyy
6a15b2b588 dbms: in refactoring [#METR-10498] 2014-04-09 14:32:52 +04:00
Alexey Milovidov
9dad91788b Improvement [#METR-2807]. 2014-04-08 11:47:51 +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
d42352149d dbms: DISTINCT before ORDER BY. [#METR-9627] 2014-03-28 20:08:48 +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
Michael Kolupaev
852d35615c dbms: Fixed a bug. [#METR-10615] 2014-03-27 23:50:02 +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
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
6f85a12692 dbms: fixed variable names, temporary tables are now external tables, in distributed query external table now always will be send to remote servers [METR-10071] 2014-03-27 16:06:45 +04:00
Sergey Fedorov
a17a57c425 client: external data sending from client to server [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
Michael Kolupaev
280dd19e63 Fixed SELECT without table. [#METR-10202] 2014-03-20 21:05:22 +04:00
Michael Kolupaev
e10125a052 Using IStorage locks properly in most places. Got rid of StoragePtr and DatabaseDropper. Drops are now synchronous. [#METR-10202] 2014-03-20 14:59:45 +04:00
Michael Kolupaev
67c563a4d3 Added locks to IStorage. Some race conditions are fixed, some are introduced, along with some possible deadlocks. [#METR-10202] 2014-03-19 14:45:13 +04:00
Michael Kolupaev
420d5696ea clickhouse: fixed ARRAY JOIN in distributed queries without WHERE and aggregation. [#METR-10349] 2014-03-14 12:30:50 +04:00
Alexey Milovidov
34ef806287 dbms: fixed error [#METR-10377]. 2014-03-12 21:15:14 +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
Michael Kolupaev
789be91e46 clickhouse: fixed putting totals everywhere. [#METR-9365] 2014-03-04 11:59:38 +04:00
Sergey Fedorov
967677e8cf table functions: refixed table function analyzation in expression analyzer [METR-9750] 2014-02-28 17:28:42 +04:00
Michael Kolupaev
b0f079be0d setting for totals threshold with AFTER_HAVING_AUTO. [#METR-10223] 2014-02-27 17:12:56 +04:00
Michael Kolupaev
d83ff9ceb2 clickhouse: totals modes. [#METR-9365] 2014-02-27 16:53:38 +04:00
Michael Kolupaev
04f0056b0a clickhouse: totals mode: development. [#METR-9365] 2014-02-27 16:53:38 +04:00
Sergey Fedorov
53929040b0 table functions: fixed error when expression analyzer throw exception on unknown function [METR-9750] 2014-02-26 14:52:22 +04:00
Alexey Milovidov
8efd6ee42c dbms: sending only set/changed settings [#METR-10087]. 2014-02-17 23:56:45 +00:00
Sergey Fedorov
392b960ade storages: virtual column support functions [METR-9172] 2014-02-08 16:49:45 +00:00
Sergey Fedorov
7ad57f4062 tableFunctions: updates in interface, fixed misspells in commets [METR-9750] 2014-02-06 16:21:00 +00:00
Alexey Milovidov
a2d1518f21 dbms: fixed error with ORDER BY in distributed queries without aggregation [#METR-9904]. 2014-02-05 15:09:30 +00:00
Pavel Kartavyy
92d5a9c302 dbms: added default_sample [#METR-9464] 2014-01-28 19:26:39 +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
Alexey Milovidov
fd414800d5 dbms: added ProfileEvents system [#METR-2944]. 2014-01-03 08:20:13 +00:00
Sergey Fedorov
d2fe6e0fa9 dbms: update in expression analyzer, now * is only for virtual columns 2013-12-27 14:11:11 +00:00
Sergey Fedorov
1a5f04d3bf Merge 2013-12-26 13:55:19 +00:00
Michael Kolupaev
666ff5201f clickhouse: fixed DISTINCT with ORDER BY and LIMIT. [#METR-9598] 2013-12-25 13:12:43 +00:00
Alexey Milovidov
e0179cd968 dbms: fixed DISTINCT in subqueries in FROM [#METR-9549]. 2013-12-18 20:16:04 +00:00
Michael Kolupaev
857cebea6f ClickHouse: small fixes for PREWHERE. [#METR-9091] 2013-12-05 13:07:55 +00:00
Michael Kolupaev
596b2bc1d9 ClickHouse: Parsing and passing around PREWHERE condition. No actual filtering yet. [#METR-9091] 2013-11-28 13:16:46 +00:00
Sergey Fedorov
13bd27c498 dbms: View and Materialized View fixes, logic updates, implementation [#METR-9076] 2013-11-13 14:39:48 +00:00
Alexey Milovidov
806fee097b dbms: fixed limits on result data with distributed query processing [#METR-9180]. 2013-11-12 23:15:09 +00:00
Sergey Fedorov
b6b40d4c4e dbms: View and Materialized View implementation [#METR-9076] 2013-11-08 17:43:03 +00:00
Alexey Milovidov
3f2ee82cdc dbms: SplittingAggregator: added support for max_rows_to_group_by [#METR-2944]. 2013-11-04 00:49:37 +00:00
Alexey Milovidov
18a8aa74f8 dbms: merged convertToBlock and finalize aggregation steps whenever possible [#METR-2944]. 2013-11-03 23:35:18 +00:00
Alexey Milovidov
c039460ba7 dbms: allowed to activate SplittingAggregator by setting [#METR-2944]. 2013-11-03 22:25:17 +00:00
Alexey Milovidov
2bfefa24ba dbms: SplittingAggregator: development [#METR-2944]. 2013-11-03 21:50:58 +00:00
Alexey Milovidov
d98f41ba3d dbms: improved performance of queries with GROUP BY and LIMIT but without HAVING and ORDER BY [#METR-2944]. 2013-11-03 21:36:37 +00:00
Alexey Milovidov
9437657b7b dbms: modified Limits, Quotas, Progress, ProcessList [#METR-8459], [#METR-8894]. 2013-11-03 05:32:42 +00:00
Alexey Milovidov
bbf44374a9 dbms: fixed error with limits on result [#METR-9090]. 2013-11-02 22:35:40 +00:00
Alexey Milovidov
51b979078e dbms: SplittingAggregator: development [#METR-2944]. 2013-11-02 22:28:13 +00:00
Alexey Milovidov
943a4e0544 dbms: fixed error [#METR-9118]. 2013-10-31 18:20:52 +00:00
Sergey Fedorov
07bbedc07d dbms: added support for simple VIEW engine. [#METR-9076] 2013-10-30 13:52:02 +00:00
Alexey Milovidov
a38317e1f5 dbms: better exception messages [#METR-8224]. 2013-10-26 03:20:51 +00:00
Michael Kolupaev
491480e79c ClickHouse: fixed and claened up ARRAY JOIN a little. [#CONV-8821] 2013-10-21 11:33:25 +00:00
Alexey Milovidov
56d95e4268 dbms: optimized ORDER BY with LIMIT; rows_before_limit_at_least is temporarily broken [#CONV-2944]. 2013-09-16 05:44:47 +00:00
Alexey Milovidov
40464a0123 dbms: added new aggregation method [#CONV-2944]. 2013-09-15 10:53:10 +00:00
Alexey Milovidov
c69f353a17 dbms: added calculation of min/max [#CONV-8691]. 2013-09-07 02:03:13 +00:00
Alexey Milovidov
151506d742 dbms: added totals as separate data in JSON formats [#CONV-8366]. 2013-09-01 04:55:41 +00:00
Alexey Milovidov
c10d3a4bb9 dbms: Quota: development [#CONV-8459]. 2013-08-28 20:47:22 +00:00
Alexey Milovidov
3e7a073fdb dbms: fixed parametric aggregate functions in distributed query processing [#CONV-8223]. 2013-07-28 03:14:03 +00:00
Vyacheslav Alipov
56e947befb reorganized adding of MULTIPLE_ARRAY_JOIN action (appendArrayJoin) [#CONV-7967] 2013-07-26 16:33:05 +00:00
Alexey Milovidov
9af979adff dbms: improvement: using pre-LIMIT on remote servers when query is streaming [#CONV-2944]. 2013-06-29 20:32:33 +00:00
Alexey Milovidov
f38b00b36f dbms: Server: HTTP interface: allowed to specify default_format in URL parameter [#CONV-2944]. 2013-06-29 18:03:57 +00:00
Alexey Milovidov
fe0dd1d0b2 dbms: improvement [#CONV-2944]. 2013-06-21 20:34:19 +00:00
Michael Kolupaev
e7f40f25b3 clickhouse: fixed count() in some cases [#CONV-2944]. 2013-06-20 13:50:55 +00:00
Vyacheslav Alipov
7f91afaf20 limits for IN and DISTINCT [not tested] [#CONV-7934] 2013-06-20 12:12:27 +00:00
Vyacheslav Alipov
cbae7f6c44 added comments, fixed non-emptiness of SelectSampleBlock [#CONV-7906] 2013-06-19 13:09:28 +00:00
Vyacheslav Alipov
fee4726953 implemented using revision version [#CONV-7906] 2013-06-18 14:12:10 +00:00
Michael Kolupaev
c5a92790db clickhouse: fixed arrayJoin with distributed tables [#CONV-7444]. 2013-06-17 14:57:03 +00:00
Alexey Milovidov
c58339984b dbms: fixed duplicate DISTINCT [#CONV-7444]. 2013-06-08 21:18:13 +00:00
Michael Kolupaev
9942dcc9c8 clickhouse: removed obsolete code [#CONV-7444]. 2013-06-05 13:42:13 +00:00
Michael Kolupaev
e3ee5fdc1f clickhouse: removed Expression, fixed tests [#CONV-7444]. 2013-06-05 12:46:41 +00:00
Michael Kolupaev
dd72f5b8b8 clickhouse: switched to ExpressionAnalyzer [#CONV-7444]. 2013-06-03 10:18:41 +00:00
Alexey Milovidov
67f905dbc4 dbms: added DISTINCT [#CONV-7756]. 2013-06-01 07:43:57 +00:00
Alexey Milovidov
9848a42c82 dbms: fixed error [#CONV-7549]. 2013-05-31 17:34:30 +00:00
Alexey Milovidov
8e586d94c2 Using collation [#CONV-7651]. 2013-05-29 18:47:37 +00:00
Michael Kolupaev
0ecebb645d Expression replacement: development [#CONV-7444]. 2013-05-27 14:02:55 +00:00
Vyacheslav Alipov
8501644704 works with client now [#CONV-7549] 2013-05-22 14:57:43 +00:00
Vyacheslav Alipov
70a13e3812 works with HTTP requests [#CONV-7549] 2013-05-20 12:21:51 +00:00
Vyacheslav Alipov
066f9ffa7c rolled back to revision 31455 [#CONV-6778] 2013-05-08 09:58:31 +00:00
Vyacheslav Alipov
897f03017e fixed substitution launch condition [#CONV-6778] 2013-05-07 13:42:48 +00:00
Vyacheslav Alipov
c2d5749128 preserving original column names for distributed queries [#CONV-6778] 2013-05-07 10:30:52 +00:00
Alexey Milovidov
15b0ef253c dbms: added WITH TOTALS modifier for GROUP BY [#CONV-2944]. 2013-05-04 15:46:50 +00:00
Michael Kolupaev
d97d22919e Merge 2013-04-23 11:08:41 +00:00
Michael Kolupaev
d866ffbb91 clickhouse: slightly fixed subqueries with Distributed tables [#CONV-6822]. 2013-03-27 13:26:25 +00:00
Michael Kolupaev
164068ec35 clickhouse: slightly fixed subqueries with Distributed tables [#CONV-6822]. 2013-03-27 12:28:06 +00:00
Michael Kolupaev
1e338dbd6d clickhouse: fixed subqueries with Distributed tables [#CONV-6822]. 2013-03-27 12:04:48 +00:00
Alexey Milovidov
ad4e7c9da8 dbms: sending progress while processing subqueries [#CONV-2944]. 2013-02-16 14:55:14 +00:00
Alexey Milovidov
23ccc5c0a2 dbms: fixed error with passing settings to remote servers [#CONV-2944]. 2013-02-02 22:24:21 +00:00
Alexey Milovidov
7cc2871e30 dbms: allowed to send custom settings with query; sending current settings to remote servers for distributed query processing [#CONV-2944]. 2013-02-01 19:02:04 +00:00
Alexey Milovidov
7b3f533ecd Using own Field class instead of boost::variant (experimental) [#CONV-2944]. 2013-01-05 20:03:19 +00:00
Alexey Milovidov
24df661bdd dbms: development of limits [#CONV-2944]. 2012-12-26 20:29:28 +00:00
Alexey Milovidov
691782329a dbms: development of limits [#CONV-2944]. 2012-12-25 20:36:35 +00:00
Alexey Milovidov
c3cf6626e3 dbms: development of limits [#CONV-2944]. 2012-12-25 19:28:59 +00:00
Michael Kolupaev
42073f42ec clickhouse: added support for SAMPLE clause of SELECT query (works only in merge tree storage) [#6201]. 2012-12-12 14:25:55 +00:00
Alexey Milovidov
bf34570669 dbms: fixed subqueries [#CONV-2944]. 2012-11-07 19:56:21 +00:00
Alexey Milovidov
02b95a2297 dbms: improved distributed query processing [#CONV-2944]. 2012-10-30 20:15:07 +00:00
Alexey Milovidov
fa0dc68533 dbms: clearing temporary columns while executing query - improved performance (not tested) [#CONV-2944]. 2012-10-25 20:20:46 +00:00
Alexey Milovidov
c1f67a439d dbms: fixed error with filter (WHERE, HAVING) [#CONV-2944]. 2012-10-12 20:34:33 +00:00
Alexey Milovidov
44aa02f806 dbms: development [#CONV-2944]. 2012-08-27 05:13:14 +00:00
Alexey Milovidov
dff7453a3c dbms: development [#CONV-2944]. 2012-08-24 20:40:34 +00:00
Alexey Milovidov
fabe9889f2 dbms: development [#CONV-2944]. 2012-08-24 00:15:32 +00:00
Alexey Milovidov
f81223b22e dbms: development [#CONV-2944]. 2012-08-22 23:09:26 +00:00
Alexey Milovidov
8ea28ddd6e dbms: development [#CONV-2944]. 2012-08-22 20:29:01 +00:00
Alexey Milovidov
366f70b7f3 dbms: development [#CONV-2944]. 2012-08-20 19:21:04 +00:00
Alexey Milovidov
061a75785b dbms: development [#CONV-2944]. 2012-08-02 17:33:31 +00:00
Alexey Milovidov
c98f2f92ad dbms: development [#CONV-2944]. 2012-07-25 20:29:22 +00:00
Alexey Milovidov
d592cd13a3 dbms: development [#CONV-2944]. 2012-07-25 20:10:07 +00:00
Alexey Milovidov
2c69e7eb4a dbms: development [#CONV-2944]. 2012-06-25 07:26:58 +00:00
Alexey Milovidov
480b1c832e dbms: development [#CONV-2944]. 2012-06-25 03:56:45 +00:00
Alexey Milovidov
2fa3dae63c dbms: development [#CONV-2944]. 2012-06-25 03:01:37 +00:00
Alexey Milovidov
7112672bca dbms: development [#CONV-2944]. 2012-06-25 02:52:51 +00:00
Alexey Milovidov
f8800fdc21 dbms: development [#CONV-2944]. 2012-06-24 23:17:06 +00:00
Alexey Milovidov
fc476bf78e dbms: development [#CONV-5097]. 2012-06-22 15:39:13 +00:00
Alexey Milovidov
b4a40177ec dbms: development [#CONV-5097]. 2012-06-21 19:51:20 +00:00
Alexey Milovidov
6a01fbf8c5 dbms: development [#CONV-2944]. 2012-05-30 04:45:49 +00:00
Alexey Milovidov
f018ea4aac dbms: development [#CONV-2944]. 2012-05-30 01:38:02 +00:00
Alexey Milovidov
e727d7cf90 dbms: development [#CONV-2944]. 2012-05-22 18:32:45 +00:00
Alexey Milovidov
4217baebdf dbms: development [#CONV-2944]. 2012-05-09 13:12:38 +00:00
Alexey Milovidov
70b8947933 dbms: development [#CONV-2944]. 2012-03-11 08:52:56 +00:00
Alexey Milovidov
075f636bb3 dbms: development [#CONV-2944]. 2012-03-05 02:34:20 +00:00
Alexey Milovidov
7d9f303599 dbms: development [#CONV-2944]. 2012-03-05 00:09:41 +00:00
Alexey Milovidov
7fc40e1847 dbms: development [#CONV-2944]. 2012-02-27 07:54:16 +00:00
Alexey Milovidov
42abc4cebd dbms: development [#CONV-2944]. 2012-02-27 06:28:20 +00:00
Alexey Milovidov
997be7eea9 dbms: development [#CONV-2944]. 2012-01-10 22:11:51 +00:00
Alexey Milovidov
b9822b02b8 dbms: development [#CONV-2944]. 2012-01-09 19:20:48 +00:00
Alexey Milovidov
390f3b72ff dbms: development [#CONV-2944]. 2011-12-12 06:15:34 +00:00
Alexey Milovidov
c0a2326bf2 dbms: development [#CONV-2944]. 2011-11-28 06:12:45 +00:00
Alexey Milovidov
d6f20786b6 dbms: development [#CONV-2944]. 2011-11-28 05:51:33 +00:00
Alexey Milovidov
f93ff072ea dbms: development [#CONV-2944]. 2011-11-06 22:00:39 +00:00
Alexey Milovidov
58b98f6bd1 dbms: development [#CONV-2944]. 2011-11-06 21:23:23 +00:00
Alexey Milovidov
1f3f17a5e5 dbms: development [#CONV-2944]. 2011-11-06 04:21:09 +00:00
Alexey Milovidov
c0c2ca630d dbms: development [#CONV-2944]. 2011-11-06 02:29:13 +00:00
Alexey Milovidov
a5c139c325 dbms: development [#CONV-2944]. 2011-11-03 20:30:12 +00:00
Alexey Milovidov
859a86b382 dbms: development [#CONV-2944]. 2011-11-01 17:12:11 +00:00
Alexey Milovidov
bdf0aee3c6 dbms: development [#CONV-2944]. 2011-10-30 05:19:41 +00:00
Alexey Milovidov
70ff575fd9 dbms: development [#CONV-2944]. 2011-09-26 01:50:32 +00:00
Alexey Milovidov
6cccbca00a dbms: development [#CONV-2944]. 2011-09-25 06:42:59 +00:00
Alexey Milovidov
b979162b00 dbms: development [#CONV-2944]. 2011-09-25 03:37:09 +00:00
Alexey Milovidov
99c50640e9 dbms: development [#CONV-2944]. 2011-09-05 00:52:52 +00:00
Alexey Milovidov
d9aced1d0a dbms: development [#CONV-2944]. 2011-09-05 00:32:22 +00:00
Alexey Milovidov
2215bc9626 dbms: development [#CONV-2944]. 2011-09-04 05:14:52 +00:00
Alexey Milovidov
2d530f9b84 dbms: development [#CONV-2944]. 2011-08-28 08:02:11 +00:00
Alexey Milovidov
420e68e7c7 dbms: development [#CONV-2944]. 2011-08-28 05:13:24 +00:00