Commit Graph

665 Commits

Author SHA1 Message Date
Vladimir Smirnov
d36f52502e Make it compilable on OS X
It's still hackish and dirty, but server and client compies.

Server starts, but throwes meaningless exception on any query.

Client seems to be working fine.

Linux compilation might (but shouldn't) be broken (not tested).
2016-11-01 17:59:21 +01:00
Alexey Milovidov
5d394a20a1 MergeSelector: changed logic of selection of parts for OPTIMIZE (more like it was before) [#METR-21841]. 2016-11-01 18:22:04 +03:00
Alexey Milovidov
a3a8b49e80 MergeSelector: development [#METR-21841]. 2016-11-01 14:26:36 +03:00
Alexey Milovidov
91dbf74ac0 MergeSelector: development [#METR-21841]. 2016-11-01 11:38:55 +03:00
Alexey Milovidov
933c8f3d68 MergeSelector: development [#METR-21841]. 2016-11-01 01:53:54 +03:00
Alexey Milovidov
573a84c89a MergeSelector: development [#METR-21841]. 2016-10-31 22:45:22 +03:00
Alexey Milovidov
49602c44a9 MergeSelector: development [#METR-21841]. 2016-10-31 22:32:08 +03:00
Alexey Milovidov
4fd7183049 MergeSelector: fixed error [#METR-21841]. 2016-10-31 22:11:09 +03:00
Alexey Milovidov
89328b498f MergeSelector: development [#METR-21841]. 2016-10-31 08:35:29 +03:00
Alexey Milovidov
bee00bfcfc MergeSelector: development [#METR-21841]. 2016-10-30 14:05:45 +03:00
Alexey Milovidov
a832a8cd71 MergeSelector: development [#METR-21840]. 2016-10-30 11:54:27 +03:00
Alexey Milovidov
4dec8babf1 MergeSelector: development [#METR-21840]. 2016-10-30 11:47:47 +03:00
Alexey Milovidov
bab6e9ea22 MergeSelector: development [#METR-21840]. 2016-10-30 11:32:05 +03:00
Alexey Milovidov
1b2bbcd359 MergeSelector: development [#METR-21840]. 2016-10-30 11:25:07 +03:00
Alexey Milovidov
ba48688f25 MergeSelector: development [#METR-21840]. 2016-10-30 11:15:55 +03:00
Alexey Milovidov
c5c63bdf5d MergeSelector: development [#METR-21840]. 2016-10-30 06:39:28 +03:00
Alexey Milovidov
3d48f9d34b MergeSelector: development [#METR-21840]. 2016-10-30 06:12:25 +03:00
Alexey Milovidov
b5156a115d Additions [#METR-21504]. 2016-10-28 02:28:35 +03:00
Alexey Milovidov
74c3b30622 dbms: Simplified logic of selecting merges [#METR-21841]. 2016-10-28 01:50:02 +03:00
Alexey Milovidov
15b369bd08 More instrumentation [#METR-23272]. 2016-10-24 16:47:15 +03:00
Alexey Milovidov
9a3deed1ea Added metric about leadership [#METR-23272]. 2016-10-24 15:46:54 +03:00
Alexey Milovidov
2dd43be6e6 Don't hold shared_ptr to zookeeper for long time, because it makes very difficult to remove ephemeral nodes in case of temporary communication errors and thus breaks leader election [#METR-23272]. 2016-10-24 15:34:08 +03:00
Alexey Milovidov
ea852bb9d8 Separate compilation of CurrentMetrics; Separated AsynchronousMetrics from CurrentMetrics; Comments [#METR-23237]. 2016-10-24 07:06:27 +03:00
Alexey Milovidov
9af5ce1e3b Separate compilation of ProfileEvents; comments [#METR-23237]. 2016-10-24 05:02:37 +03:00
Alexey Milovidov
4d9b3fd3ee Better [#METR-23198]. 2016-10-23 13:59:53 +03:00
Alexey Milovidov
afcd933237 Probably better [#METR-23198]. 2016-10-23 06:46:51 +03:00
Alexey Arno
a75cfb6df5 Merge branch 'master' into METR-19266 [#METR-19266] 2016-10-21 19:53:35 +03:00
Alexey Milovidov
15bf61c367 Fixed part of error [#METR-23198]. 2016-10-21 04:44:57 +03:00
Alexey Arno
3792a9f302 dbms: Server: fixes [#METR-19266] 2016-10-20 13:13:07 +03:00
Alexey Arno
6c40d9b51e dbms: Server: fixes [#METR-19266] 2016-10-19 21:18:02 +03:00
Yuri Dyachenko
297a1547c5 more usable settings for delayed insert. issue: #METR-22563 2016-10-19 20:58:27 +03:00
Alexey Arno
924402f33e dbms: Server: merged from master [#METR-19266] 2016-10-19 18:00:56 +03:00
Alexey Arno
b5ff08bce6 dbms: Server: semantic cleanup [#METR-19266] 2016-10-19 10:15:26 +03:00
alexey-milovidov
fad9272161 Merge pull request #137 from ludv1x/METR-22471
Fixed std::terminate on DROP of StorageReplicatedMergeTree
2016-10-14 23:28:39 +04:00
Vitaliy Lyudvichenko
3120b06c02 Small enhancement and typos fixes. 2016-10-14 21:00:55 +03:00
Vitaliy Lyudvichenko
669e2982a5 Made merge_selecting_thread creation & deletion atomic. [#METR-22471] 2016-10-14 14:47:11 +03:00
Vitaliy Lyudvichenko
aa863ea7bb Fixed std::terminate on DROP of StorageReplicatedMergeTree. [#METR-22471] 2016-10-14 13:17:05 +03:00
Alexey Milovidov
dce56bfeba Implemented TODO [#METR-23132]. 2016-10-14 05:51:03 +03:00
Alexey Milovidov
6b2755bf2a Non significant change [#METR-2944]. 2016-09-23 23:33:06 +03:00
Alexey Arno
bd73b2d165 dbms: Server: Adding nullable type support to functions manipulating arrays. [#METR-19266] 2016-09-15 15:14:25 +03:00
Alexey Milovidov
469eebe4f0 Investigation [#METR-2944]. 2016-09-04 20:12:07 +03:00
Alexey Arno
443613c153 dbms: Fixed bug in ALTER TABLE ... MODIFY COLUMN. [#METR-19622] 2016-09-02 18:43:43 +03:00
Alexey Milovidov
344e975a59 Temporarily improvement [#METR-22608]. 2016-09-02 03:58:18 +03:00
Alexey Arno
91b20fe7ad dbms: Disabled check because it is unreliable. A better solution is needed. [#METR-18510] 2016-09-01 17:40:02 +03:00
Alexey Arno
2b3a87b7c6 dbms: Catch missing parameter [#METR-18510] 2016-09-01 13:53:50 +03:00
Alexey Milovidov
0db84044e5 Better [#METR-22608]. 2016-09-01 05:26:45 +03:00
Alexey Arno
9528405fe4 dbms: Extended CAST to nullable types. Added ALTER TABLE ... MODIFY COLUMN ... for nullable types. A column with a nullable type can have a default value in CREATE TABLE. [#METR-19266] 2016-08-29 19:57:59 +03:00
Alexey Milovidov
867b73b6b0 Fixed error with cancelling merges on ALTERs [#METR-22524]. 2016-08-26 22:50:04 +03:00
Alexey Arno
cd0541134a dbms: post-testing fixes [#METR-19266] 2016-08-24 03:39:38 +03:00
Alexey Arno
2a5abb17be dbms: cleanup [#METR-19266] 2016-08-19 15:01:10 +03:00
Alexey Arno
7a4683140e dbms: cleanup [#METR-19266] 2016-08-19 12:08:48 +03:00
Alexey Arno
eb98892e61 dbms: cleanup [#METR-19266] 2016-08-18 20:08:05 +03:00
Alexey Arno
22dc2f96a1 dbms: cleanup [#METR-19266] 2016-08-18 19:11:20 +03:00
Alexey Arno
e513df2e5c dbms: reverted change (was bogus) [#METR-19266] 2016-08-15 20:26:06 +03:00
Alexey Milovidov
0cf32c8aed Renamed method [#METR-22400]. 2016-08-13 05:21:17 +03:00
Alexey Milovidov
d5ad347532 Fixed probable source of race conditions [#METR-22327]. 2016-08-12 08:20:06 +03:00
Alexey Arno
9896c8ce78 dbms: Merged from master [#METR-19266] 2016-08-11 17:15:27 +03:00
Alexey Arno
f5d9d0ebc9 Merge branch 'master' into METR-19266 [#METR-19266] 2016-08-10 22:13:15 +03:00
Alexey Arno
e2b6e10ec1 dbms: Various fixes + more comments [#METR-19266] 2016-08-10 22:12:29 +03:00
Alexey Milovidov
f129e94429 Fixed warnings on clang [#METR-2944]. 2016-08-07 19:17:57 +03:00
Alexey Arno
531ff3d5ac dbms: Merged with master [#METR-19266] 2016-08-05 18:44:19 +03:00
Alexey Milovidov
d7ce4dd410 Better grepability [#METR-22173]. 2016-08-03 23:25:09 +03:00
Alexey Milovidov
6cf89fa915 Attempt to not interrupt merges when ZK session is reinitialized [#METR-22283]. 2016-08-02 21:33:55 +03:00
Alexey Milovidov
9a07830dbb Removed useless code (experimental) [#METR-2944]. 2016-08-02 04:46:05 +03:00
Alexey Milovidov
6f4fc79cde Better [#METR-2944]. 2016-07-31 06:53:16 +03:00
Alexey Arno
1fe6786b78 dbms: NULL support for MergeTree [#METR-19266] 2016-07-24 22:32:21 +03:00
Alexey Milovidov
130ec8b58b Compatibility with new parser and AST of tables list [#METR-2944]. 2016-07-22 23:39:28 +03:00
Alexey Arno
beeeb0ab13 dbms: NULL support for MergeTree [#METR-19266] 2016-07-21 19:22:24 +03:00
Alexey Arno
252d7994e7 dbms: cleanup [#METR-19266] 2016-07-19 13:57:57 +03:00
Alexey Milovidov
55ed2904f4 Allowed for certain aggregate functions to have case insensitive names for compatibility [#METR-22087]. 2016-07-14 08:22:09 +03:00
Alexey Milovidov
5ded454986 Added 'WITH NAME' section to ALTER TABLE ... FREEZE PARTITION query [#METR-21884]. 2016-06-28 23:50:37 +03:00
Alexey Milovidov
b8ca97a891 Added check for constants in primary key [#METR-2944]. 2016-06-21 20:06:12 +03:00
Alexey Milovidov
e8ffd48e49 Loosen safety threshold on amount of ALTER changes [#METR-21615]. 2016-06-06 22:50:30 +03:00
Alexey Milovidov
168ca22435 Fixed error when too long merges cannot be successful [#METR-21616]. 2016-06-06 22:16:34 +03:00
Alexey Milovidov
a4a543f1c3 Merge branch 'master' of github.com:yandex/ClickHouse 2016-05-30 21:24:35 +03:00
Alexey Milovidov
d03d19ab57 Updated comment [#METR-2944]. 2016-05-30 21:24:19 +03:00
Alexey Milovidov
7651dcbc0a Fixed error after moving to non-recursive mutex [#METR-21503]. 2016-05-30 04:16:22 +03:00
Alexey Milovidov
c518abe882 Get rid of Poco::SharedPtr [#METR-21503]. 2016-05-28 20:31:50 +03:00
Alexey Milovidov
8c4abcdd43 Using std::shared_ptr for functions and AST [#METR-21503]. 2016-05-28 18:42:22 +03:00
Alexey Milovidov
3c1c9d46f7 Using std::shared_ptr for data types [#METR-21503]. 2016-05-28 15:22:22 +03:00
Alexey Milovidov
4c7eb03b63 Using std::shared_ptr for data types [#METR-21503]. 2016-05-28 13:35:44 +03:00
Alexey Milovidov
6863e72f3d Using std::shared_ptr for data types [#METR-21503]. 2016-05-28 13:15:36 +03:00
Alexey Milovidov
be394f2c84 Using std::shared_ptr for data types [#METR-21503]. 2016-05-28 10:48:40 +03:00
Alexey Milovidov
4b7f461e46 Using std::shared_ptr for columns [#METR-21503]. 2016-05-28 08:31:36 +03:00
Alexey Milovidov
f2ccbc9802 Better exception message [#METR-21479]. 2016-05-26 00:35:57 +03:00
Vladimir Chebotarev
866c8929e2 dbms, contrib: GCC 6 build fixes [#METR-20000] 2016-05-23 03:41:26 +03:00
Alexey Milovidov
c4407306d5 Always materialize columns while merge [#METR-21119]. 2016-05-18 05:49:52 +03:00
Alexey Milovidov
8f50b30268 Alter primary key: development [#METR-21119]. 2016-05-18 00:07:10 +03:00
Alexey Milovidov
9a60b90941 Alter primary key: development [#METR-21119]. 2016-05-17 23:11:43 +03:00
Alexey Milovidov
bf265e264a Alter primary key: development [#METR-21119]. 2016-05-17 02:04:03 +03:00
Alexey Milovidov
2f1fead382 Merge 2016-05-16 21:47:34 +03:00
Alexey Milovidov
093f69c45d Added support for FINAL and PARTITION specification for OPTIMIZE query [#METR-21326]. 2016-05-16 21:43:38 +03:00
Alexey Milovidov
6942819013 Altering primary key [#METR-21119]. 2016-05-14 00:08:19 +03:00
Alexey Milovidov
e37ffe7c3d Tiny modification [#METR-2944]. 2016-05-13 06:23:23 +03:00
Alexey Milovidov
65de71b5a2 Added table function 'shardByHash' [#METR-21287]. 2016-05-13 06:22:16 +03:00
Alexey Milovidov
83df6fdf23 Merge 2016-05-04 22:01:26 +03:00
Alexey Milovidov
07f04d70d3 Merge 2016-04-24 12:44:47 +03:00
Alexey Milovidov
55b580f882 More profile events [#METR-2944]. 2016-04-23 05:39:40 +03:00
Alexey Arno
3d9dc30e8c dbms: Added more fault tolerance [#METR-18510] 2016-04-21 17:58:25 +03:00
Alexey Milovidov
cff1004f04 Lowered batch size in pullLogsToQueue [#METR-21013]. 2016-04-21 00:24:12 +03:00
Alexey Milovidov
c6722da2b2 Merge 2016-04-19 00:38:06 +03:00
Alexey Milovidov
c43b34d3f0 Added function 'indexHint' [#METR-20940]. 2016-04-16 02:10:29 +03:00
Alexey Milovidov
a5d7c41253 Addition [#METR-20644]. 2016-04-15 23:11:03 +03:00
Alexey Milovidov
9f3d9277af Addition to prev. revision [#METR-20644]. 2016-04-15 22:55:07 +03:00
Alexey Milovidov
d6ba48a610 Merge 2016-04-15 22:37:19 +03:00
Alexey Milovidov
2bb5a4749b Merge 2016-04-15 22:09:42 +03:00
Alexey Milovidov
3923c7abce Merge 2016-04-15 20:42:51 +03:00
Alexey Milovidov
d79174b2ce Preparation [#METR-20644]. 2016-04-15 20:13:51 +03:00
Alexey Arno
68f427398d dbms: server: Retry after a timeout issue. [#METR-20825] 2016-04-15 01:00:39 +03:00
Alexey Arno
b884690fbf dbms: server: Bug fix: avoid empty log entries. Also added missing logging. [#METR-20825] 2016-04-14 23:52:16 +03:00
Alexey Arno
1ed2615f7c dbms: Fixed minor issue with logging [#METR-20825] 2016-04-14 19:25:09 +03:00
Alexey Arno
35e16aed04 dbms: Bug fix: under certain circumstances, ClickHouse would fail to attach a partition whose name coincides with the name of another partition that was previously dropped [#METR-20825] 2016-04-14 19:21:17 +03:00
Alexey Milovidov
b1ee71c026 Fixed build [#METR-2944]. 2016-04-13 23:46:11 +03:00
Alexey Milovidov
8b9cf82c6c More checking [#METR-12588]. 2016-04-13 07:48:41 +03:00
Alexey Milovidov
edc561d6b5 Fixed error [#METR-20803]. 2016-04-10 03:28:44 +03:00
Alexey Milovidov
11df87ea54 Merge 2016-04-09 07:22:11 +03:00
Alexey Milovidov
d0365e9501 Separated code for checking parts [#METR-20803]. 2016-04-09 06:50:02 +03:00
Alexey Milovidov
86e19f1e87 Merge 2016-04-08 00:35:42 +03:00
Alexey Milovidov
f0844ecb66 Attempt to fix an error [#METR-20803]. 2016-04-08 00:35:01 +03:00
Alexey Arno
2a23271645 dbms: fixed typo that led to a bug [#METR-18510] 2016-04-06 18:08:28 +03:00
Alexey Milovidov
b0e9fd6da3 Improved exception message [#METR-20762]. 2016-04-06 03:31:22 +03:00
Alexey Milovidov
3973277936 Allowed to modify 'max_files_to_modify_in_alter_columns' [#METR-20763]. 2016-04-05 21:18:16 +03:00
Alexey Milovidov
eb5d905600 Added support for using index for LIKE expressions with fixed prefix [#METR-20706]. 2016-04-03 00:19:58 +03:00
Alexey Milovidov
60252fed27 Removed old code as promised [#METR-2944]. 2016-04-01 19:47:25 +03:00
Alexey Milovidov
f41bba57a5 Better [#METR-20691]. 2016-04-01 02:49:31 +03:00
Alexey Milovidov
4f597ed7c3 Fixed error [#METR-20679]. 2016-03-31 20:42:57 +03:00
Alexey Milovidov
e1a80f5ded Added support for case when merged data differs from data on another replicas [#METR-20670]. 2016-03-31 04:25:16 +03:00
Alexey Milovidov
2501af25e8 Cancelling checking parts on shutdown [#METR-20660]. 2016-03-31 03:09:12 +03:00
Alexey Milovidov
5c400d5c5c Better [#METR-20659]. 2016-03-30 02:03:15 +03:00
Alexey Milovidov
04875a022a Removed code for freezing partitions due to unacceptable implementation [#METR-20656]. 2016-03-29 22:39:44 +03:00
Alexey Arno
21ff6d9f94 dbms: Comment updates. Naming simplfications. Use better hashing. [#METR-18510] 2016-03-29 19:29:39 +03:00
Alexey Arno
09985be3ba dbms: Added more comments. Made some code more understandable. [#METR-18510] 2016-03-28 16:00:00 +03:00
Alexey Milovidov
605e9c4afb Addition to prev. revision [#METR-20607]. 2016-03-27 17:36:59 +03:00
Alexey Milovidov
702876f9f0 Fixed suboptimal index usage in point queries [#METR-20607]. 2016-03-27 14:37:25 +03:00
Alexey Arno
776a0e3041 dbms: Improved fault tolerance with regards to ZooKeeper. [#METR-18510] 2016-03-25 15:21:10 +03:00
Alexey Arno
32a38485e6 Merge 2016-03-25 14:48:45 +03:00
Alexey Arno
50bdb806b9 dbms: Code cleanup. [#METR-18510] 2016-03-09 16:59:34 +03:00
Alexey Arno
75f31de790 dbms: Code cleanup. [#METR-18510] 2016-03-09 16:40:47 +03:00
Alexey Arno
79d5c899b0 dbms: Fault tolerance improvement. Fixed a race condition. Some cleanup. [#METR-18510] 2016-03-09 15:03:39 +03:00
Evgeniy Gatov
6aa4d59400 Merge 2016-03-08 20:52:42 +03:00
Alexey Arno
e9718711d0 dbms: Code cleanup. [#METR-18510] 2016-03-08 18:38:06 +03:00
Alexey Arno
0f35ecc357 dbms: Code cleanup. [#METR-18510] 2016-03-08 16:46:00 +03:00
Alexey Milovidov
0194495b99 Fixed build [#METR-2807]. 2016-03-07 11:10:52 +03:00
Alexey Milovidov
85863529cf Fixing warnings on clang [#METR-2807]. 2016-03-07 10:47:41 +03:00
Alexey Milovidov
0536f42f8c Fixing build on clang [#METR-2807]. 2016-03-07 09:49:07 +03:00
Alexey Milovidov
fcbe00ce94 Fixing warnings on clang [#METR-2807]. 2016-03-07 07:53:17 +03:00
Alexey Milovidov
a75b6ca3dd Fixing warnings on clang [#METR-2807]. 2016-03-07 07:43:14 +03:00
Alexey Milovidov
ebf5b3afdd Merge 2016-03-07 05:21:16 +03:00
Alexey Arno
a1fd25865b dbms: Code cleanup. [#METR-18510] 2016-03-05 13:33:01 +03:00
Alexey Milovidov
f5247021b1 Fixed error [#METR-20296]. 2016-03-05 06:17:11 +03:00