Commit Graph

2389 Commits

Author SHA1 Message Date
proller
f749405bf0 libressl as submodule (#1983)
* Allow use bundled *ssl library

* fix

* Add submodule

* Fixes

* fix

* fixes

* fixes

* fix

* fix

* update poco

* fix warnings

* fix

* fix
2018-03-02 03:17:25 +03:00
Alexey Milovidov
b162850754 Fixed error in checking limit on number of columns to read; added test for unnecessary columns removal inside subqueries with UNION ALL #1947 [#CLICKHOUSE-2210] 2018-03-01 11:46:59 +03:00
Alexey Milovidov
0213071683 Merge remote-tracking branch 'origin/master' into better-union-all-try2 2018-03-01 09:18:59 +03:00
Alexey Milovidov
15dc5da190 Fixed error #1947 2018-03-01 09:07:04 +03:00
Alexey Milovidov
b9c8c04d4b Fixed error #1947 2018-03-01 08:42:44 +03:00
Alexey Milovidov
f7e0912d81 Added support for LIMIT BY arbitary expressions [#CLICKHOUSE-3613] #1947 2018-03-01 08:24:56 +03:00
Alexey Milovidov
e604be2799 Fixed error #1947 2018-03-01 07:57:51 +03:00
Alexey Milovidov
f159be3832 Fixed error #1947 2018-03-01 07:42:18 +03:00
Alexey Milovidov
280b4663c1 Caching table functions in query context #1947 2018-03-01 04:49:36 +03:00
Alexey Milovidov
e0798edc09 Better UNION ALL: development #1947 2018-03-01 04:25:06 +03:00
proller
d6a1f8470f CLICKHOUSE-3553 Rebuild loggers on every config change (#1973)
* Macos test fix

* Fix freebsd build

* CLICKHOUSE-3553 Rebuild loggers on every config change

* rename clickhouse_common_configprocessor -> clickhouse_common_config; move Server/ConfigReloader.cpp -> Common/Config/

* CLICKHOUSE-3553 Set new level to all loggers on reload

* Dont use hash

* Update BaseDaemon.h
2018-02-28 23:34:25 +03:00
Alexey Milovidov
c8ca339c24 Merge remote-tracking branch 'origin/master' into better-union-all-try2 2018-02-28 21:35:49 +03:00
Vitaliy Lyudvichenko
9c889af882 Add allow_distributed_ddl setting. [#CLICKHOUSE-3611]
Clearer exception message.
Fixed Int64 settings parsing.
2018-02-28 16:23:40 +03:00
Alexey Milovidov
8b2ca20da2 Better UNION ALL: development #1947 2018-02-28 07:55:43 +03:00
Alexey Milovidov
7fc6e0f16e Better UNION ALL: development #1947 2018-02-28 07:51:09 +03:00
Alexey Milovidov
672fc3a441 Better UNION ALL: development #1947 2018-02-28 07:49:39 +03:00
Alexey Milovidov
f4dbca54a1 Fixed bad code #1947 2018-02-28 07:30:27 +03:00
Alexey Milovidov
ca879f368b Added setting "union_all_sequential" #1947 2018-02-28 05:33:04 +03:00
Alexey Milovidov
73e208ff97 Better UNION ALL: development #1947 2018-02-28 05:32:34 +03:00
Alexey Milovidov
9ea0a603a0 Better UNION ALL: development #1947 2018-02-28 04:29:55 +03:00
Alexey Milovidov
17ffe77b8c Better UNION ALL: development #1947 2018-02-28 00:03:28 +03:00
Alexey Milovidov
492053bc43 Better UNION ALL: development #1947 2018-02-27 23:43:42 +03:00
Alexey Milovidov
a3386b3eba Better UNION ALL: development #1947 2018-02-27 23:16:58 +03:00
Alexey Milovidov
7526d65cff Better UNION ALL: development #1947 2018-02-27 22:38:59 +03:00
Alexey Milovidov
d4937621d3 Better UNION ALL: development #1947 2018-02-27 22:02:13 +03:00
Alexey Milovidov
8d72ca25d5 Better UNION ALL: development #1947 2018-02-27 22:00:55 +03:00
Alexey Milovidov
5d27e43f96 Better UNION ALL: development #1947 2018-02-27 00:00:42 +03:00
Alexey Milovidov
417cc7f6e2 Better UNION ALL: development #1947 2018-02-26 13:19:47 +03:00
Alexey Milovidov
4dee4770eb Better UNION ALL: development #1947 2018-02-26 13:00:56 +03:00
Alexey Milovidov
437ba4856b Better UNION ALL: development #1947 2018-02-26 12:55:14 +03:00
Alexey Milovidov
44d0736138 Better UNION ALL: development #1947 2018-02-26 12:10:11 +03:00
Alexey Milovidov
ac37b89b16 Better UNION ALL: development #1947 2018-02-26 12:05:06 +03:00
Alexey Milovidov
6ef9917fe2 Better UNION ALL: development #1947 2018-02-26 09:12:59 +03:00
Alexey Milovidov
a586fd119a Merge branch 'master' into better-union-all-try2 2018-02-26 08:05:53 +03:00
Alexey Milovidov
89c0dc2eea Fixed build #1947 2018-02-26 06:45:46 +03:00
Alexey Milovidov
d6121a8544 Simplification of AST #1947 2018-02-26 06:40:20 +03:00
Alexey Milovidov
601ff1eee4 Simplification of AST #1947 2018-02-26 06:37:08 +03:00
Alexey Milovidov
88b01e867d Better UNION ALL: development #1947 2018-02-25 10:39:45 +03:00
Alexey Milovidov
6e93635275 Better UNION ALL: development #1947 2018-02-25 09:35:24 +03:00
Alexey Milovidov
6e8572e628 Merge branch 'master' into better-union-all-try2 2018-02-25 08:03:59 +03:00
Alexey Milovidov
c86fd31097 Addition to prev. revision [#CLICKHOUSE-2] 2018-02-25 05:23:04 +03:00
Alexey Milovidov
ab594375ab Better UNION ALL: development #1947 2018-02-25 03:50:53 +03:00
Alexey Milovidov
97766684d7 Fixed (harmless) race condition [#CLICKHOUSE-2] 2018-02-24 07:46:14 +03:00
Alexey Milovidov
2b974554e5 Fixed test [#CLICKHOUSE-2] 2018-02-24 04:55:43 +03:00
Alexey Milovidov
3772c88472 Removed bad code that may lead to (harmless) race condition [#CLICKHOUSE-2] 2018-02-24 04:31:42 +03:00
alexey-milovidov
b12a41cdd5
Merge pull request #1951 from chenxing-xc/master
fix CHECK TABLE distributed_table crash issue
2018-02-23 14:13:09 +03:00
Alexey Milovidov
cae7f96f34 Simplification [#CLICKHOUSE-2] 2018-02-23 13:02:29 +03:00
Alexey Milovidov
ffc1a76d28 Removed unused method #1947 2018-02-23 12:09:49 +03:00
chenxing.xc
c966bf0b95 update fix check table 2018-02-23 16:40:39 +08:00
Alexey Milovidov
36a9502e80 Simplification #1896 2018-02-23 11:05:21 +03:00
chenxing.xc
ec28a1e661 fix check distribute_table crash issue 2018-02-23 15:17:43 +08:00
Alexey Milovidov
466837b17c Removed controversial feature #1896 2018-02-23 10:06:59 +03:00
Alexey Milovidov
0207760c05 Limit and quota on result must not apply for intermediate data in subqueries and INSERT SELECT [#CLICKHOUSE-3351] 2018-02-23 09:38:23 +03:00
Alexey Milovidov
1f029c3f15 Preparations #1947 2018-02-23 09:00:48 +03:00
Alexey Milovidov
7063e0cffe Removed unused method #1947 2018-02-23 09:00:03 +03:00
zhang2014
01261181ae ISSUES-117 use reference 2018-02-23 10:15:09 +08:00
Alexey Milovidov
640daaf052 Fixed test #1947 2018-02-23 04:00:47 +03:00
Alexey Milovidov
245fd61b12 Unify NullableAdapterBlockInputStream and CastTypeBlockInputStream #1947 2018-02-23 02:02:35 +03:00
alexey-milovidov
7a5ccc86cc
Merge pull request #1937 from yandex/CLICKHOUSE-3606
Update of clickhouse-copier
2018-02-22 23:42:33 +03:00
alexey-milovidov
2acdba3781
Merge pull request #1943 from yandex/add_path_to_system_tables_and_databases
Add path to system tables and databases
2018-02-22 19:26:19 +03:00
zhang2014
6f3d67be30 ISSUES-1386 fix failed test 2018-02-22 19:28:02 +08:00
Nikolai Kochetov
a75e095a80 added data_path and metadata_path to system.tables 2018-02-22 13:03:35 +03:00
alexey-milovidov
ac05c6f28b
Merge pull request #1902 from kshvakov/master
Использование произвольного ключа партиционирования для таблицы лога запросов
2018-02-22 03:39:00 +03:00
alexey-milovidov
3844b129f4
Update Context.cpp 2018-02-22 03:38:05 +03:00
alexey-milovidov
b6f3f06ef3
Merge branch 'master' into CLICKHOUSE-3606 2018-02-22 02:13:38 +03:00
Alexey Milovidov
72aac966b1 Fixed error with order of columns in FULL JOIN that may lead to segfault [#CLICKHOUSE-2] 2018-02-21 11:16:01 +03:00
Alexey Milovidov
4e3a0f0ac6 Fixed error [#CLICKHOUSE-2] 2018-02-21 09:25:21 +03:00
Alexey Milovidov
76cf9eb40b Fixed error [#CLICKHOUSE-2] 2018-02-21 07:14:03 +03:00
Alexey Milovidov
19a946d8af Preparation [#CLICKHOUSE-2] 2018-02-21 06:54:55 +03:00
Alexey Milovidov
63a9f96198 Preparation [#CLICKHOUSE-2] 2018-02-21 06:49:10 +03:00
Alexey Milovidov
a890473c02 Preparation [#CLICKHOUSE-2] 2018-02-21 06:26:06 +03:00
Alexey Milovidov
a69bd2220a Merge branch 'master' into header-in-output-streams 2018-02-21 04:41:09 +03:00
Tsarkova Anastasia
d99d01ac3a Fix data types for key_ranges 2018-02-20 23:03:15 +03:00
Alexey Milovidov
8942d7c127 Added method "getHeader" in IBlockOutputStream: development [#CLICKHOUSE-2] 2018-02-20 04:38:42 +03:00
Alexey Milovidov
fa6420b34d Added method "getHeader" in IBlockOutputStream: development [#CLICKHOUSE-2] 2018-02-20 04:14:38 +03:00
Alexey Milovidov
4add285d55 Added method "getHeader" in IBlockOutputStream: development [#CLICKHOUSE-2] 2018-02-20 02:39:16 +03:00
Alexey Milovidov
bb05235608 Added method "getHeader" in IBlockOutputStream: development [#CLICKHOUSE-2] 2018-02-20 00:01:46 +03:00
Alexey Milovidov
ee4b5d2527 Added method "getHeader" in IBlockOutputStream: development [#CLICKHOUSE-2] 2018-02-19 23:23:25 +03:00
Vitaliy Lyudvichenko
369f88f65d Rewritten and improved sync distributed insert. [#CLICKHOUSE-3346] 2018-02-19 20:26:47 +03:00
Alexey Milovidov
cd7a4de412 Added method "getHeader" in IBlockOutputStream: development [#CLICKHOUSE-2] 2018-02-19 06:00:16 +03:00
Alexey Milovidov
fa50fe80a0 Added method "getHeader" in IBlockOutputStream: development [#CLICKHOUSE-2] 2018-02-19 03:45:32 +03:00
Alexey Milovidov
7415513151 Return single row for aggregation without keys on empty set: development [#CLICKHOUSE-1920] #51 2018-02-18 08:35:48 +03:00
Alexey Milovidov
a4c10f7499 Header in every stream: development [#CLICKHOUSE-2] 2018-02-18 07:17:11 +03:00
Alexey Milovidov
afe09d3138 Removed unused code [#CLICKHOUSE-2] 2018-02-18 06:46:18 +03:00
Alexey Milovidov
754a4296df Header in every stream: fixed non-deterministic test [#CLICKHOUSE-2] 2018-02-18 06:23:48 +03:00
Alexey Milovidov
df4853a13a Header in every stream: development [#CLICKHOUSE-2] 2018-02-18 03:37:22 +03:00
Alexey Milovidov
a673790748 Header in every stream: development [#CLICKHOUSE-2] 2018-02-16 23:53:47 +03:00
Alexey Milovidov
69a9723ce2 Header in every stream: development [#CLICKHOUSE-2] 2018-02-15 22:48:41 +03:00
Alexey Milovidov
30b657a0da Header in every stream: development [#CLICKHOUSE-2] 2018-02-15 21:54:12 +03:00
Alexey Milovidov
921e09b5f8 Merge branch 'master' into header-in-input-streams 2018-02-15 19:20:36 +03:00
Vitaliy Lyudvichenko
a4177287b1 Fixed too deep AST traversal. [#CLICKHOUSE-2] 2018-02-14 20:39:16 +03:00
Kirill Shvakov
ddb618b1d7 Use custom expr for query log 2018-02-14 10:01:41 +02:00
Kirill Shvakov
034566fff3 Use custom partition key for the query logs table 2018-02-14 09:24:26 +02:00
zhang2014
92b27e7b79 ISSUES-117 define error code in InterpreterShowCreateQuery 2018-02-14 15:15:44 +08:00
zhang2014
b89268ceb8 ISSUES-117 add show create & exist temporary table 2018-02-14 12:00:37 +08:00
proller
38343f7649 Internal compiler: write versions in header version mismatch message (using magic)
use same debug/release flags
2018-02-13 21:09:45 +03:00
Vitaliy Lyudvichenko
075a3cd811 Use absoulte paths in Compiler. [#CLICKHOUSE-3573] 2018-02-13 13:32:14 +03:00
Vitaliy Lyudvichenko
56add902d4 Removed superfluous FORMAT statements in .sql files. [#CLICKHOUSE-3] 2018-02-12 23:35:56 +03:00
Vitaliy Lyudvichenko
56bc773249 Fixed exception catching thrown from compiled .so files. [#CLICKHOUSE-3573] 2018-02-12 23:33:31 +03:00
alexey-milovidov
8fb9967903
Merge pull request #1879 from yandex/lambdas-without-prerequisites
Lambdas without prerequisites
2018-02-09 22:22:58 +03:00
alexey-milovidov
d3160393c5
Merge branch 'master' into CLICKHOUSE-3554 2018-02-08 23:07:50 +03:00
Alexey Milovidov
c942da4141 Fixed build #1824 2018-02-08 22:53:34 +03:00
alexey-milovidov
d6b7233aa3
Merge pull request #1824 from zhang2014/fix/ISSUES-117
ISSUES-117 support temporary table management
2018-02-08 22:42:10 +03:00
alexey-milovidov
960fad130c
Update InterpreterShowTablesQuery.cpp 2018-02-08 22:41:10 +03:00
Alexey Milovidov
5872cd5b63 Removed useless code [#CLICKHOUSE-2] 2018-02-08 22:20:24 +03:00
alexey-milovidov
121b163735
Update InterpreterShowTablesQuery.cpp 2018-02-08 22:14:59 +03:00
alexey-milovidov
a69dd93aab
Update InterpreterDropQuery.cpp 2018-02-08 22:14:22 +03:00
Nikolai Kochetov
e02ca10b9a merged with master 2018-02-08 20:46:22 +03:00
Nikolai Kochetov
64b0279af5 removed ColumnExpression and DataTypeExpression [#CLICKHOUSE-3550] 2018-02-08 20:20:10 +03:00
Nikolai Kochetov
27179b375a removed prerequisites [#CLICKHOUSE-3550] 2018-02-08 20:18:52 +03:00
Nikolai Kochetov
583ff32fe8 changed IFunction 2018-02-08 20:18:15 +03:00
Alexey Milovidov
03adf79fdc Miscellaneous #320 #1763 2018-02-08 20:17:48 +03:00
Alexey Milovidov
75fb48c94c Miscellaneous #1763 #320 2018-02-08 20:10:35 +03:00
alexey-milovidov
287dbcc3dd
Merge pull request #1763 from zhang2014/fix/ISSUES-320
ISSUES-320 Fix rewrite expression
2018-02-08 20:07:50 +03:00
Alexey Milovidov
953ab16cde Miscellaneous #1853 2018-02-08 18:31:37 +03:00
Alexey Milovidov
777b4404bd Fixed build #1853 2018-02-08 18:25:46 +03:00
alexey-milovidov
5a03f9e0fb
Merge pull request #1853 from ilyshnikova/master
Implement MergeTree index using for IN operator with tuple of columns.
2018-02-08 18:03:23 +03:00
Tsarkova Anastasia
5ecd50ff44 Adding comments. Reversing infinities. 2018-02-08 17:28:31 +03:00
Vitaliy Lyudvichenko
c575a7fe8a Fix DROP of virtual databases. Add requested changes. [#CLICKHOUSE-3554] 2018-02-08 17:17:51 +03:00
alexey-milovidov
20686ab405
Merge pull request #1847 from yandex/CLICKHOUSE-3558
Add system_profile setting
2018-02-07 21:29:04 +03:00
Tsarkova Anastasia
c50ccabb0a Implement MergeTree index using for IN operator with tuple of columns. 2018-02-07 18:29:00 +03:00
Alexey Milovidov
5324571adf Removed setting "distributed_ddl_allow_replicated_alter" [#CLICKHOUSE-2]. 2018-02-06 21:29:35 +03:00
Alexey Milovidov
7a793e1a80 Removed duplicate comments for embedded documentation of Settings; cleanup [#CLICKHOUSE-2] 2018-02-06 21:28:07 +03:00
Alexey Milovidov
16ff7b7563 Better exception message for "Different expressions with the same alias" [#METRIKASUPP-8947]. 2018-02-05 17:03:01 +03:00
zhang2014
62b6a9e07c ISSUES-117 resolve some opinions 2018-02-03 16:00:14 +08:00
proller
0c00e47930 Fix tests 2018-02-02 20:29:45 +03:00
zhang2014
982b2ee7ca ISSUES-117 resolve some opinions 2018-02-02 22:20:35 +08:00
zhang2014
4875a80825 Merge branch 'master' into fix/ISSUES-117 2018-02-02 20:21:40 +08:00
Vitaliy Lyudvichenko
118b17253e Add system_profile config. [#CLICKHOUSE-3558] 2018-02-01 16:53:44 +03:00
zhang2014
c74970c098 ISSUES-195 fix complex in expression with single element 2018-01-31 16:38:48 +03:00
Vitaliy Lyudvichenko
94f38d744e
Merge pull request #1750 from yandex/CLICKHOUSE-3346
Fault-tolerant cluster copier util
2018-01-31 13:21:51 +03:00
Vitaliy Lyudvichenko
a4248ad45c Resolves #1560. Fixed DROP DATABASE. [#CLICKHOUSE-3] 2018-01-30 13:51:19 +03:00
Nikolai Kochetov
b0f66bb234 remote don't use rpc for local replicas 2018-01-29 13:08:20 +03:00
zhang2014
19e7c291db ISSUES-117 support drop temporary table 2018-01-28 00:19:00 +08:00
zhang2014
bfe48f1255 ISSUES-117 support show tables with temporary table 2018-01-28 00:07:55 +08:00
proller
288c6c8406 Fix test in macos 2018-01-26 17:18:35 +03:00
Vitaliy Lyudvichenko
e2fb6d8c80 Merge remote-tracking branch 'origin/master' into CLICKHOUSE-3346 2018-01-25 22:00:08 +03:00
Vitaliy Lyudvichenko
61233b886a Better system.part_log. [#CLICKHOUSE-3342] 2018-01-25 21:40:02 +03:00
zhang2014
f0e097ea4d ISSUES-320 fix test failed 2018-01-26 00:57:48 +08:00
Vitaliy Lyudvichenko
8be2bfc513 Added docs and requested changes. [#CLICKHOUSE-3346] 2018-01-25 15:45:07 +03:00
Alexey Milovidov
6a60a6dbde Fixed error in prev. revision [#CLICKHOUSE-2] 2018-01-23 22:43:06 +03:00
alexey-milovidov
b8cb9267c7
Merge pull request #1804 from arkhipov/master
Replace subqueries and table expressions on the right side of the IN …
2018-01-23 22:31:49 +03:00
Vlad Arkhipov
6738d6a995 Add comments. Improve method names. 2018-01-23 11:18:12 +03:00
Nikolai Kochetov
018c32010e added macro for cluster name in Distributerd table and DDL [#CLICKHOUSE-3409] 2018-01-22 21:49:17 +03:00
alexey-milovidov
21274e80cc
Update Set.cpp 2018-01-22 21:07:55 +03:00
Vitaliy Lyudvichenko
1000328571 Merge remote-tracking branch 'origin/master' into CLICKHOUSE-3346 2018-01-22 20:31:08 +03:00
Alexey Milovidov
98c52ede21 Style [#CLICKHOUSE-2] 2018-01-22 07:05:18 +03:00
Alexey Milovidov
5647a26f45 Style [#CLICKHOUSE-2] 2018-01-22 07:04:57 +03:00
zhang2014
0f415424f8 ISSUES-320 fix failed test 2018-01-21 18:58:13 +08:00
zhang2014
054777a5ab ISSUES-320 fix rewrite expression for union all 2018-01-21 17:29:55 +08:00