Commit Graph

746 Commits

Author SHA1 Message Date
Alexey Milovidov
79213536df dbms: fixed error [#METR-11220]. 2014-05-23 04:50:28 +04:00
Alexey Milovidov
0d92614971 dbms: fixed wrong code [#METR-10894]. 2014-05-23 04:35:49 +04:00
Alexey Milovidov
c815fe7a6f dbms: fixed error [#METR-11220]. 2014-05-23 04:35:14 +04:00
Alexey Milovidov
0f5e847172 dbms: fixed segfault in case of memory limit exceeded [#METR-11220]. 2014-05-22 22:58:41 +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
Sergey Fedorov
be9527f09f dbms: more read write functions for DataTypeAggregateFunction and ColumnAggregateFunction [METR-10894] 2014-05-22 18:09:10 +04:00
Pavel Kartavyy
ffde70b5c9 dbms: changed type when add column to nested from Array(NN) -> NN [#METR-11063] 2014-05-21 18:06:29 +04:00
Pavel Kartavyy
9d7e14fde2 clickhouse: bugfix [#METR-11063] 2014-05-21 18:06:29 +04:00
Sergey Fedorov
214e8aa9ea Merge 2014-05-21 17:30:42 +04:00
Alexey Milovidov
ef82f8fd75 dbms: Fixed error in prev. revision [#METR-11160]. 2014-05-20 23:30:39 +04:00
Pavel Kartavyy
5d1e8a5a3c clickhouse: check type of nested column [#METR-11063] 2014-05-20 19:44:46 +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
cd48cb6cba dbms: extracting columns list from select query for storage view [METR-11084] 2014-05-16 15:06:31 +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
Michael Kolupaev
728bdf4928 Merge 2014-05-13 15:24:16 +04:00
Michael Kolupaev
2765b93851 Merge 2014-05-13 14:16:33 +04:00
Michael Kolupaev
90e93b171d Merge 2014-05-13 14:10:26 +04:00
Alexey Milovidov
8198d86f5a dbms: fixed errors on clang [#METR-2807]. 2014-05-12 04:45:50 +04:00
Alexey Milovidov
3411b9fe68 dbms: TwoLevelHashTable: development [#METR-2944]. 2014-05-11 00:47:12 +04:00
Alexey Milovidov
f0792f0deb dbms: improved performance of aggregation and aggregate function uniq [#METR-2944]. 2014-05-10 09:17:08 +04:00
Alexey Milovidov
b5eb465f84 dbms: preparation [#METR-2944]. 2014-05-10 09:16:23 +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
Alexey Milovidov
4f1852c399 dbms: fixed error with 'replace running query' [#METR-2944]. 2014-05-03 23:52:35 +04:00
Alexey Milovidov
2b13e02d3c dbms: fixed error [#METR-2944]. 2014-05-03 20:03:49 +04:00
Alexey Milovidov
2dc708e70c dbms: experiments with hash tables [#METR-2944]. 2014-05-03 05:45:34 +04:00
Alexey Milovidov
b394bc5a61 dbms: experiments with hash tables [#METR-2944]. 2014-05-02 16:49:39 +04:00
Alexey Milovidov
c9831381e0 dbms: fixed error [#METR-2944]. 2014-05-01 19:02:36 +04:00
Alexey Milovidov
10fdfb2c9f dbms: tiny performance improvement [#METR-2944]. 2014-05-01 04:17:02 +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
bbbc5c2b69 dbms: unified hash tables: development [#METR-2944]. 2014-04-28 07:25:05 +04:00
Alexey Milovidov
4bf42ea6e6 dbms: unified hash tables: development [#METR-2944]. 2014-04-28 06:47:56 +04:00
Alexey Milovidov
8232983714 dbms: unified hash tables: development [#METR-2944]. 2014-04-28 05:48:24 +04:00
Michael Kolupaev
345b1bfb44 Merge 2014-04-22 14:41:53 +04:00
Pavel Kartavyy
521577dced dbms: fixed bug [#METR-10190] 2014-04-18 18:26:00 +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
Alexey Milovidov
813406b01b dbms: added line and column information in case of syntax error in multiline query [#METR-10728]. 2014-04-13 12:52:50 +04:00
Alexey Milovidov
b5c63dade9 Merge 2014-04-12 20:11:06 +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
Pavel Kartavyy
e0f8b97cf3 dbms: improvements [#METR-10498] 2014-04-09 13:05:36 +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
d9e931a8fe dbms: fixed Null pointer [#METR-10498] 2014-04-07 20:29:26 +04:00
Pavel Kartavyy
61ebb6ea34 fixed issue [#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
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
8a834d3025 dbms: added checking of max_query_size [#METR-10718]. 2014-04-04 06:27:01 +04:00
Alexey Milovidov
1246d54830 Merge 2014-04-03 20:23:31 +04:00
Michael Kolupaev
50ba6ca8e1 Merge 2014-04-03 16:49:01 +04:00
Pavel Kartavyy
765d0740f4 dbms: add support for drop nested columns [#METR-10550] 2014-04-03 15:46:31 +04:00
Alexey Milovidov
eb1e9ddbab dbms: removed useless memset, lowered default max_query_size [#METR-10718]. 2014-04-02 22:38:17 +04:00
Michael Kolupaev
233557ec72 Merge 2014-04-02 14:40:23 +04:00
Sergey Fedorov
fff1593bd9 dbms: Sending only required external tables to remote servers [METR-10071] 2014-04-01 18:06:58 +04:00
Sergey Fedorov
e426667931 dbms: fixes in create temporary table [METR-10071] 2014-04-01 17:41:03 +04:00
Alexey Milovidov
c12d5231dd dbms: fixed build [#METR-10616]. 2014-03-29 00:32:38 +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
Michael Kolupaev
852d35615c dbms: Fixed a bug. [#METR-10615] 2014-03-27 23:50:02 +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
Michael Kolupaev
634c33c766 Merge 2014-03-27 21:49:08 +04:00
Sergey Fedorov
0898ccfeb4 dbms: fixed merging errors [METR-10071] 2014-03-27 16:06:45 +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
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
cf25673606 expression analyzer: support "IN t" = "in select * from t" [METR-10071] 2014-03-27 16:06:45 +04:00
Sergey Fedorov
27f081a382 dbms: create temporary table query, external tables from stdin [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
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
Alexey Milovidov
966995b011 Fixed build [#METR-2807]. 2014-03-26 22:29:30 +04:00
Michael Kolupaev
262ffcd74b Fixed parametric aggregate functions in totals. [#METR-10566] 2014-03-25 22:16:40 +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
3a6d19d639 Removed unnecessary context lock during ALTER. [METR-10202] 2014-03-21 13:26:01 +03:00
Michael Kolupaev
280dd19e63 Fixed SELECT without table. [#METR-10202] 2014-03-20 21:05:22 +04:00
Michael Kolupaev
c5da5fd5f0 Merge 2014-03-20 17:00:42 +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
b8218d64b8 dbms: Fixed accidentially introduced error [#METR-10377]. 2014-03-12 22:20:03 +04:00
Alexey Milovidov
34ef806287 dbms: fixed error [#METR-10377]. 2014-03-12 21:15:14 +04:00
Alexey Milovidov
07b16db5b2 dbms: addition to prev. revision [#METR-2944]. 2014-03-10 18:49:36 +04:00
Alexey Milovidov
88058d9971 dbms: improved performance of short queries [#METR-2944]. 2014-03-10 16:25:37 +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
Alexey Milovidov
b04e4ccf08 dbms: probably better [#METR-10240]. 2014-03-07 06:10:36 +04:00
Pavel Kartavyy
6f5c19d4b4 dbms: fixed deadlock in alter modify [#METR-10242] 2014-03-05 22:20:55 +04:00
Pavel Kartavyy
631e315dea dbms: prohibited modification of any key column [#METR-10242] 2014-03-05 22:20:55 +04:00
Pavel Kartavyy
9ccf27f43e dbms: added modify to interpeter [#METR-10242] 2014-03-05 22:20:55 +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
Michael Kolupaev
789be91e46 clickhouse: fixed putting totals everywhere. [#METR-9365] 2014-03-04 11:59:38 +04:00
Alexey Milovidov
bd2be6023a dbms: don't log and use in processlist INSERT data [#METR-10258]. 2014-03-03 00:37:11 +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
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
Alexey Milovidov
fee77d6c98 dbms: Fixed error with incorrect handling of weird case (column names with whitespaces) [#METR-10225]. 2014-02-26 23:50:04 +04:00
Alexey Milovidov
ca5de685e5 dbms: fixed error with IN [#METR-10219]. 2014-02-26 20:37:27 +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
f5f95b7cd6 dbms: Cluster: improvement; TableFunctionRemote: allowed to omit port number [#METR-9750]. 2014-02-23 01:50:27 +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
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
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
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
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
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
Alexey Milovidov
0e5195727f dbms: updated test [#METR-2944]. 2014-02-03 03:09:50 +00:00
Alexey Milovidov
432ae961ca dbms: fixed error [#METR-2944]. 2014-02-02 10:42:56 +00:00
Alexey Milovidov
82b98ffb6d dbms: fixed error with ARRAY JOIN [#METR-9753]. 2014-01-29 19:00:19 +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
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