Commit Graph

346 Commits

Author SHA1 Message Date
Alexey Milovidov
baf2e6e95b Added 'join_use_nulls' setting to allow using NULLs as default values for non-joined rows in case of outer joins [#CLICKHOUSE-2]. 2017-04-04 09:52:39 +03:00
f1yegor
b4c23f122a Translated comments 2017-04-02 20:37:49 +03:00
Alexey Milovidov
310736cd7e Moved headers and sources to same place [#CLICKHOUSE-3]. 2017-04-01 12:22:42 +03:00
Alexey Milovidov
137ad95929 Changed tabs to spaces in code [#CLICKHOUSE-3]. 2017-04-01 11:35:09 +03:00
Alexey Milovidov
4e67e05835 Fixed error [#CLICKHOUSE-2]. 2017-03-14 03:14:19 +03:00
alexey-milovidov
6d5bfc8c6f Refactoring of numeric DataTypes (#581)
* Better code [#CLICKHOUSE-2].

* Addition to prev. revision [#CLICKHOUSE-2].

* Addition to prev. revision [#CLICKHOUSE-2].

* Addition to prev. revision [#CLICKHOUSE-2].
2017-03-12 14:13:45 +04:00
Alexey Milovidov
5546f7f75b Normalized formatting [#CLICKHOUSE-3]. 2017-03-09 07:26:17 +03:00
Vitaliy Lyudvichenko
11b3aad985 Interpret subquery with empty result as Null literal. [#CLICKHOUSE-2760] 2017-02-07 23:43:31 +04:00
alexey-milovidov
8c0e81f8cb Remove stringstream performance on very short queries (#391)
* Improved performance on very short-response queries [#CLICKHOUSE-2].

* Improved performance on very short-response queries [#CLICKHOUSE-2].

* Improved performance on very short-response queries [#CLICKHOUSE-2].
2017-01-25 05:53:29 +04:00
Alexey Milovidov
58e5dad1a1 Squashed commit of the following:
commit e712f469a5
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Sat Jan 14 11:59:13 2017 +0300

    Less dependencies [#CLICKHOUSE-2]

commit 2a00282308
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Sat Jan 14 11:58:30 2017 +0300

    Less dependencies [#CLICKHOUSE-2]

commit 9e06f407c8
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Sat Jan 14 11:55:14 2017 +0300

    Less dependencies [#CLICKHOUSE-2]

commit 9581620f1e
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Sat Jan 14 11:54:22 2017 +0300

    Less dependencies [#CLICKHOUSE-2]

commit 2a8564c68c
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Sat Jan 14 11:47:34 2017 +0300

    Less dependencies [#CLICKHOUSE-2]

commit cf60632d78
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Sat Jan 14 11:40:09 2017 +0300

    Less dependencies [#CLICKHOUSE-2]

commit ee3d1dc6e0
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Sat Jan 14 11:22:49 2017 +0300

    Less dependencies [#CLICKHOUSE-2]

commit 65592ef711
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Sat Jan 14 11:18:17 2017 +0300

    Less dependencies [#CLICKHOUSE-2]

commit 37972c2573
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Sat Jan 14 11:17:06 2017 +0300

    Less dependencies [#CLICKHOUSE-2]

commit dd909d1499
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Sat Jan 14 11:16:28 2017 +0300

    Less dependencies [#CLICKHOUSE-2]

commit 3cf43266ca
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Sat Jan 14 11:15:42 2017 +0300

    Less dependencies [#CLICKHOUSE-2]

commit 6731a3df96
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Sat Jan 14 11:13:35 2017 +0300

    Less dependencies [#CLICKHOUSE-2]

commit 1b5727e0d5
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Sat Jan 14 11:11:18 2017 +0300

    Less dependencies [#CLICKHOUSE-2]

commit bbcf726a55
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Sat Jan 14 11:09:04 2017 +0300

    Less dependencies [#CLICKHOUSE-2]

commit c03b477d5e
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Sat Jan 14 11:06:30 2017 +0300

    Less dependencies [#CLICKHOUSE-2]

commit 2986e2fb04
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Sat Jan 14 11:05:44 2017 +0300

    Less dependencies [#CLICKHOUSE-2]

commit 5d6cdef13d
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Sat Jan 14 11:04:53 2017 +0300

    Less dependencies [#CLICKHOUSE-2]

commit f2b819b25c
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Sat Jan 14 11:01:47 2017 +0300

    Less dependencies [#CLICKHOUSE-2]
2017-01-14 12:00:19 +03:00
artpaul
79eb282eda fix formatting of LIMIT BY; add tests with remote() [#METR-23881] 2017-01-09 18:24:54 +05:00
Alexey Milovidov
d89ee33ce2 Squashed commit of the following:
commit c567d4e1fe
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Fri Jan 6 20:35:01 2017 +0300

    Style [#METR-2944].

commit 26bf3e1228
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Fri Jan 6 20:33:11 2017 +0300

    Miscellaneous [#METR-2944].

commit eb946f4c6f
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Fri Jan 6 20:30:19 2017 +0300

    Miscellaneous [#METR-2944].

commit 78c867a147
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Fri Jan 6 20:11:41 2017 +0300

    Miscellaneous [#METR-2944].

commit 6604c5c83c
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Fri Jan 6 19:56:15 2017 +0300

    Miscellaneous [#METR-2944].

commit 23fbf05c1d
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Fri Jan 6 19:47:52 2017 +0300

    Miscellaneous [#METR-2944].

commit 98772faf11
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Fri Jan 6 19:46:05 2017 +0300

    Miscellaneous [#METR-2944].

commit 3dc636ab9f
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Fri Jan 6 19:39:46 2017 +0300

    Miscellaneous [#METR-2944].

commit 3e16aee954
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Fri Jan 6 19:38:03 2017 +0300

    Miscellaneous [#METR-2944].

commit ae7e7e90eb
Author: Alexey Milovidov <milovidov@yandex-team.ru>
Date:   Fri Jan 6 19:34:15 2017 +0300

    Miscellaneous [#METR-2944].
2017-01-06 20:41:19 +03:00
Alexey Milovidov
a1a6ddd01e Reworking ExpressionAnalyzer (preparations) [#METR-20307]. 2017-01-05 19:34:05 +03:00
Alexey Milovidov
625b6c6050 Function "sleep": do not sleep during query analyze (continued) [#METR-21574]. 2017-01-04 06:43:43 +03:00
Alexey Milovidov
4140e7e889 Get out garbage from AST [#METR-2944]. 2017-01-03 10:37:29 +03:00
Alexey Milovidov
2b4f3b5d34 Renamed method (less confusion) [#METR-2944]. 2017-01-02 23:12:12 +03:00
artpaul
3f064d9ff7 first dirty implementation of LIMIT BY clause [#METR-23881] 2016-12-28 20:12:54 +05:00
Alexey Milovidov
dc9e88a9d7 Merging [#METR-19266]. 2016-12-10 09:16:06 +03:00
Alexey Milovidov
e97ecb6cf7 Merge branch 'master' into METR-19266
Conflicts:
	dbms/CMakeLists.txt
	dbms/include/DB/Functions/FunctionsArray.h
	dbms/include/DB/Functions/FunctionsString.h
	dbms/include/DB/Parsers/ExpressionListParsers.h
	dbms/include/DB/Storages/MergeTree/MergeTreeBlockInputStream.h
	dbms/include/DB/Storages/MergeTree/MergeTreeReader.h
	dbms/include/DB/Storages/MergeTree/MergeTreeThreadBlockInputStream.h
	dbms/include/DB/Storages/MergeTree/MergedBlockOutputStream.h
	dbms/src/Core/ErrorCodes.cpp
	dbms/src/Parsers/ASTFunction.cpp
	dbms/src/Storages/MergeTree/MergeTreeData.cpp
	dbms/src/Storages/MergeTree/MergeTreeDataPart.cpp
	dbms/src/Storages/MergeTree/MergeTreeReader.cpp
	dbms/src/Storages/StorageLog.cpp
2016-12-10 07:51:36 +03:00
Pavel Kartavyy
5dfbd57bad ExpressionAnalyzer: make aliases and ast consistent after constant if optimization 2016-11-30 16:19:39 +03:00
Pavel Kartavyy
106bb24fd8 ExpressionAnalyzer: added more tests for aliases. fix bug [#METR-23545] 2016-11-29 22:19:15 +03:00
Pavel Kartavyy
84a89b3b3d ExpressionAnalyzer: optimize if with constant condition [#METR-23545] 2016-11-24 17:18:44 +03:00
Alexey Milovidov
b0fa239612 Fixed error [#METR-2944]. 2016-11-21 03:56:59 +03:00
Alexey Milovidov
ef3fb70123 Fixed error [#METR-2944]. 2016-11-21 03:36:50 +03:00
Alexey Milovidov
9018906e1a Better [#METR-2944]. 2016-11-20 15:43:20 +03:00
Alexey Arno
924402f33e dbms: Server: merged from master [#METR-19266] 2016-10-19 18:00:56 +03:00
Alexey Milovidov
4d65dd3b37 Get rid of buggy code (that coincidently was useless too) [#METR-2944]. 2016-09-04 03:01:48 +03:00
Alexey Milovidov
902c70bfa9 Fixed error with duplicate columns in subqueries [#METR-22381]. 2016-08-20 20:10:00 +03:00
Alexey Milovidov
70d7451c8c Miscellaneous [#METR-2944]. 2016-08-17 05:44:45 +03:00
Alexey Arno
568fe119fb dbms: Got rid of useless display code for CASE and IS NULL/IS NOT NULL. Also simplified CASE implementation. [#METR-19266] 2016-08-12 17:06:58 +03:00
Alexey Milovidov
8224217e25 Fixed build [#METR-2944]. 2016-08-11 23:59:17 +03:00
Alexey Arno
3fcf4347cd dbms: More comments. Cleanups. Moved a lot of FunctionsArray code into implementation file. [#METR-19266] 2016-08-11 19:47:28 +03:00
Alexey Milovidov
9f51a59322 Merge branch 'master' of github.com:yandex/ClickHouse 2016-08-11 03:47:47 +03:00
Alexey Milovidov
715cb482fa Miscellaneous [#METR-2807]. 2016-08-11 03:47:01 +03:00
Alexey Milovidov
b0256b9935 Fixed stack overflow [#METR-22219]. 2016-08-10 21:49:10 +03:00
Alexey Milovidov
1d2a5086d2 Fixed incompatibility [#METR-22226]. 2016-07-28 23:25:38 +03:00
Alexey Milovidov
f1aab70e3d Fixed incompatibility with new parser of JOINs [#METR-22206]. 2016-07-26 22:43:58 +03:00
Alexey Milovidov
5f423e9023 Fixing incompatibilities [#METR-2944]. 2016-07-23 05:42:42 +03:00
Alexey Milovidov
dc665c67c5 Fixing incompatibilities [#METR-2944]. 2016-07-23 05:25:09 +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 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
a01534e6ab Added syntactic sugar for count(DISTINCT ...) and 'count_distinct_implementation' setting [#METR-22035]. 2016-07-10 18:52:35 +03:00
Alexey Milovidov
003d63023b Fixed error [#METR-18149]. 2016-07-10 10:24:24 +03:00
Alexey Milovidov
4858a2518e Fixed error after moving from Poco::SharedPtr to std::shared_ptr [#METR-21503]. 2016-05-30 23:31:03 +03:00
Alexey Milovidov
128f4a963c Using std::shared_ptr for functions and AST [#METR-21503]. 2016-05-28 19:25:09 +03:00
Alexey Milovidov
9eb249afa6 Using std::shared_ptr for functions and AST [#METR-21503]. 2016-05-28 19:19:27 +03:00
Alexey Milovidov
e336ba10eb Using std::shared_ptr for functions and AST [#METR-21503]. 2016-05-28 18:56:51 +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
61ae4e5547 Using std::shared_ptr for data types [#METR-21503]. 2016-05-28 11:15:50 +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 Arno
286baa8611 Merge 2016-05-04 02:19:14 +03:00
Alexey Milovidov
c43b34d3f0 Added function 'indexHint' [#METR-20940]. 2016-04-16 02:10:29 +03:00
Alexey Milovidov
f5247021b1 Fixed error [#METR-20296]. 2016-03-05 06:17:11 +03:00
Alexey Milovidov
36e4bcc125 Better diagnostics [#METR-19808]. 2016-03-05 05:30:20 +03:00
Alexey Milovidov
9a53bd2a3e dbms: tiny fixes (tnx. orantius) [#METR-2944]. 2016-01-13 04:02:10 +03:00
Alexey Milovidov
ab1b725779 dbms: less dependencies [#METR-2944]. 2016-01-13 03:32:59 +03:00
Alexey Milovidov
13c7d0983a dbms: cutting dependency [#METR-2944].. 2016-01-12 00:46:36 +03:00
Andrey Mironov
1506cc25c0 dbms: allow conversion of most types to enum (not enum to enum though)[#METR-19265] 2015-12-25 17:45:58 +03:00
Andrey Mironov
c483485eaf dbms: create a separate type for Tuple in Field [#METR-19265] 2015-12-25 15:06:17 +03:00
Andrey Mironov
13f56d4465 dbms: use CAST internally whenever a conversion is required [#METR-19265] 2015-12-25 15:06:16 +03:00
Andrey Mironov
49236beee8 dbms: CAST(expression AS type) [#METR-19265] 2015-12-25 15:06:16 +03:00
Alexey Milovidov
ce70e528e0 dbms: fixed error with max_subquery_depth and GLOBAL subqueries [#METR-19569]. 2015-12-25 04:37:17 +03:00
Andrey Mironov
9d16702f84 dbms: unconditionally move evaluation of storage ALIASes to InterpterSelectQuery [#METR-19317] 2015-12-15 17:15:06 +03:00
Alexey Milovidov
109eec92ff dbms: fixed error with UNION ALL and subqueries in IN [#METR-18808]. 2015-11-13 23:50:51 +03:00
Alexey Milovidov
c3a196904f dbms: fixed error with ARRAY JOIN and UNION ALL [#METR-18646]. 2015-11-05 03:42:18 +03:00
Alexey Milovidov
1a01606bf6 dbms: fixed error with GLOBAL subqueries and aliases [#METR-18650]. 2015-11-05 01:02:52 +03:00
Alexey Milovidov
213a6dedbd dbms: probably fixed error [#METR-18611]. 2015-11-02 22:19:29 +03:00
Andrey Mironov
37ba429c1e dbms: handle ALIAS columns differently, support them in ARRAY JOIN. [#METR-18221] 2015-10-29 18:42:40 +03:00
Alexey Milovidov
6f00b5949c dbms: fixed ARRAY JOIN when joined array is not used, but original is used [#METR-18406]. 2015-10-22 23:56:52 +03:00
Alexey Milovidov
9b0da24558 dbms: allowed to GROUP BY constants with no aggregates [#METR-18298]. 2015-10-22 00:43:42 +03:00
Alexey Arno
3d7a3bcd92 dbms: Server: Fixed typo in comment. [#METR-18155] 2015-10-15 16:07:35 +03:00
Alexey Arno
f4d2d42ea8 dbms: Server: Fixed bug in query analysis ordering. [#METR-18155] 2015-10-15 14:07:39 +03:00
Andrey Mironov
797b947425 dbms: add concatAssumeInjective [#METR-18261] 2015-10-14 15:50:21 +03:00
Alexey Milovidov
fefd3791f1 Moved files [#METR-17973]. 2015-10-05 03:33:43 +03:00
Alexey Milovidov
28f67084a4 Merge 2015-09-30 01:31:22 +03:00
Alexey Milovidov
9be353dd28 dbms: added old modification [#METR-2944]. 2015-09-30 01:30:59 +03:00
Alexey Arno
8bdb8f93c0 Merge 2015-09-29 17:40:23 +03:00
Alexey Arno
1cae6e8b54 Merge 2015-09-18 16:36:10 +03:00
Alexey Milovidov
8e23685201 dbms: allowed tuples with one element; allowed empty sets [#METR-18020]. 2015-09-11 23:58:44 +03:00
Alexey Milovidov
4e54056c66 dbms: allowed to specify duplicate columns in JOIN subquery [#METR-17664]. 2015-09-09 03:52:35 +03:00
Alexey Milovidov
8d25390c48 dbms: fixed error [#METR-17758]. 2015-09-06 01:47:13 +03:00
Alexey Milovidov
87465416b0 dbms: pull method for GLOBAL subqueries: supported JOINs [#METR-17758]. 2015-09-05 04:53:16 +03:00
Alexey Milovidov
9f38f15294 dbms: pull scheme for GLOBAL subqueries: development [#METR-17758]. 2015-09-05 00:39:10 +03:00
Alexey Milovidov
7dc7144011 dbms: fixed error with column order in RIGHT and FULL JOINs [#METR-17550]. 2015-09-03 23:48:02 +03:00
Alexey Milovidov
0e26b64968 dbms: allowed columns with duplicate names in GLOBAL subqueries [#METR-17552]. 2015-09-02 23:35:38 +03:00
Alexey Milovidov
3fbb61cbad dbms: fixed error with multiple GLOBAL subqueries [#METR-17622]. 2015-08-15 00:07:17 +03:00
Alexey Milovidov
0439ef5f7f dbms: implemented LEFT ARRAY JOIN [#METR-17474]. 2015-07-26 13:54:45 +03:00
Alexey Milovidov
6f2eda117e dbms: fixed error [#METR-17472]. 2015-07-26 11:28:12 +03:00
Alexey Milovidov
323188bd29 dbms: scalar subqueries: development [#METR-17472]. 2015-07-26 11:16:39 +03:00
Alexey Milovidov
8e44832c85 dbms: scalar subqueries: development [#METR-17472]. 2015-07-26 10:55:48 +03:00
Alexey Milovidov
b87857152b dbms: fixed error in prev. revision [#METR-17472]. 2015-07-26 10:08:46 +03:00
Alexey Milovidov
35b55b7e4f dbms: added tests; fixed error in prev. revision [#METR-17472]. 2015-07-25 14:59:21 +03:00
Alexey Milovidov
80ce5f1f65 dbms: scalar subqueries: initial implementation [#METR-17472]. 2015-07-25 14:47:50 +03:00
Alexey Milovidov
763fe6fb93 dbms: added CROSS JOIN [#METR-16893]. 2015-07-23 23:23:24 +03:00
Alexey Milovidov
c0e029bb1b dbms: renamed ColumnWithNameAndType to ColumnWithTypeAndName for clarification [#METR-2944]. 2015-07-17 04:27:35 +03:00
Alexey Milovidov
6815bd7c00 dbms: addition to prev. revision [#METR-15553]. 2015-07-15 05:58:28 +03:00
Alexey Arno
aa30036fd4 dbms: Server: Cosmetic changes that make easier to read, understand, and maintain the code that handles UNION ALL. [#METR-14099] 2015-07-13 18:02:29 +03:00