Commit Graph

496 Commits

Author SHA1 Message Date
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
295398e423 dbms: JOIN: development [#METR-11370]. 2014-06-12 06:31:30 +04:00
Alexey Milovidov
a1595ee591 Tiny modifications [#METR-11370]. 2014-06-12 05:22:49 +04:00
Alexey Milovidov
136ad3f5d3 dbms: removed garbage [#METR-11370]. 2014-06-12 04:56:43 +04:00
Alexey Milovidov
e19c4aedde dbms: tiny improved comments [#METR-11370]. 2014-06-12 02:36:55 +04:00
Sergey Fedorov
4fe8f37e03 Merge 2014-05-28 19:00:08 +04:00
Alexey Milovidov
0d92614971 dbms: fixed wrong code [#METR-10894]. 2014-05-23 04:35:49 +04:00
Sergey Fedorov
19d17ceb6c dbms: bool array instead of miltiple checking for final aggregate functions [METR-10894] 2014-05-22 18:22:54 +04:00
Pavel Kartavyy
b336d8057c clickhouse: alter nested columns [#METR-11063] 2014-05-20 19:44:46 +04:00
Alexey Milovidov
7f2d738498 dbms: fixed segfault in case of memory limit exceeded [#METR-11160]. 2014-05-19 23:41:56 +04:00
Sergey Fedorov
f5d07ed9dd dbms: fixed uninitialized variable in set.h [METR-11023] 2014-05-15 14:45:44 +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
Michael Kolupaev
2765b93851 Merge 2014-05-13 14:16:33 +04:00
Alexey Milovidov
8198d86f5a dbms: fixed errors on clang [#METR-2807]. 2014-05-12 04:45:50 +04:00
Alexey Milovidov
b5eb465f84 dbms: preparation [#METR-2944]. 2014-05-10 09:16:23 +04:00
Alexey Milovidov
95827e2dc2 dbms: improved performance of aggregation by string key [#METR-2944]. 2014-05-10 06:42:45 +04:00
Alexey Milovidov
82a44f8eec dbms: tiny improved performance of aggregation [#METR-2944]. 2014-05-10 05:37:12 +04:00
Alexey Milovidov
47afe8bd9c dbms: Aggregator: decomposed code to easier trying more aggregation methods; performance is suddenly improved up to 25%; fixed memory leak when exception while aggregating by KEYS_128 method [#METR-2944]. 2014-05-10 04:31:22 +04:00
Michael Kolupaev
be5a9cf820 Merge 2014-05-08 17:27:18 +04:00
Alexey Milovidov
0abc554493 dbms: tracking amount of memory usage per query [#METR-11015]. 2014-05-04 02:57:43 +04:00
Michael Kolupaev
4cee45e004 dbms: better optimization of ARRAY JOIN; tests for it. [#METR-11017] 2014-04-30 23:19:35 +04:00
Alexey Milovidov
fc8aa282c0 dbms: lowered default block size; introduced default insert block size [#METR-11014].. 2014-04-30 00:22:57 +04:00
Sergey Fedorov
add1b80d7a dbms: fixed global_in inside aggregate function. [METR-10974] 2014-04-29 20:53:01 +04:00
Alexey Milovidov
7d395ac826 dbms: unified hash tables: development [#METR-2944]. 2014-04-29 04:52:29 +04:00
Alexey Milovidov
897752de16 dbms: unified hash tables: development [#METR-2944]. 2014-04-29 04:28:18 +04:00
Alexey Milovidov
8232983714 dbms: unified hash tables: development [#METR-2944]. 2014-04-28 05:48:24 +04:00
Alexey Milovidov
b7092a7ab1 Merge 2014-04-28 00:47:28 +04:00
Sergey Fedorov
342592bffb dbms: exception if client sends settings in readonly mod, client loads settings also from config file [METR-10801] 2014-04-15 17:36:32 +04:00
Michael Kolupaev
f362d03611 Merge 2014-04-14 14:19:38 +04:00
Sergey Fedorov
39bdcbc819 client: all options from Limits.h could be set in client command line [METR-10801] 2014-04-10 21:07:57 +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
Pavel Kartavyy
d038e8631a dbms: improvements [#METR-10498] 2014-04-09 11:28:44 +04:00
Sergey Fedorov
ecc697cd2c Merge 2014-04-08 19:29:12 +04:00
Alexey Milovidov
63cff6a5a4 Improvement [#METR-2807]. 2014-04-08 11:58:53 +04:00
Alexey Milovidov
9dad91788b Improvement [#METR-2807]. 2014-04-08 11:47:51 +04:00
Alexey Milovidov
5ca21127c7 Improvement [#METR-2807]. 2014-04-08 11:31:51 +04:00
Michael Kolupaev
c96e421982 Merge 2014-04-07 23:25:05 +04:00
Michael Kolupaev
7d5429655a Merge 2014-04-07 23:10:14 +04:00
Alexey Milovidov
8411f2ae32 dbms: fixed error with INSERT more than MAX_BLOCK_SIZE via HTTP [#METR-10789]. 2014-04-07 23:08:47 +04:00
Pavel Kartavyy
3e61e7b7f6 dbms: improvements [#METR-10498] 2014-04-07 21:43:50 +04:00
Pavel Kartavyy
6ad275725e dbms: add desciption of in [#METR-10498] 2014-04-07 20:29:25 +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
Pavel Kartavyy
a737895eb4 build fix [#METR-10498] 2014-04-07 20:29:25 +04:00
Pavel Kartavyy
14168120f1 development [#METR-10498] 2014-04-07 20:29:25 +04:00
Alexey Milovidov
cf5a86434d dbms: fixed error when uncompressed_cache or marks_cache is not set [#METR-2944]. 2014-04-05 23:54:00 +04:00
Alexey Milovidov
4903752cd0 dbms: added support for 'point of view' argument of functions working with dictionaries [#METR-10713]. 2014-04-04 22:08:01 +04:00
Pavel Kartavyy
765d0740f4 dbms: add support for drop nested columns [#METR-10550] 2014-04-03 15:46:31 +04:00
Michael Kolupaev
233557ec72 Merge 2014-04-02 14:40:23 +04:00
Michael Kolupaev
8fc53a7020 Merge 2014-04-02 11:59:43 +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
Sergey Fedorov
6395e841f9 Merge 2014-03-28 18:36:24 +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
26848b6803 dbms: added pretty-formatting for GLOBAL IN; pedantic modifications in comments [#METR-10071]. 2014-03-27 21:58:25 +04:00
Michael Kolupaev
634c33c766 Merge 2014-03-27 21:49:08 +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
0c59630ddc temporary tables: support of sending temporary talbes from client to server via tcp client, all previous versions should work fine with new one [METR-10071] 2014-03-27 16:06:44 +04:00
Michael Kolupaev
262ffcd74b Fixed parametric aggregate functions in totals. [#METR-10566] 2014-03-25 22:16:40 +04:00
Alexey Milovidov
7cde6bb6a6 dbms: fixed error with hash tables [#METR-10571]. 2014-03-25 04:28:25 +04:00
Michael Kolupaev
7b6ce30656 Merge 2014-03-22 18:44:44 +04:00
Michael Kolupaev
36b152f2b1 Added interserver IO host and port to context. [#METR-10202] 2014-03-21 23:49:27 +04:00
Michael Kolupaev
7084f03ab9 Merge 2014-03-21 23:17:59 +04:00
Michael Kolupaev
750cb44f94 Merge 2014-03-21 17:42:14 +04:00
Alexey Milovidov
850876f191 dbms: unified hash tables: development [#METR-2944]. 2014-03-21 03:14:07 +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
4f46874933 added a couple of comments. [#METR-10202] 2014-03-19 15:44:41 +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
8c87b14c7f Fixed warnings on clang [#METR-2807]. 2014-03-10 08:17:17 +04:00
Alexey Milovidov
b04e4ccf08 dbms: probably better [#METR-10240]. 2014-03-07 06:10:36 +04:00
Alexey Milovidov
c6bee512eb Revert "temporary tables: support of sending temporary talbes from client to server via tcp client, all previous versions should work fine with new one [METR-10071]"
This reverts commit 6e6ca1f129b685e6271de1ccaf48a32f7e137d9e.
2014-03-04 23:01:22 +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
Sergey Fedorov
8d012adee3 temporary tables: support of sending temporary talbes from client to server via tcp client, all previous versions should work fine with new one [METR-10071] 2014-03-04 19:31:56 +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
Alexey Milovidov
413b7a3b52 dbms: probably fixed error [#METR-10223]. 2014-03-04 00:11:09 +04:00
Alexey Milovidov
f20d8967b1 dbms: tiny fix [#METR-2944]. 2014-03-02 23:36:53 +04:00
Alexey Milovidov
792e5cf3f7 Revert "temporary tables: new non-shared variable in context, function getTemporaryTable and update in getTable [METR-10071]"
This reverts commit de688967bb3be4296a3d94551a9a3cee100411f6.
2014-02-28 23:01:32 +04:00
Sergey Fedorov
4a03fea462 temporary tables: new non-shared variable in context, function getTemporaryTable and update in getTable [METR-10071] 2014-02-28 19:01:52 +04:00
Alexey Milovidov
6bfb411b51 dbms: fixed few tiny errors [#METR-10240]. 2014-02-28 05:06:44 +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
Michael Kolupaev
3ec260bad2 Added setting for totals mode. [#METR-9365] 2014-02-27 16:51:58 +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
Michael Kolupaev
8b6bac01b3 not writing processed config to temp file (there's usually not enough permissions to put it in a convenient place). [#METR-8956] 2014-02-24 16:53:21 +04:00
Alexey Milovidov
7ff4b92ee8 dbms: fixed error [#METR-8818]. 2014-02-23 02:48:45 +04:00
Alexey Milovidov
f5f95b7cd6 dbms: Cluster: improvement; TableFunctionRemote: allowed to omit port number [#METR-9750]. 2014-02-23 01:50:27 +04:00
Alexey Milovidov
a05dc756f8 Swapped two lines [#METR-2807]. 2014-02-22 21:53:42 +03:00
Alexey Milovidov
8e916ceeba dbms: Fixed NPE [#METR-8956]. 2014-02-22 00:02:57 +04:00
Alexey Milovidov
8efd6ee42c dbms: sending only set/changed settings [#METR-10087]. 2014-02-17 23:56:45 +00:00
Michael Kolupaev
25a33cdeed reverted accidentally committed changes. [#METR-8818] 2014-02-17 10:32:21 +00:00
Michael Kolupaev
228b2f6f8a clickhouse: client with string query_id now works with old-versioned server (probably for real this time). [#METR-8818] 2014-02-17 10:27:18 +00:00
Alexey Milovidov
4cc8906d91 dbms: improvement [#METR-2944]. 2014-02-16 21:02:20 +00:00
Alexey Milovidov
5f70be6bdb dbms: added comment [#METR-8956]. 2014-02-14 17:38:33 +00:00
Sergey Fedorov
a2aa16b4c1 dbms: empty query_id support [METR-8818] 2014-02-14 15:59:01 +00:00
Sergey Fedorov
5c8db01a97 settings, process_list: set function for replace_running_query option, correct hashmap erasing in process_list [METR-8818] 2014-02-14 14:27:25 +00:00
Sergey Fedorov
b101457183 client: client with string query_id now works with old-versioned server [METR-8818] 2014-02-14 13:22:45 +00:00
Michael Kolupaev
1b7ed4dba1 clickhouse-server: loading users, profiles and quotas form separate config file. [#METR-8956] 2014-02-13 07:17:22 +00:00
Sergey Fedorov
c74a21d4fc dbms: renamed variable, more accurate erasing from hashmap [METR-8818] 2014-02-12 17:44:48 +00:00
Sergey Fedorov
b75fe2f6eb dbms: query Id is String valued now, show process list also shows query_id, query_id is stored in processlist, now query could be replaced [METR-8818] 2014-02-12 17:31:02 +00:00
Sergey Fedorov
32634e018f table functions: remote now support username and password [METR-9750] 2014-02-11 17:11:57 +00:00
Michael Kolupaev
92d8bdda28 Merge 2014-02-11 13:30:42 +00:00
Alexey Milovidov
3ace33c0bc dbms: tiny fix in comment [#METR-2944]. 2014-02-09 21:22:54 +00:00
Sergey Fedorov
392b960ade storages: virtual column support functions [METR-9172] 2014-02-08 16:49:45 +00:00
Sergey Fedorov
325cc47ca5 table functions: implementation of function remote, updates in cluster and storageDistributed [METR-9750] 2014-02-07 15:11:57 +00:00
Alexey Milovidov
47537c1f84 dbms: fixed error [#METR-2944]. 2014-02-03 04:00:56 +00:00
Alexey Milovidov
2b2c765e99 dbms: fixed error [#METR-2944]. 2014-02-03 00:49:24 +00:00
Alexey Milovidov
3f8bb84690 dbms: fixed error [#METR-2944]. 2014-02-02 11:16:46 +00:00
Alexey Milovidov
432ae961ca dbms: fixed error [#METR-2944]. 2014-02-02 10:42:56 +00:00
Alexey Milovidov
0fe0e21c4b dbms: added aggregate function uniqExact [#METR-2944]. 2014-02-02 09:08:06 +00:00
Alexey Milovidov
6da9c1fc5d dbms: rearranged code [#METR-2944]. 2014-02-02 06:09:30 +00:00
Pavel Kartavyy
92d5a9c302 dbms: added default_sample [#METR-9464] 2014-01-28 19:26:39 +00:00
Pavel Kartavyy
f17494744c dbms: add settings default sample [#METR-9464] 2014-01-28 19:26:37 +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
91609727a8 Merge 2014-01-10 13:24:50 +00:00
Alexey Milovidov
9c4043de67 Removed 'tr1' [#METR-2807]. 2014-01-08 16:33:28 +00:00
Alexey Milovidov
b9d6fc48eb dbms: tiny modification [#METR-2944]. 2014-01-03 09:06:42 +00:00
Alexey Milovidov
6e359ab5c5 Addition to prev. revision [#METR-2944]. 2013-12-27 18:01:53 +00:00
Alexey Milovidov
377d42c17e dbms: tiny improvement [#METR-2944]. 2013-12-27 17:43:36 +00:00
Sergey Fedorov
d2fe6e0fa9 dbms: update in expression analyzer, now * is only for virtual columns 2013-12-27 14:11:11 +00:00
Pavel Kartavyy
e78d87d9f3 dbms: added message [#METR-9462] 2013-12-26 09:42:32 +00:00
Pavel Kartavyy
4a3827cd96 dbms: development [#METR-9462] 2013-12-24 14:00:18 +00:00
Alexey Milovidov
8d53dcde32 dbms: improved performance for small queries [#METR-8582]. 2013-12-16 02:32:00 +00:00
Pavel Kartavyy
b64633e2a0 dbms: enable to write like: Set load_balancing = 'nearest_hostname' [#METR-9350] 2013-12-11 11:51:08 +00:00
Pavel Kartavyy
b9caf82430 dbms: added nearest_host mode to ConnectionPoolWithFailover [#METR-9350] 2013-12-10 17:07:09 +00:00
Pavel Kartavyy
cc3882b81f dbms: added load_balancing to settings [#METR-9350] 2013-12-10 17:07:06 +00:00
Pavel Kartavyy
ec2e5ff860 dbms: create cluster when distributed tables are created[#METR-9350] 2013-12-10 17:06:57 +00:00
Pavel Kartavyy
c22fb0ac12 dbms: fix config[#METR-9350] 2013-12-10 09:35:30 +00:00
Pavel Kartavyy
278f5a9246 dbms: added Cluster class [#METR-9350] 2013-12-07 16:51:29 +00:00
Alexey Milovidov
4eb7ba0e60 dbms: more clear code [#METR-2944]. 2013-11-29 22:10:15 +00:00
Alexey Milovidov
beaf9c100c dbms: reverted incomplete modification [#METR-2944]. 2013-11-19 20:12:10 +00:00
Alexey Milovidov
bcede415a9 dbms: improvement for small blocks [#METR-2944]. 2013-11-17 21:52:09 +00:00
Sergey Fedorov
13bd27c498 dbms: View and Materialized View fixes, logic updates, implementation [#METR-9076] 2013-11-13 14:39:48 +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
b3a5b32f50 dbms: SplittingAggregator: development [#METR-2944]. 2013-11-04 00:07:50 +00:00
Alexey Milovidov
c252785d2a dbms: additional performance improvement [#METR-2944]. 2013-11-03 23:54:12 +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
9437657b7b dbms: modified Limits, Quotas, Progress, ProcessList [#METR-8459], [#METR-8894]. 2013-11-03 05:32:42 +00:00
Alexey Milovidov
b859718d26 dbms: calculating quota for each user separately [#METR-8459]. 2013-11-03 00:24:46 +00:00
Alexey Milovidov
4fd9671aba dbms: SplittingAggregator: translating exceptions from threads [#METR-2944]. 2013-11-02 23:42:52 +00:00
Alexey Milovidov
bfd9038acc dbms: better [#METR-2944]. 2013-11-02 03:56:17 +00:00