Commit Graph

955 Commits

Author SHA1 Message Date
Alexey Milovidov
882bf3ea75 dbms: compiled aggregator: development [#METR-2944]. 2015-01-11 05:00:26 +03:00
Alexey Milovidov
19f1bff25d dbms: dynamic compiled aggregator: development [#METR-2944]. 2015-01-11 03:57:21 +03:00
Alexey Milovidov
5bbfa7b9f0 dbms: fixed error in prev. revision [#METR-2944]. 2015-01-11 03:35:30 +03:00
Alexey Milovidov
65e5e98369 dbms: addition to prev. revision [#METR-2944]. 2015-01-10 05:34:38 +03:00
Alexey Milovidov
a7a2712630 dbms: compiled aggregator: development [#METR-2944]. 2015-01-10 05:30:03 +03:00
Alexey Milovidov
6673251a20 dbms: dynamic compilation: development [#METR-2944]. 2015-01-10 00:43:13 +03:00
Alexey Milovidov
9225adb3fc dbms: tiny modifications [#METR-2944]. 2015-01-08 21:52:48 +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
7c292a9956 dbms: more scalable aggregator: development [#METR-2944]. 2015-01-03 08:39:21 +03:00
Alexey Milovidov
221efeb82a dbms: more scalable aggregator: development [#METR-2944]. 2015-01-03 06:18:49 +03:00
Alexey Milovidov
7cf0bca8af dbms: more scalable aggregator: development [#METR-2944]. 2015-01-02 08:28:21 +03:00
Alexey Milovidov
a7eacd1269 dbms: more scalable aggregator: development [#METR-2944]. 2015-01-02 06:50:14 +03:00
Alexey Milovidov
acbe19fd84 dbms: more scalable aggregator: development [#METR-2944]. 2015-01-02 06:16:28 +03:00
Alexey Milovidov
fd8b2b5261 dbms: Aggregator: preparation [#METR-2944]. 2015-01-02 03:35:33 +03:00
Alexey Milovidov
54415a6d0b dbms: more scalable aggregator: development [#METR-2944]. 2014-12-31 00:09:25 +03:00
Alexey Milovidov
2abb0f3792 dbms: more scalable aggregator: development [#METR-2944]. 2014-12-30 23:38:05 +03:00
Alexey Milovidov
e9232fc2fc dbms: more scalable aggregator: development [#METR-2944]. 2014-12-30 21:04:53 +03:00
Alexey Milovidov
716fad23d0 dbms: more scalable aggregator: development [#METR-2944]. 2014-12-30 15:58:02 +03:00
Alexey Milovidov
01526513ae dbms: more scalable aggregator: development [#METR-2944]. 2014-12-30 14:27:58 +03:00
Alexey Milovidov
f9f0682033 dbms: more scalable aggregator: development [#METR-2944]. 2014-12-30 13:16:23 +03:00
Alexey Milovidov
611d585e93 Merge 2014-12-30 06:56:37 +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 Milovidov
da1974bbf3 dbms: more scalable aggregator: development [#METR-2944]. 2014-12-25 23:56:01 +03:00
Alexey Milovidov
cf3812532e dbms: more scalable aggregator: development [#METR-2944]. 2014-12-25 23:18:01 +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 Milovidov
6bc3c14e9a Merge 2014-12-23 23:34:00 +03:00
Alexey Milovidov
10553e7840 dbms: fixed error with views [#METR-14449]. 2014-12-23 23:32:00 +03:00
Andrey Mironov
f283719d89 dbms: fix in/join identifier subquery [#METR-14402] 2014-12-23 03:31:17 +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
e7301a4050 dbms: add override to AST types 2014-12-17 18:51:21 +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
Alexey Milovidov
f3ae946798 dbms: fixed double spaces [#METR-2807]. 2014-12-09 20:43:06 +03:00
Alexey Milovidov
a7b4903f14 dbms: fixed error with replication when 'interserver_http_port' is not specified [#METR-13831]. 2014-11-19 23:40:51 +03:00
Andrey Mironov
50328d120a Merge 2014-11-12 13:42:04 +03:00
Andrey Mironov
731be3e7cf Merge 2014-11-12 13:37:47 +03:00
Andrey Mironov
b682e42e5a dbms: prohibit creating tables without physical columns. [#METR-12739] 2014-11-11 17:20:22 +03:00
Andrey Mironov
de271b753e dbms: allow creating tables with all columns set to default. [#METR-12739] 2014-11-11 17:11:49 +03:00
Alexey Milovidov
9a9036f217 dbms: added FREEZE PARTITION functionality [#METR-13441]. 2014-11-11 07:11:07 +03:00
Alexey Milovidov
212cb73eec dbms: improved performance of aggregation by string key when there are significant amount of empty strings [#METR-2944]. 2014-11-09 15:53:44 +03:00
Alexey Milovidov
87a31229e9 dbms: improved performance of aggregation by string key [#METR-2944]. 2014-11-09 15:43:09 +03:00
Alexey Milovidov
530eb9f919 dbms: HashTable: more use of saved hash value - less string comparisons, improved performance of aggregation by string [#METR-2944]. 2014-11-09 11:39:18 +03:00
Alexey Milovidov
f68e30cfdb dbms: testing string comparison [#METR-2944]. 2014-11-09 10:26:37 +03:00
Alexey Milovidov
d486138e0a dbms: added test for different string equality comparison methods [#METR-2944]. 2014-11-09 05:51:28 +03:00
Alexey Milovidov
a58104c818 dbms: showing progress for INSERT SELECT query [#METR-13612]. 2014-11-09 02:52:18 +03:00
Alexey Milovidov
313fe36e7a dbms: addition to prev. revision [#METR-13322]. 2014-11-07 03:02:53 +03:00
Alexey Milovidov
ae56793530 dbms: fixed error with filtering by set of tuples with elements that fit in 128 bits [#METR-13322]. 2014-11-06 06:03:40 +03:00
Alexey Milovidov
37e599934f dbms: further [#METR-2944]. 2014-10-29 05:35:16 +03:00
Alexey Milovidov
425263970f dbms: improved performance of aggregation by one numeric key (up to: 2x for UInt8, 5x for UInt16, 1.1x for UInt32, UInt64) [#METR-2944]. 2014-10-29 04:18:50 +03:00
Alexey Milovidov
b3c060b89e dbms: fixed error [#METR-13297]. 2014-10-26 05:59:46 +03:00
Alexey Milovidov
2d5192c4a0 dbms: StorageBuffer: development [#METR-13297]. 2014-10-26 03:01:36 +03:00
Andrey Mironov
2e7c880fe5 dbms: remove accidentally forgotten code. [#METR-13321] 2014-10-21 18:08:06 +04:00
Andrey Mironov
25639d9834 dbms: fix segmentation fault when left tuple of IN contains array types. [#METR-13321] 2014-10-21 17:07:38 +04:00
Andrey Mironov
847b91614a dbms: deduce and check types during alter, alteration of defaulted columns. [#METR-12739] 2014-10-21 16:11:20 +04:00
Alexey Milovidov
d3664eac89 dbms: added setting replication_alter_partitions_sync [#METR-13158]. 2014-10-18 23:14:09 +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
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
c1601502bd dbms: FETCH PARTITION: parsing and dispatching [#METR-13153]. 2014-10-10 00:28:33 +04:00
Alexey Milovidov
58982a2530 dbms: fixed error [#METR-11587]. 2014-10-08 05:54:26 +04:00
Alexey Milovidov
a6dcbb0371 dbms: addition to prev. revision [#METR-13087]. 2014-10-08 02:22:09 +04:00
Alexey Milovidov
c74a5e1166 dbms: addition to prev. revision [#METR-13087]. 2014-10-08 02:20:32 +04:00
Andrey Mironov
f675bed75b dbms: add partial validation of ALTER queries. [#METR-12739] 2014-10-07 13:09:59 +04:00
Alexey Milovidov
3ff8c7ff26 dbms: fixed error [#METR-13087]. 2014-10-07 02:46:18 +04:00
Alexey Milovidov
390b2efc61 dbms: fixing error [#METR-13087] (incomplete). 2014-10-07 00:33:12 +04:00
Andrey Mironov
220ce78326 dbms: support ALIAS in table declaration 2014-10-03 19:30:10 +04:00
Andrey Mironov
468b7af64e Merge 2014-10-03 14:19:34 +04:00
Andrey Mironov
9800d0d95f Merge 2014-10-02 22:34:49 +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
Andrey Mironov
3060ba9571 return ColumnDefaults from InterpreterCreateQuery::parseColumns. [#METR-12739] 2014-09-29 18:58:48 +04:00
Andrey Mironov
529674ce6a detect cycles, deduce and check types. [#METR-12739] 2014-09-29 17:36:30 +04:00
Andrey Mironov
1d04061a0e implement type-deduction and type-enforcing. [#METR-12739] 2014-09-25 19:01:09 +04:00
Andrey Mironov
142d0a49c0 add ASTColumnDeclaration, corresponding formatAST, modify Interpreters. [#METR-12739] 2014-09-25 17:40:26 +04:00
Alexey Milovidov
2706a28d3b dbms: fixed errors when INSERTing subset of columns through HTTP [#METR-12901]. 2014-09-24 22:06:24 +04:00
Andrey Mironov
0a4e3f1280 add function currentDatabase(), allow string-expressions in place of database name 2014-09-24 15:53:41 +04:00
Alexey Milovidov
eee2f04d70 dbms: addition to prev. revision [#METR-2944]. 2014-08-23 00:16:16 +04:00
Alexey Milovidov
bae467c493 dbms: preparation [#METR-2944]. 2014-08-23 00:14:53 +04:00
Alexey Milovidov
a98ea4d558 dbms: tiny modifications [#METR-2944]. 2014-08-22 23:51:55 +04:00
Andrey Mironov
09265f50f9 StorageDistributed: write to multiple local replicas, post-review corrections. [#METR-12221] 2014-08-22 18:06:20 +04:00
Alexey Milovidov
5523bdeaca dbms: improved performance on small blocks [#METR-2944]. 2014-08-22 06:31:54 +04:00
Alexey Milovidov
aae80fa8c5 dbms: removed deprecated 'replica_name' configuration parameter [#METR-10202]. 2014-08-22 05:01:28 +04:00
Alexey Milovidov
3b8c4d2c9d dbms: style [#METR-12108]. 2014-08-20 03:12:31 +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
269be93cbe write to local nodes, refactor StorageDistributed, extract DirectoryMonitor. [#METR-12221] 2014-08-19 12:33:14 +04:00
Andrey Mironov
ec0cee0afe escape user, password and host. [#METR-12221] 2014-08-19 12:33:14 +04:00
Andrey Mironov
61af8baa77 save username and password and take internal_replication into account. [#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
e73bfe7b8a naive split implementation for DistributeBlockOutputStream (IColumn::insertFrom). [#METR-12221] 2014-08-19 12:33:13 +04:00
Alexey Milovidov
b16c083de5 dbms: fixed error with GROUP BY expression with IN operators [#METR-12383]. 2014-08-19 02:43:03 +04:00
Michael Kolupaev
5bbb6dc090 some grammar fixes. [#METR-2807] 2014-08-12 13:35:15 +04:00
Michael Kolupaev
583f4c114e Merge 2014-08-11 19:59:05 +04:00
Andrey Mironov
e8fe836a1b dbms: more sound solution for backtracking for-loop. [#METR-12108] 2014-08-08 10:10:12 +04:00
Andrey Mironov
beca178f2f dbms: support WITH TOTALS without GROUP BY 2014-08-08 10:10:12 +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
20f8e17e84 dbms: interpreting ALTER TABLE DROP PARTITION. Not storage supports it yet. [#METR-12037] 2014-08-07 16:26:04 +04:00
Michael Kolupaev
00fefb3df2 dbms: interpreting ALTER TABLE DROP PARTITION. Not storage supports it yet. [#METR-12037] 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
Pavel Kartavyy
7f7d512f03 dbms: added check query [#METR-11709] 2014-08-05 14:53:27 +04:00
Andrey Mironov
5c529d7b4f dbms: ExpressionsAnalyzer: switch off group by literal elimination completely. [#METR-12108] 2014-07-31 17:17:51 +04:00
Andrey Mironov
c519e9d15f dbms: ExpressionsAnalyzer: switch literal optimization off temporarily. [#METR-12108] 2014-07-31 17:14:08 +04:00
Andrey Mironov
18db7b24d1 comment typo fixed 2014-07-31 15:27:34 +04:00
Andrey Mironov
91373f1525 dbms: ExpressionAnalyzer: eliminate constant expressions from GROUP BY statement 2014-07-31 15:26:05 +04:00
Andrey Mironov
1995d3e1ba replace commentary tabs with spaces 2014-07-31 12:14:19 +04:00
Andrey Mironov
5c85b79e68 dbms: ExpressionAnalyzer: eliminate injective function calls from group by expressions. [#METR-12108] 2014-07-31 11:24:07 +04:00
Michael Kolupaev
f58b4f6ccb ClickHouse: Added table system.parts. [#METR-12036] 2014-07-29 19:21:09 +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
Alexey Milovidov
94ed780065 ███████████: intrusive: development [#METR-12050]. 2014-07-26 08:12:43 +04:00
Alexey Milovidov
80f163eb08 dbms: removed debug output [#METR-11370]. 2014-07-16 06:13:26 +04:00
Michael Kolupaev
8eb2a7218b Merge 2014-07-14 20:01:23 +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
dfb21bcaff fixed segfault when creating materialized views. [#METR-11886] 2014-07-14 18:26:11 +04:00
Michael Kolupaev
62de3bc73a Merge 2014-07-14 16:24:22 +04:00