Commit Graph

640 Commits

Author SHA1 Message Date
Alexey Milovidov
f26b265eed Merge 2014-10-18 21:37:55 +04:00
Alexey Milovidov
172ac6715f dbms: tiny fix [#METR-2944]. 2014-10-18 01:44:56 +04:00
Andrey Mironov
8a8e5963c5 dbms: chaining support for defaulted columns when corresponding columns files are absent. [#METR-12739] 2014-10-17 16:26:53 +04:00
Alexey Milovidov
a097d24644 dbms: moved some code to separate file [#METR-13153]. 2014-10-17 05:05:51 +04:00
Andrey Mironov
1dfcaefc64 Merge 2014-10-16 20:55:23 +04:00
Andrey Mironov
0bfd35e5c7 dbms: defaulted columns support for ALTER, currently without type deduction and checking. 2014-10-16 17:37:01 +04:00
Alexey Milovidov
c2e4662ad7 Changed boost:: to std:: for bind, ref/cref, thread, shared_ptr [#METR-2807]. 2014-10-16 05:21:03 +04:00
Alexey Milovidov
07ba420b85 dbms: addition to prev. revision; removed support to FETCH UNREPLICATED PARTITION [#METR-13153]. 2014-10-15 23:59:12 +04:00
Alexey Milovidov
25b474bd81 dbms: fixed subtle error [#METR-13153]. 2014-10-15 17:38:09 +04:00
Alexey Milovidov
3d7639e5f1 dbms: little better [#METR-13153]. 2014-10-15 05:22:06 +04:00
Alexey Milovidov
21383c5475 dbms: FETCH PARTITION: development [#METR-13153]. 2014-10-13 21:28:59 +04:00
Andrey Mironov
43deee45c9 dbms: MATERIALIZED columns evaluation during insert, error handling. #[METR-12739] 2014-10-13 18:35:40 +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
54636994ef dbms: FETCH PARTITION: development [#METR-13153]. 2014-10-10 04:46:37 +04:00
Alexey Milovidov
c1601502bd dbms: FETCH PARTITION: parsing and dispatching [#METR-13153]. 2014-10-10 00:28:33 +04:00
Alexey Milovidov
150bde4e4f dbms: VIEWs: added support for SAMPLE, FINAL, PREWHERE [#METR-13098]. 2014-10-08 03:08:56 +04:00
Alexey Milovidov
48ec87bc40 dbms: fixed error with system.replicas; improvement [#METR-12726]. 2014-10-07 22:44:03 +04:00
Andrey Mironov
f675bed75b dbms: add partial validation of ALTER queries. [#METR-12739] 2014-10-07 13:09:59 +04:00
Alexey Milovidov
468ea6e4be dbms: added table system.replicas [#METR-12726]. 2014-10-06 09:18:17 +04:00
Alexey Milovidov
0e923da9b3 dbms: added system.zookeeper table [#METR-2944]. 2014-10-06 07:49:56 +04:00
Alexey Milovidov
64071c2224 Merge 2014-10-03 22:41:16 +04:00
Alexey Milovidov
90d8096a0e Merge 2014-10-03 21:57:01 +04:00
Alexey Milovidov
e84a0266e6 dbms: more consistent usage of override in Storages [#METR-12524]. 2014-10-03 21:55:36 +04:00
Andrey Mironov
220ce78326 dbms: support ALIAS in table declaration 2014-10-03 19:30:10 +04:00
Andrey Mironov
defc09ed40 Merge 2014-10-03 18:29:42 +04:00
Andrey Mironov
468b7af64e Merge 2014-10-03 14:19:34 +04:00
Alexey Milovidov
1da86169d6 dbms: more handy error message [#METR-2944]. 2014-10-03 03:31:18 +04:00
Andrey Mironov
9800d0d95f Merge 2014-10-02 22:34:49 +04:00
Andrey Mironov
192dde9b36 Merge 2014-10-01 20:47:36 +04:00
Andrey Mironov
5083090f8d Merge 2014-10-01 20:39:32 +04:00
Alexey Milovidov
d6a2cc33aa dbms: tiny modifications [#METR-12784]. 2014-10-01 04:10:35 +04:00
Alexey Milovidov
4b83a8d3b3 dbms: tiny modifications [#METR-12784]. 2014-10-01 00:26:10 +04:00
Andrey Mironov
34dba980c7 show defaulted columns info in DESC TABLE query output. [#METR-12739] 2014-09-30 07:48:40 +04:00
Andrey Mironov
8052020218 add draft version of DEFAULT, MATERIALIZED/ALIAS currently parsed but not taken into account. [#METR-12739] 2014-09-30 07:08:47 +04:00
Alexey Milovidov
995bc9a5dd dbms: investigation [#METR-12784]. 2014-09-30 00:26:46 +04:00
Andrey Mironov
3060ba9571 return ColumnDefaults from InterpreterCreateQuery::parseColumns. [#METR-12739] 2014-09-29 18:58:48 +04:00
Andrey Mironov
d1d9037053 Merge 2014-09-24 18:46:23 +04:00
Andrey Mironov
0a4e3f1280 add function currentDatabase(), allow string-expressions in place of database name 2014-09-24 15:53:41 +04:00
Andrey Mironov
c6048522d2 Merge 2014-09-23 21:24:39 +04:00
Andrey Mironov
9c5f8eadb3 Merge 2014-09-23 21:00:57 +04:00
Andrey Mironov
f9afc661d1 Merge 2014-09-23 15:36:02 +04:00
Andrey Mironov
bc1587a192 Merge 2014-09-23 15:36:02 +04:00
Andrey Mironov
0f0c10a62d move single condition from WHERE to PREWHERE, refactor. [#METR-11900] 2014-09-23 15:36:02 +04:00
Andrey Mironov
13870f5ba5 transform of non-good conditions, refactor. [#METR-11900] 2014-09-23 15:36:02 +04:00
Andrey Mironov
78aeb03095 Merge 2014-09-23 15:36:02 +04:00
Andrey Mironov
8579036446 refactor, fix comment meaning. [#METR-11900] 2014-09-23 15:36:02 +04:00
Andrey Mironov
86beda3111 Merge 2014-09-23 15:36:01 +04:00
Andrey Mironov
0fb1912d7c WHERE condition recognition. [#METR-11900] 2014-09-23 15:36:01 +04:00
Andrey Mironov
e954fa6d00 add elapsed and progress rows to system.merges. [#METR-12574]
Fix data-race introduced due to misconception of atomic instructions on integers.
2014-09-18 14:23:12 +04:00
Alexey Milovidov
f2c0ba3ba2 dbms: fixed error with merges [#METR-12767]. 2014-09-18 03:57:25 +04:00
Alexey Milovidov
8505c84c23 dbms: throttling INSERTs early [#METR-12767]. 2014-09-18 02:57:02 +04:00
Alexey Milovidov
eca407e61a Revert "dbms: fixed high CPU usage on failed INSERTs [#METR-12726]."
This reverts commit 49cf3bbd0d8af92a756b46039a7a52fa81992765.
2014-09-17 06:36:32 +04:00
Alexey Milovidov
587820aab9 dbms: fixed high CPU usage on failed INSERTs [#METR-12726]. 2014-09-17 05:38:08 +04:00
Andrey Mironov
f6f7004684 Merge 2014-09-16 14:24:33 +04:00
Alexey Milovidov
4d01c0c7d0 dbms: addition to prev. revision [#METR-12715]. 2014-09-13 22:59:12 +04:00
Alexey Milovidov
40d6f26ed7 dbms: improved performance with very small INSERTs [#METR-12715]. 2014-09-13 22:34:08 +04:00
Andrey Mironov
09a570ffc0 Merge 2014-09-12 20:05:29 +04:00
Alexey Milovidov
887f4d052f dbms: fixed error [#METR-12729]. 2014-09-12 05:06:38 +04:00
Alexey Milovidov
0ea4691107 Merge 2014-09-12 04:32:27 +04:00
Pavel Kartavyy
1a73e77463 dbms: fixed exception in TinyLog when it is empty [#METR-12532] 2014-09-10 20:49:18 +04:00
Andrey Mironov
e3d8e4e48b initial implementation. [#METR-12574] 2014-09-10 15:34:26 +04:00
Alexey Milovidov
d6d163b5dc dbms: replication: writers don't block ZK session restart [#METR-12572]. 2014-09-05 00:26:14 +04:00
Alexey Milovidov
8cda8c9190 dbms: probably fixed error [#METR-12572]. 2014-09-03 06:32:23 +04:00
Alexey Milovidov
fe822c016f dbms: added system table 'numbers_mt' (for testing purposes) [#METR-2944]. 2014-08-22 21:26:43 +04:00
Alexey Milovidov
dd9edb8c15 dbms: StorageDistributed: fixed error with signed shard key [#METR-12221]. 2014-08-22 21:17:25 +04:00
Andrey Mironov
09265f50f9 StorageDistributed: write to multiple local replicas, post-review corrections. [#METR-12221] 2014-08-22 18:06:20 +04:00
Andrey Mironov
c6d4fd941f review corrections. [#METR-12221] 2014-08-21 16:15:24 +04:00
Alexey Milovidov
d76bfae57b dbms: tiny modifications [#METR-12221]. 2014-08-20 06:20:07 +04:00
Andrey Mironov
a643e52d29 refactor, encapsulate thread in DirectoryMonitor. [#METR-12221] 2014-08-19 12:33:14 +04:00
Andrey Mironov
e9d97af140 rename based on review, fix behaviour when the only replic present is a local one. [#METR-12221] 2014-08-19 12:33:14 +04:00
Andrey Mironov
da264af80d little comprehension test 2014-08-19 12:33:14 +04:00
Andrey Mironov
269be93cbe write to local nodes, refactor StorageDistributed, extract DirectoryMonitor. [#METR-12221] 2014-08-19 12:33:14 +04:00
Andrey Mironov
b801907980 fix embarassing error in first-iterator detection 2014-08-19 12:33:14 +04:00
Andrey Mironov
b91dfcd1c2 refactor based on review; complete block output to files 2014-08-19 12:33:14 +04:00
Andrey Mironov
8b6adcb047 unify rewriteQuery, rewrite insert query. [#METR-12221] 2014-08-19 12:33:14 +04:00
Andrey Mironov
7eff8548c3 stop and join directory monitors on StorageDistributed::shutdown 2014-08-19 12:33:14 +04:00
Andrey Mironov
4a364a09e3 do not create target block unless required. [#METR-12221] 2014-08-19 12:33:14 +04:00
Andrey Mironov
2db71666a3 refactor write to StorageDistributed. [#METR-12221] 2014-08-19 12:33:13 +04:00
Andrey Mironov
e73bfe7b8a naive split implementation for DistributeBlockOutputStream (IColumn::insertFrom). [#METR-12221] 2014-08-19 12:33:13 +04:00
Alexey Milovidov
f2b967ab06 Merge 2014-08-14 11:25:21 +04:00
Alexey Milovidov
1cd1e5f724 dbms: BackgroundProcessingPool: less messy; fixed error(s) [#METR-12317]. 2014-08-14 05:48:50 +04:00
Michael Kolupaev
d9ae9876ce Merge 2014-08-13 12:08:40 +04:00
Michael Kolupaev
a373267660 Merge 2014-08-12 16:41:39 +04:00
Michael Kolupaev
51992989a6 Merge 2014-08-12 13:27:00 +04:00
Michael Kolupaev
7b11fc4f6c Merge 2014-08-11 18:05:42 +04:00
Michael Kolupaev
eaf4a79f11 Merge 2014-08-08 16:53:59 +04:00
Michael Kolupaev
6c194f5a00 fixed PartChecker. [#METR-12155] 2014-08-08 15:40:03 +04:00
Michael Kolupaev
6189e53667 Merge 2014-08-08 14:57:33 +04:00
Michael Kolupaev
dbe4dc64f3 Merge 2014-08-08 14:41:53 +04:00
Michael Kolupaev
71b90ea1d4 Merge 2014-08-08 14:03:19 +04:00
Alexey Milovidov
857f7db99d Merge 2014-08-07 23:20:30 +04:00
Michael Kolupaev
9bec7e4a28 Merge 2014-08-07 16:26:04 +04:00
Michael Kolupaev
7643a49b8e Merge 2014-08-07 16:26:04 +04:00
Michael Kolupaev
e76a00fbd2 dbms: parsing and formatting ALTER TABLE DROP PARTITION. Not interpreting it yet. [#METR-12037] 2014-08-07 16:26:04 +04:00
Michael Kolupaev
98297fa475 Merge 2014-08-07 16:26:03 +04:00
Michael Kolupaev
917f312a95 dbms: materialized views pass virtual columns through. [#METR-12150] 2014-08-06 13:25:41 +04:00
Pavel Kartavyy
bdea8e78e7 dbms: FileChecker simplified [#METR-11709] 2014-08-05 16:50:20 +04:00
Pavel Kartavyy
79e755938b dbms: added support of check data to ChunkRef [#METR-11709] 2014-08-05 14:53:27 +04:00
Pavel Kartavyy
8e0a8a4d74 dbms: StorageChunks - added support for check query [#METR-11709] 2014-08-05 14:53:26 +04:00
Pavel Kartavyy
a37e0d4267 dbms: FileChecker - refactoring [#METR-11709] 2014-08-05 14:53:26 +04:00
Pavel Kartavyy
b34c8e47ab dbms.StorageLog: added support for checkData query [#METR-11709] 2014-08-05 14:53:26 +04:00
Pavel Kartavyy
cf1afb1bd1 dbms: FileChecker moved to separate class [#METR-11709] 2014-08-05 14:53:26 +04:00
Pavel Kartavyy
e1c016cbac dbms.TinyLog: call updateSize after writing on disk [#METR-10969] 2014-08-05 14:53:26 +04:00
Pavel Kartavyy
1a39b3bf5c dbms: added checData method in TinyLog storage [#METR-11709] 2014-08-05 14:53:26 +04:00
Michael Kolupaev
6fd0f417b4 Merge 2014-08-04 19:48:03 +04:00
Michael Kolupaev
9a50694f22 Merge 2014-08-04 18:23:52 +04:00
Michael Kolupaev
e9ef0705f3 Merge 2014-08-04 18:23:52 +04:00
Michael Kolupaev
b1c6001e40 Merge 2014-07-31 13:12:12 +04:00
Michael Kolupaev
8f6ded29f8 Merge 2014-07-30 19:24:45 +04:00
Michael Kolupaev
2bd9733223 Merge 2014-07-30 16:10:38 +04:00
Michael Kolupaev
f58b4f6ccb ClickHouse: Added table system.parts. [#METR-12036] 2014-07-29 19:21:09 +04:00
Michael Kolupaev
9b3ce7f0f8 Refactored VirtualColumnUtils. [#METR-12036] 2014-07-29 19:21:09 +04:00
Michael Kolupaev
8a41d7985a Merge 2014-07-28 18:50:51 +04:00
Michael Kolupaev
2c8e5cd239 Passing new db name to IStorage::rename. [#METR-12038] 2014-07-28 18:50:51 +04:00
Michael Kolupaev
2854ed49da Merge 2014-07-28 18:50:51 +04:00
Michael Kolupaev
5c9f92ac1e Merge 2014-07-28 14:36:15 +04:00
Michael Kolupaev
d660d7db45 Merge 2014-07-28 14:36:15 +04:00
Michael Kolupaev
53a76dd348 Merge 2014-07-28 14:36:14 +04:00
Michael Kolupaev
c832fc00aa Merge 2014-07-25 20:32:02 +04:00
Michael Kolupaev
219e3ca3c6 Merge 2014-07-25 20:10:02 +04:00
Michael Kolupaev
13b9392241 Merge 2014-07-25 17:12:14 +04:00
Michael Kolupaev
85c722caf3 Merge 2014-07-25 17:12:14 +04:00
Michael Kolupaev
a6e8c35ba8 Merge 2014-07-25 11:49:02 +04:00
Alexey Milovidov
b897fdc27a dbms: updated comment [#METR-2944]. 2014-07-24 03:57:58 +04:00
Michael Kolupaev
7b44c88b73 Merge 2014-07-23 20:31:38 +04:00
Michael Kolupaev
90dc182f12 Merge 2014-07-23 19:24:51 +04:00
Michael Kolupaev
272a2a8d9b Merge 2014-07-23 16:44:23 +04:00
Michael Kolupaev
8b18acffec Merge 2014-07-23 15:02:22 +04:00
Michael Kolupaev
bfe126ab04 Merge 2014-07-23 13:50:29 +04:00
Michael Kolupaev
f3285dba79 Merge 2014-07-23 13:15:41 +04:00
Michael Kolupaev
256f15b099 BackgroundProcessingPool: fast shutdown. [#METR-2807] 2014-07-23 13:14:51 +04:00
Michael Kolupaev
16e5a92ed9 Merge 2014-07-22 17:49:52 +04:00
Michael Kolupaev
776f11a256 Merge 2014-07-22 14:36:56 +04:00
Michael Kolupaev
1be80d3410 part_checker: fixes. [#METR-11980] 2014-07-22 14:35:44 +04:00
Michael Kolupaev
cb7aa9dd66 part_checker: fixes. [#METR-11980] 2014-07-22 14:35:44 +04:00
Michael Kolupaev
c8c5fb9d5b missing files for previous commit. [#METR-11980] 2014-07-22 14:35:44 +04:00
Michael Kolupaev
c777975b0b dbms: parts_checker; not working yet. [#METR-11980] 2014-07-22 14:35:44 +04:00
Michael Kolupaev
4f3b1a476f Merge 2014-07-18 19:41:04 +04:00
Michael Kolupaev
5e10dbca8a Merge 2014-07-17 17:41:47 +04:00
Michael Kolupaev
e493438564 Merge 2014-07-17 14:44:17 +04:00
Michael Kolupaev
67b76568d3 Merge 2014-07-17 13:38:31 +04:00
Michael Kolupaev
12c6d16743 Merge 2014-07-16 13:32:15 +04:00
Michael Kolupaev
22c0c1778e Merge 2014-07-16 12:58:59 +04:00
Michael Kolupaev
d668fd27d2 Merge 2014-07-15 19:51:27 +04:00
Michael Kolupaev
86fb1eee37 Merge 2014-07-15 18:37:49 +04:00
Michael Kolupaev
9ced1d909e Merge 2014-07-15 15:12:58 +04:00
Michael Kolupaev
01094ec78d Merge 2014-07-15 14:13:36 +04:00
Michael Kolupaev
007c0cedc1 fixed build and a bunch of other stuff. [#METR-11886] 2014-07-14 19:49:03 +04:00
Michael Kolupaev
33955ee7dd Merge 2014-07-14 18:07:47 +04:00
Michael Kolupaev
62de3bc73a Merge 2014-07-14 16:24:22 +04:00