Commit Graph

8639 Commits

Author SHA1 Message Date
Alexey Milovidov
738f1685b2 Fixed build after merge [#CLICKHOUSE-2]. 2017-08-25 19:35:10 +03:00
Vitaliy Lyudvichenko
f8c9059857 Fixed SIGABRT in DDLWorker. [#CLICKHOUSE-3251] 2017-08-25 19:31:57 +03:00
Marek Vavruša
3659caad7d ZooKeeper: use seeded random device to shuffle node list #1149
std::random_shuffle() may or may not use std::rand() which isn't
seeded, and since configuration parsing runs predictably as one
of the first things after server startup, the list of ZK nodes
is shuffled the same way on all replicas.
2017-08-25 18:37:27 +03:00
Nikolai Kochetov
24e135fbe6 supported arraySlice with 2 arguments, added comments [#CLICKHOUSE-2090] 2017-08-25 16:54:08 +03:00
Vitaliy Lyudvichenko
b818258af9 Add ability to run an integration test env without test runs. [#CLICKHOUSE-2] 2017-08-25 16:51:12 +03:00
Nikolai Kochetov
1ec04d1024 supported || for arrayConcat [#CLICKHOUSE-2090] 2017-08-25 16:05:26 +03:00
Nikolai Kochetov
239f4f2d36 merged with master 2017-08-25 15:05:18 +03:00
Nikolai Kochetov
e223d07031 fixed test [#CLICKHOUSE-2090] 2017-08-25 14:58:33 +03:00
Nikolai Kochetov
0f4e7f1833 fixed array slice with offset <= -(array length) [#CLICKHOUSE-2090] 2017-08-25 14:29:49 +03:00
Nikolai Kochetov
f70ead2539 added test [#CLICKHOUSE-2090] 2017-08-24 22:39:30 +03:00
Nikolai Kochetov
d213efa974 fixed slice for nullable index [#CLICKHOUSE-2090] 2017-08-24 22:19:37 +03:00
Nikolai Kochetov
d8529e1846 unused type alias [#CLICKHOUSE-2090] 2017-08-24 21:16:25 +03:00
Nikolai Kochetov
09a307b94f removed debug stderr output [#CLICKHOUSE-2090] 2017-08-24 19:46:41 +03:00
Nikolai Kochetov
e6fd55ff42 added arrayPushBack arrayPushFront arrayPopBack arrayPopFront function [#CLICKHOUSE-2090] 2017-08-24 19:46:40 +03:00
Nikolai Kochetov
096d34bb7f added arraySlice function [#CLICKHOUSE-2090] 2017-08-24 19:46:34 +03:00
Nikolai Kochetov
c1479a5594 updated GatherUtils [#CLICKHOUSE-2090] 2017-08-24 19:46:15 +03:00
Nikolai Kochetov
c3fe8bb026 added FunctionArrayConcat [#CLICKHOUSE-2090] 2017-08-24 19:45:13 +03:00
robot-metrika-test
7943a21fcf Auto version update to [54281] 2017-08-24 16:37:27 +03:00
Alexey Milovidov
58fc8a2c0b Merge branch 'master' of github.com:yandex/ClickHouse 2017-08-24 16:26:19 +03:00
Alexey Milovidov
fd552774c0 Fixed translation error [#CLICKHOUSE-2]. 2017-08-24 16:25:51 +03:00
proller
49ae03a4a7 Fix build in freebsd (#1129) 2017-08-23 18:58:42 +03:00
Alexey Zatelepin
eec6a3ecb9 add forgotten aggregate functions to SpecializedAggregator.h [#CLICKHOUSE-3247] 2017-08-23 17:00:36 +03:00
Alexey Zatelepin
ec96183f59 put AggregateFunctionStatistics implementation out of anonymous namespace [#CLICKHOUSE-3247] 2017-08-23 17:00:36 +03:00
Alexey Zatelepin
8620dd6876 runtime compilation fix: put groupArray implementation out of anonymous namespace [#CLICKHOUSE-3247]
Demangled symbols from anonymous namespace contain "::(anonymous namespace)::" string
and thus cannot be used with runtime compilation of aggregation functions.
2017-08-23 17:00:36 +03:00
Vitaliy Lyudvichenko
02f0bcb17f Fixed incorrect assertion in INSERT queries with binary formats. [#CLICKHOUSE-3242] 2017-08-23 16:57:22 +03:00
Nikolai Kochetov
7fa337c297 added tests [#CLICKHOUSE-3245] 2017-08-23 15:44:18 +03:00
Nikolai Kochetov
c43a13cb81 fixed async insertion into local shard of distributed [#CLICKHOUSE-3245] 2017-08-23 15:44:18 +03:00
Vitaliy Lyudvichenko
61289c5c61 Fixed test after forcing ENGINE for MV. [#CLICKHOUSE-3] 2017-08-23 14:44:53 +03:00
Alexey Milovidov
ee553aac65 Updated test of string hashes [#CLICKHOUSE-3244]. 2017-08-22 20:32:13 +03:00
Alexey Milovidov
4eb77e6628 Updated test of string hashes [#CLICKHOUSE-3244]. 2017-08-22 20:32:13 +03:00
Alexey Milovidov
c34211e0c5 More sophisticated test of hash tables with integer keys [#CLICKHOUSE-3244]. 2017-08-22 20:32:13 +03:00
Alexey Milovidov
033b139288 More sophisticated test of hash tables with integer keys [#CLICKHOUSE-3244]. 2017-08-22 20:32:13 +03:00
Alexey Milovidov
003d2525e0 More sophisticated test of hash tables with integer keys [#CLICKHOUSE-3244]. 2017-08-22 20:32:13 +03:00
Alexey Milovidov
f39db7ba1a More sophisticated test of hash tables with integer keys [#CLICKHOUSE-3244]. 2017-08-22 20:32:13 +03:00
Alexey Milovidov
8085359518 More sophisticated test of hash tables with integer keys [#CLICKHOUSE-3244]. 2017-08-22 20:32:13 +03:00
Alexey Milovidov
f8b2400a84 More sophisticated test of hash tables with integer keys [#CLICKHOUSE-3244]. 2017-08-22 20:32:13 +03:00
Alexey Milovidov
3748b7b332 Added hopscotch-map just for tests [#CLICKHOUSE-3244]. 2017-08-22 20:32:13 +03:00
Alexey Milovidov
e47a29fd4b More sophisticated test of hash tables with integer keys [#CLICKHOUSE-2]. 2017-08-22 20:32:13 +03:00
Alexey Milovidov
75f1df36e4 Miscellaneous [#CLICKHOUSE-2]. 2017-08-22 20:29:02 +03:00
Alexey Milovidov
fc409f61e5 Miscellaneous [#CLICKHOUSE-2]. 2017-08-20 16:12:14 +03:00
Alexey Milovidov
2fb7a34f0d Miscellaneous [#CLICKHOUSE-2]. 2017-08-20 04:07:11 +03:00
Alexey Milovidov
7dc4d6f7b3 Miscellaneous [#CLICKHOUSE-2]. 2017-08-20 04:05:59 +03:00
Alexey Zatelepin
ce3e4676fa remove unnecessary calls to find() [#CLICKHOUSE-2171] 2017-08-19 21:35:01 +03:00
Alexey Milovidov
e25f232b5a Raising limit on max size for merge (step 1 of 4) [#CLICKHOUSE-2] 2017-08-19 01:56:19 +03:00
alexey-milovidov
1d39b94992 Update 00101_materialized_views_and_insert_without_explicit_database.sql 2017-08-19 00:10:53 +03:00
Vitaliy Lyudvichenko
e52428ddb2 Fixed SIGSEGV in CREATE TABLE AS <MV>. MV without ENGINE is forbidden! [#CLICKHOUSE-2]
Resolves #1112
Resolves #598
2017-08-19 00:10:53 +03:00
Vadim Skipin
61f65e97a8 Fix typo 2017-08-18 22:38:56 +03:00
Alexey Milovidov
12a034478c Fixed bad translation [#CLICKHOUSE-2]. 2017-08-18 22:30:39 +03:00
Alexey Milovidov
d5b9f2127f Added test result [#CLICKHOUSE-2]. 2017-08-18 22:06:39 +03:00
Alexey Milovidov
304ccf29b2 Fixed error; added test [#CLICKHOUSE-2]. 2017-08-18 22:02:50 +03:00
Alexey Milovidov
5d835e88de Merge branch 'master' of github.com:yandex/ClickHouse 2017-08-18 21:45:10 +03:00
Alexey Milovidov
434a7d8f38 Fixed function "substring" with out-of-bound negative offset argument [#CLICKHOUSE-2]. 2017-08-18 21:45:02 +03:00
Vadim Skipin
5f4e833925 Cleanup function factories:
* Switch to std::function to allow more complex creator logic
* Cleanup headers
2017-08-18 21:15:57 +03:00
Alexey Milovidov
2e468c143d Added convenience comment in config [#CLICKHOUSE-2]. 2017-08-18 20:05:53 +03:00
Alexey Milovidov
f918e22438 Miscellaneous [#CLICKHOUSE-2]. 2017-08-18 19:36:02 +03:00
Alexey Zatelepin
e545777187 fix PoolWithFailoverBase::TryResult initialization 2017-08-18 15:38:43 +03:00
robot-metrika-test
7b6fa26151 Auto version update to [54280] 2017-08-18 04:35:46 +03:00
Alexey Milovidov
4687a2730d Allow to override umask in config [#CLICKHOUSE-2]. 2017-08-18 04:00:13 +03:00
proller
c720524078 Auto version update to [54279] 2017-08-18 02:03:15 +03:00
proller
97699eeea2 Auto version update to [54278] 2017-08-18 01:51:12 +03:00
Vitaliy Lyudvichenko
1a68a17a06 Avoid infinite loop in DDLWorker if ZooKeeper dies. [#CLICKHOUSE-2] 2017-08-17 23:06:38 +03:00
Vitaliy Lyudvichenko
f28d0cff3c Add more detailed exception message. [#CLICKHOUSE-3234] 2017-08-17 23:06:38 +03:00
Nikolai Kochetov
f8bf45a5ec added test [#CLICKHOUSE-3237] 2017-08-17 23:06:00 +03:00
Nikolai Kochetov
850bc9f19d fixed reading const zero column in prewhere 2017-08-17 23:06:00 +03:00
Alexey Milovidov
9f956d97dd Removed debug output [#CLICKHOUSE-2]. 2017-08-17 21:43:39 +03:00
Marek Vavruša
5ba535f05f Dictionaries: remove duplicate MySQLDictionarySource.h include
refs #1110
2017-08-17 01:35:19 +03:00
proller
175cd99288 Freebsd fixes: fix build with libc++, fix find system lib double-conversion (#1109)
* Cmake: Don't detect and use -no-pie flag with clang

* Camke: find_unwind: Fix disable on arm

* Freebsd fixes: fix build with libc++, fix find system lib double-conversion
2017-08-17 00:01:43 +03:00
Alexey Milovidov
16d6c4f9e7 Removed very old protocol compatibility features [#CLICKHOUSE-2]. 2017-08-16 23:27:35 +03:00
Alexey Milovidov
eb88391655 Fixed error with alias substitution [#CLICKHOUSE-2986]. 2017-08-16 23:10:25 +03:00
Alexey Milovidov
3a86673aea Fixed error when part could become broken during ALTER MODIFY of element of Nested column [#CLICKHOUSE-3232]. 2017-08-16 22:41:52 +03:00
Alexey Milovidov
164ad05ae1 Little better [#CLICKHOUSE-3231]. 2017-08-16 22:22:49 +03:00
Alexey Milovidov
b6cafb9a88 Set "max_replica_delay_for_distributed_queries" to five minutes by default [#CLICKHOUSE-2141]. 2017-08-16 20:21:39 +03:00
Alexey Milovidov
c629799500 Fixed insufficient arguments checking [#CLICKHOUSE-3102]. 2017-08-16 17:21:24 +03:00
Alberto
727ca81998 Fixed typo 2017-08-16 14:08:02 +03:00
Alexey Milovidov
68c57b2b61 Merge branch 'master' of github.com:yandex/ClickHouse 2017-08-16 00:53:03 +03:00
Alexey Milovidov
2ddf462563 Fixed regression [#CLICKHOUSE-2]. 2017-08-16 00:52:52 +03:00
Vitaliy Lyudvichenko
ad40104022 Unix timestamp format for DateTime fields in CSV. Resolves #366. [#CLICKHOUSE-3168] 2017-08-15 23:22:36 +03:00
Alexey Milovidov
dc29ae7e73 Added test (tnx. egatov) [#CLICKHOUSE-2]. 2017-08-15 23:17:50 +03:00
Alexey Milovidov
6033221198 Merge branch 'master' of github.com:yandex/ClickHouse 2017-08-15 23:14:32 +03:00
Alexey Milovidov
4272265128 Fixed LimitReadBuffer [#CLICKHOUSE-2]. 2017-08-15 23:14:15 +03:00
Alexey Zatelepin
0185fd4542 fix parsing min-max dates from part name [#CLICKHOUSE-3000] 2017-08-15 23:03:59 +03:00
Nikolai Kochetov
f8513b932f removed ability to select from external temporary table by query_id 2017-08-15 22:31:40 +03:00
Nikolai Kochetov
89df47fd52 added test for drop temporary table 2017-08-15 22:31:40 +03:00
Nikolai Kochetov
9c6f1a1e4b supported drop query for temporary tables [#CLICKHOUSE-3219] 2017-08-15 22:31:40 +03:00
Alexey Zatelepin
372801c59b fix comments [#CLICKHOUSE-3000] 2017-08-15 22:30:52 +03:00
Alexey Zatelepin
0df4ae6b02 do not use unnecessary temporary objects to query a set of parts [#CLICKHOUSE-3000] 2017-08-15 22:30:52 +03:00
Alexey Zatelepin
f25f0cd759 reduce number of places where partitioning by month is assumed [#CLICKHOUSE-3000] 2017-08-15 22:30:52 +03:00
robot-metrika-test
335078ae90 Auto version update to [54275] 2017-08-15 19:18:02 +03:00
Vitaliy Lyudvichenko
8a14cc49ff asyncMulti() -> multi(). [#CLICKHOUSE-3221] 2017-08-15 19:18:02 +03:00
robot-metrika-test
c305b77871 Auto version update to [54274] 2017-08-14 19:07:55 +03:00
Vitaliy Lyudvichenko
05d3f338ca Add useful .gitignore. [#CLICKHOUSE-2] 2017-08-14 15:03:43 +03:00
Vitaliy Lyudvichenko
33a50b4d65 Fix false IOError messages in integration tests log. [#CLICKHOUSE-2] 2017-08-14 14:49:30 +03:00
robot-metrika-test
b1bc0a9e99 Auto version update to [54273] 2017-08-14 09:49:06 +03:00
Alexey Milovidov
5fe560e7f2 Merge branch 'master' of github.com:yandex/ClickHouse 2017-08-14 08:51:13 +03:00
Alexey Milovidov
5af5f78cb7 Terminate only DDLWorker in case of unexpected exception in DDLWorker [#CLICKHOUSE-4]. 2017-08-14 08:51:03 +03:00
robot-metrika-test
a16ed9fc32 Auto version update to [54272] 2017-08-14 08:49:05 +03:00
Alexey Milovidov
1495490726 DDLWorker: better [#CLICKHOUSE-5]. 2017-08-14 08:44:04 +03:00
Alexey Milovidov
957fb9f2e5 Added test [#CLICKHOUSE-2]. 2017-08-14 07:49:20 +03:00
Alexey Milovidov
09d83eecd0 Moved code to cpp [#CLICKHOUSE-2]. 2017-08-14 07:42:04 +03:00
alexey-milovidov
94a15df626 Update LimitReadBuffer.h 2017-08-14 07:37:01 +03:00
alexey-milovidov
cbed1415d7 Update LimitReadBuffer.h 2017-08-14 07:37:01 +03:00
alexey-milovidov
16f0af8018 Update LimitReadBuffer.h 2017-08-14 07:37:01 +03:00
alexey-milovidov
d87b615bdf Update LimitReadBuffer.h 2017-08-14 07:37:01 +03:00
alexey-milovidov
3330cd6a7f Update LimitReadBuffer.h 2017-08-14 07:37:01 +03:00
Evgeniy Gatov
2e6eb504dc LimitReadBuffer fix [#CLICKHOUSE-2]. 2017-08-14 07:37:01 +03:00
robot-metrika-test
eca1b39dee Auto version update to [54271] 2017-08-14 07:25:10 +03:00
Alexey Milovidov
986c6c729d Fixed incompatibility [#CLICKHOUSE-2]. 2017-08-14 07:23:38 +03:00
Alexey Milovidov
e7dcd1cc71 Merge branch 'master' of github.com:yandex/ClickHouse 2017-08-14 04:30:29 +03:00
Alexey Milovidov
96d8ba9e3f Fixed typo [#CLICKHOUSE-2]. 2017-08-14 04:29:19 +03:00
robot-metrika-test
11adefa2c0 Auto version update to [54270] 2017-08-14 04:04:51 +03:00
Alexey Milovidov
6ec873c75e Fixed test (it was dependent on time zone) [#CLICKHOUSE-2]. 2017-08-14 03:02:12 +03:00
Alexey Milovidov
0ef64e5dfe Fixed error [#CLICKHOUSE-2]. 2017-08-14 02:58:04 +03:00
Alexey Milovidov
547516c636 Fixed errors after merge [#CLICKHOUSE-2]. 2017-08-13 12:27:38 +03:00
Alexey Milovidov
1cc50263d8 Merge branch 'master' of github.com:yandex/ClickHouse 2017-08-13 12:20:15 +03:00
Alexey Milovidov
9aca95001e Fixed regression, added test [#CLICKHOUSE-2]. 2017-08-13 12:20:05 +03:00
Vitaliy Lyudvichenko
bf1c4d156a Fix errors after rebase, better logging. [#CLICKHOUSE-3128] 2017-08-13 12:18:46 +03:00
Vitaliy Lyudvichenko
04ab103d92 Avoid extra ZK calls on cleanup. [#CLICKHOUSE-3128] 2017-08-13 12:18:46 +03:00
alexey-milovidov
7ba0fcaf51 Update DDLWorker.cpp 2017-08-13 12:18:46 +03:00
alexey-milovidov
15fa88d25b Update DDLWorker.cpp 2017-08-13 12:18:46 +03:00
alexey-milovidov
4af3e55699 Update DDLWorker.cpp 2017-08-13 12:18:46 +03:00
Vitaliy Lyudvichenko
d9ce96f8f5 Fixed test and misspellings. [#CLICKHOUSE-3207] 2017-08-13 12:18:46 +03:00
Vitaliy Lyudvichenko
f815498e34 Fix error codes skipping. [#CLICKHOUSE-2] 2017-08-13 12:18:46 +03:00
Vitaliy Lyudvichenko
a34ab8201a Add FORMAT section for DDL queries CREATE, ALTER, RENAME, DROP. [#CLICKHOUSE-3128] 2017-08-13 12:18:46 +03:00
Vitaliy Lyudvichenko
4ef5d14722 Add distributed_ddl_task_timeout setting. [#CLICKHOUSE-3128] 2017-08-13 12:18:46 +03:00
Vitaliy Lyudvichenko
183c55676e Fixed ON CLUSTER DDL for Views. [#CLICKHOUSE-3128] 2017-08-13 12:18:46 +03:00
Vitaliy Lyudvichenko
cdf95ab308 Fixed race condition in case of different cluster definitions. [#CLICKHOUSE-3128] 2017-08-13 12:18:46 +03:00
Vitaliy Lyudvichenko
e4785aeb4d Simplified clean queue logic. Added more tests. [#CLICKHOUSE-3128] 2017-08-13 12:18:46 +03:00
Vitaliy Lyudvichenko
c2e84d6df7 Fixed several errors in case of connection loss. [#CLICKHOUSE-3128] 2017-08-13 12:18:46 +03:00
Vitaliy Lyudvichenko
cb02a1b3b5 Add random ZK packets drops into test. Fixed a couple bugs. [#CLICKHOUSE-3128] 2017-08-13 12:18:46 +03:00
Vitaliy Lyudvichenko
4a7927b186 Many improvements. [#CLICKHOUSE-3128] 2017-08-13 12:18:46 +03:00
Vitaliy Lyudvichenko
c2cf3f81be Fix test after rebase. [#CLICKHOUSE-312] 2017-08-13 12:18:46 +03:00
Vitaliy Lyudvichenko
628de0a3ea Fixed logging of DDL queries. [#CLICKHOUSE-3128] 2017-08-13 12:18:46 +03:00
Vitaliy Lyudvichenko
736feab79f Add port field. [#CLICKHOUSE-3128] 2017-08-13 12:18:46 +03:00
Vitaliy Lyudvichenko
7e8f3a0561 Add parse error handling. [#CLICKHOUSE-3128] 2017-08-13 12:18:46 +03:00
Vitaliy Lyudvichenko
c65c49b50a Add config-based host name selection. [#CLICKHOUSE-3128] 2017-08-13 12:18:46 +03:00
alexey-milovidov
3c0d0274d0 Update executeQuery.h 2017-08-13 12:17:09 +03:00
Alexey Zatelepin
7b0a7def02 remove unused setting [#CLICKHOUSE-3151] 2017-08-13 12:17:09 +03:00
Alexey Zatelepin
67dffb9be6 simplify MultiplexedConnections further (so that it works with only one shard) [#CLICKHOUSE-3151] 2017-08-13 12:17:09 +03:00
Alexey Zatelepin
c99f3d7ee0 add test [#CLICKHOUSE-3151] 2017-08-13 12:17:09 +03:00
Alexey Zatelepin
b469ef1792 don't use local replica if its delay is unacceptable [#CLICKHOUSE-3151] 2017-08-13 12:17:09 +03:00
Alexey Zatelepin
36dc7857a1 make LazyBlockInputStream thread-safe [#CLICKHOUSE-3151] 2017-08-13 12:17:09 +03:00
Alexey Zatelepin
3f3b7f61e2 always send changed settings for remote connections [#CLICKHOUSE-3151] 2017-08-13 12:17:09 +03:00
Alexey Zatelepin
ee457eca8a remove shard multiplexing code, simplify [#CLICKHOUSE-3151] 2017-08-13 12:17:09 +03:00
Alexey Zatelepin
133be4d739 move and rename things [#CLICKHOUSE-3151] 2017-08-13 12:17:09 +03:00
Alexey Milovidov
1e1dc8828a Miscellaneous [#CLICKHOUSE-2]. 2017-08-13 00:02:45 +03:00
Vitaliy Lyudvichenko
1c8a280d63 Fixed escapeForFileName(). [#CLICKHOUSE-2] 2017-08-12 23:46:22 +03:00
Vitaliy Lyudvichenko
f36caa9c99 Parameter rename. [#CLICKHOUSE-3213] 2017-08-12 03:46:42 +03:00
Vitaliy Lyudvichenko
04dcec32b4 Specialized implementation of groupArray() for Date and DateTime. [#CLICKHOUSE-3213] 2017-08-12 03:46:42 +03:00
Nikolai Kochetov
b7f8ac1f2d rewrote rewriting of SELECT query in StorageMerge with WITH statement 2017-08-12 00:01:28 +03:00
Nikolai Kochetov
ac87cb035f added test to former WITH clause in SELECT query 2017-08-12 00:01:28 +03:00