Commit Graph

343 Commits

Author SHA1 Message Date
Alexey Arno
8410736612 dbms: Server: Correctly handle backward linking of SELECT queries inside UNION ALL. [#METR-16778] 2015-07-11 03:44:45 +03:00
Alexey Arno
10b695465a dbms: Server: Fixed the bug in a much nicer way: InterpreterSelectQuery does not split anymore its AST. [#METR-16778] 2015-07-10 21:26:46 +03:00
Alexey Milovidov
0719320758 dbms: improvement [#METR-2944]. 2015-06-18 05:11:05 +03:00
Alexey Milovidov
51be2693ee dbms: addition to SETTINGS [#METR-16354]. 2015-06-06 23:00:08 +03:00
Alexey Milovidov
854a2f4cc8 dbms: added optional section SETTINGS to SELECT query [#METR-16354]. 2015-06-06 00:28:04 +03:00
Alexey Milovidov
0984363b9c dbms: removed passing DataTypeFactory everywhere [#METR-16545]. 2015-05-28 06:49:28 +03:00
Alexey Milovidov
566b62854b dbms: more unform distribution of work among threads (experimental) [#METR-2944]. 2015-05-11 03:11:22 +03:00
Alexey Milovidov
c57063be27 Merge 2015-05-07 02:35:54 +03:00
Alexey Milovidov
a5afb7a863 dbms: cut dependency [#METR-2944]. 2015-05-07 02:35:37 +03:00
Alexey Arno
8ff005e909 dbms: Server: Fixed incorrect behavior with the DISTINCT keyword [#METR-14408] 2015-05-05 17:02:57 +03:00
Alexey Arno
14823c82a5 dbms: Server: Added comment. [#METR-15354] 2015-04-30 16:00:56 +03:00
Alexey Arno
999bc75dfe dbms: Server: Removed unneeded optimization (ii). [#METR-14408] 2015-04-23 16:16:42 +03:00
Alexey Arno
7a755007eb dbms: Server: Removed unneeded optimization. [#METR-14408] 2015-04-23 16:09:43 +03:00
Alexey Arno
a15052e0e6 Merge 2015-04-23 15:57:39 +03:00
Alexey Arno
80850909c7 Merge 2015-04-23 14:07:15 +03:00
Alexey Arno
543afcf58f dbms: Server: More correct logic. It does not change functionality, but it adds coherency. [#METR-14408] 2015-04-22 01:28:42 +03:00
Alexey Arno
5136ffb2a6 dbms: Server: Simplified code. [#METR-14408] 2015-04-21 18:12:08 +03:00
Alexey Arno
8a317f076d Merge 2015-04-17 16:56:29 +03:00
Alexey Milovidov
114b3de689 dbms: cut dependencies [#METR-2944]. 2015-04-16 09:12:35 +03:00
Alexey Milovidov
0535438ea4 dbms: fixed bad code with GLOBAL operations [#METR-15144]. 2015-03-15 11:05:28 +03:00
Alexey Milovidov
db2956eb73 dbms: removing duplicate elements from ORDER BY [#METR-2944]. 2015-03-12 06:31:15 +03:00
Alexey Milovidov
ae4c458c5b dbms: more uniform distribution of work among threads [#METR-2944]. 2015-03-08 01:00:58 +03:00
Alexey Milovidov
b6f4d3d3e8 dbms: added setting 'group_by_two_level_threshold' for fine tuning [#METR-2944]. 2015-02-22 08:51:16 +03:00
Alexey Arno
b5105ecdf7 dbms: Server: fixed bug in UNION ALL [#METR-15077] 2015-02-13 14:40:58 +03:00
Alexey Arno
e8902aa644 dbms: Server: queries with several replicas: fixes [#METR-14410] 2015-02-09 01:37:55 +03:00
Alexey Arno
35356191c9 dbms: Server: queries with several replicas: development [#METR-14410] 2015-02-03 16:36:33 +03:00
Alexey Arno
28570a12ce dbms: Server: queries with several replicas: development [#METR-14410] 2015-02-03 16:36:13 +03:00
Alexey Arno
e86abf0311 dbms: Server: queries with several replicas: development [#METR-14410] 2015-02-03 16:36:12 +03:00
Alexey Milovidov
ee98a3babc dbms: fixed error with 'max_distributed_connections = 1' [#METR-14855]. 2015-02-01 11:02:18 +03:00
Alexey Milovidov
d7e8251ad2 dbms: fixed error with IN [#METR-14678]. 2015-01-22 23:56:40 +03:00
Alexey Milovidov
9947387bef dbms: added distributed sorting [#METR-2944]. 2015-01-18 11:27:28 +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
Alexey Milovidov
a7a988bdc3 dbms: removed setting asynchronous (useless, obsolete) [#METR-2944]. 2015-01-13 03:36:26 +03:00
Alexey Milovidov
1f3e691fff dbms: addition to prev. revision [#METR-2944]. 2015-01-13 03:11:47 +03:00
Alexey Milovidov
ba732b6ba3 dbms: removed SplittingAggregator [#METR-2944]. 2015-01-13 03:08:36 +03:00
Alexey Milovidov
a7a2712630 dbms: compiled aggregator: development [#METR-2944]. 2015-01-10 05:30:03 +03:00
Alexey Milovidov
41a7fc50d6 dbms: added support for external sorting [#METR-2944]. 2015-01-07 20:19:23 +03:00
Alexey Milovidov
8620b80d99 dbms: fixed collations; preparation to external sorting [#METR-2944]. 2015-01-07 18:30:11 +03:00
Alexey Milovidov
6212e7080b dbms: more scalable aggregator: development [#METR-2944]. 2015-01-03 09:49:32 +03:00
Alexey Milovidov
221efeb82a dbms: more scalable aggregator: development [#METR-2944]. 2015-01-03 06:18:49 +03:00
Alexey Arno
2cdffef31c dbms: Server: minimize the number of calls to executeUnion(). [#METR-14099] 2014-12-27 00:37:38 +03:00
Alexey Arno
b288819e2e dbms: Server: add small performance improvement. [#METR-14099] 2014-12-26 13:35:03 +03:00
Alexey Arno
42b09c417e dbms: Server: fix style. [#METR-14099] 2014-12-25 19:09:23 +03:00
Alexey Arno
461954f17a dbms: Server: fix typo. [#METR-14099] 2014-12-25 18:29:22 +03:00
Alexey Arno
627143a537 dbms: Server: more optimizations, fixed indentation. [#METR-14099] 2014-12-25 18:27:03 +03:00
Alexey Arno
d52d26dcb5 dbms: Server: more optimizations. [#METR-14099] 2014-12-25 18:27:03 +03:00
Alexey Arno
ae2fb27f9b dbms: Server: add optimization for UNION ALL queries that do not contain wildcards. [#METR-14099] 2014-12-25 18:27:03 +03:00
Alexey Arno
70d01a1696 dbms: Server: fixed function names according to naming convention, added more comments and functional tests. [#METR-14099] 2014-12-25 13:22:24 +03:00
Alexey Arno
82913caa2a dbms: Server: update comments. [#METR-14099] 2014-12-24 18:30:15 +03:00
Alexey Arno
3cc4410c50 dbms: Server: add more optimizations and refactoring in InterpreterSelectQuery initialization. [#METR-14099] 2014-12-24 18:30:15 +03:00
Alexey Arno
008668b3da dbms: Server: add optimization in InterpreterSelectQuery initialization. [#METR-14099] 2014-12-24 18:30:15 +03:00
Alexey Arno
b0256d0990 dbms: Server: Remove boilerplate code. [#METR-14099] 2014-12-24 18:30:15 +03:00
Alexey Arno
9c9db14d95 dbms: Server: second part of the fix for column renaming in UNION ALL queries. [#METR-14099] 2014-12-24 18:30:14 +03:00
Alexey Arno
ece876f05d dbms: Server: add first part of a fix for column renaming in UNION ALL queries. 2014-12-24 18:30:14 +03:00
Alexey Arno
3cd60f0aef Merge 2014-12-20 00:26:08 +03:00
Alexey Arno
28055dde55 dbms: Server: fixed typo in function declaration [#METR-14408] 2014-12-20 00:19:48 +03:00
Alexey Milovidov
41a005ba73 dbms: style [#METR-2944]. 2014-12-19 21:33:30 +03:00
Alexey Arno
5d23310cea dbms: Server: execute queries from views with as most parallelism as possible [#METR-14408] 2014-12-19 18:56:12 +03:00
Alexey Arno
d5c8b52f7c dbms: Server: added better diagnostic in union all type mismatch exceptions. [#METR-14099] 2014-12-19 16:10:48 +03:00
Alexey Arno
84456a08c3 dbms: Server: rewrite expression lists in each SELECT query of the UNION ALL chain, if needed. [#METR-14099] 2014-12-19 16:10:48 +03:00
Alexey Arno
747d2211d6 Remove code that turned out to be redudant. [#METR-14099] 2014-12-17 23:57:21 +03:00
Alexey Arno
d086e8d43a Code cleanup. [#METR-14099] 2014-12-17 18:56:58 +03:00
Alexey Arno
2dc47c39d5 Update functional tests. Add materialization in UNION ALL queries. [#METR-14099] 2014-12-17 18:56:58 +03:00
Alexey Arno
e363d57e35 Code cleanup. [#METR-14099] 2014-12-17 18:56:52 +03:00
Alexey Arno
09471634b5 Update functional tests. Add materialization in UNION ALL queries. [#METR-14099] 2014-12-17 18:56:52 +03:00
Alexey Arno
d29f019981 Apply required fixes [#METR-14099] 2014-12-17 18:56:52 +03:00
Alexey Arno
f8cb28cf07 Apply required fixes [#METR-14099]. 2014-12-17 18:56:52 +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
Alexey Arno
8cdc779c9c Add fix: temporarily turn off UNION ALL support for SELECT queries because it breaks functional tests. [#METR-14099] 2014-12-16 15:06:51 +03:00
Alexey Arno
50e4692b30 Fix typo [#METR-14099]. 2014-12-15 19:07:50 +03:00
Alexey Arno
819b3bd6ac Code cleanups [#METR-14099]. 2014-12-15 19:07:50 +03:00
Alexey Arno
9dd48cbf36 Simplify code [#METR-14099]. 2014-12-15 19:07:50 +03:00
Alexey Arno
53318492a0 Add optimization in InterpreterSelectQuery that tries to minimize quantity of stream mergings. 2014-12-15 19:07:50 +03:00
Alexey Arno
c58030d339 Code cleanup 2014-12-15 19:07:49 +03:00
Alexey Arno
8995500f14 Add initial support for SELECT requests chained by UNION ALL. 2014-12-15 19:07:49 +03:00
Andrey Mironov
731be3e7cf Merge 2014-11-12 13:37:47 +03:00
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