Commit Graph

7071 Commits

Author SHA1 Message Date
Alexey Milovidov
aea1d0ce4a Fixed error [#CLICKHOUSE-2]. 2017-12-14 00:26:17 +03:00
Alexey Milovidov
9cfd3da183 Merge branch 'master' of github.com:yandex/ClickHouse 2017-12-14 00:09:41 +03:00
Alexey Milovidov
0dd0d76b19 Added changes from proller [#CLICKHOUSE-2]. 2017-12-14 00:09:31 +03:00
alexey-milovidov
58cb0ab57d
Merge pull request #1602 from kshvakov/master
client #1600: add network-bandwidth option
2017-12-13 23:54:03 +03:00
alexey-milovidov
7908818ac1
Update Client.cpp 2017-12-13 23:53:53 +03:00
alexey-milovidov
1612aab3c5
Merge pull request #1636 from bocharov/master
Fix mark cache settings initialization.
2017-12-13 23:45:45 +03:00
Alexey Milovidov
b3277408c4 Added fix from proller [#CLICKHOUSE-2]. 2017-12-13 23:43:51 +03:00
Alexey Milovidov
4d40879135 Proper fix for external dictionaries with complex keys [#CLICKHOUSE-2]. 2017-12-13 23:40:03 +03:00
Alex Bocharov
3a320733f3 Fix mark cache settings initialization.
Before this change setting mark_cache_min_lifetime wasn't applied from the user settings, but only from the default.
There reason was that corresponding Settings initialization was after creation of the MarkCache.
This fix moves Settings initialization above creation of the MarkCache.
2017-12-13 20:32:26 +00:00
Alexey Milovidov
9cc424b4b5 Fixed error: loading "preprocessed" files if dictionary/model config was specified with glob [#CLICKHOUSE-3501]. 2017-12-13 23:21:03 +03:00
Alexey Milovidov
f68cf599e6 Removed unused method [#CLICKHOUSE-2] 2017-12-13 22:55:16 +03:00
Alexey Milovidov
0b8688e89b Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-13 22:14:12 +03:00
proller
741117a390
Fix freebsd build. Little cmake fixes. (#1634) 2017-12-13 22:07:12 +03:00
Alexey Milovidov
819287b697 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-13 04:27:53 +03:00
alexey-milovidov
62fb610e4e
Merge pull request #1447 from yandex/support-table-functions-for-desc-and-insert
Support table functions for desc and insert
2017-12-11 23:28:10 +03:00
proller
cbea7bdeb7 Add options to internal compiler: -nostdinc -nostdinc++ -Bprefix= --isysroot= 2017-12-11 23:27:17 +03:00
Nikolai Kochetov
cee84e1120 fix build [#CLICKHOUSE-3397] 2017-12-11 21:40:28 +03:00
Nikolai Kochetov
6c8e5594f9 fix build [#CLICKHOUSE-3397] 2017-12-11 21:38:43 +03:00
Alexey Milovidov
7d04e67262 Merge branch 'write-buffer-from-arena' 2017-12-11 21:25:03 +03:00
Alexey Milovidov
90848adc6b Fixed translation [#CLICKHOUSE-2]. 2017-12-11 21:19:35 +03:00
Nikolai Kochetov
f71b8bf58f merged with master 2017-12-11 21:13:24 +03:00
Nikolai Kochetov
68ccadfc6c removed owned_cluster_for_insertion from StorageDistributed [#CLICKHOUSE-3397] 2017-12-11 21:09:20 +03:00
Alexey Milovidov
3b65d95525 Translated comments and by the way made code better [#CLICKHOUSE-2]. 2017-12-11 21:05:16 +03:00
proller
426c0cc1da Fix debian package build 2017-12-11 20:27:22 +03:00
proller
92ecbea75a Cmake: fix spaces 2017-12-11 15:38:34 +03:00
Alexey Milovidov
524d98c7fc More strict semantic on sharing columns (development) [#CLICKHOUSE-2]. 2017-12-11 05:59:56 +03:00
Alexey Milovidov
c3015bece3 Miscellaneous [#CLICKHOUSE-2]. 2017-12-11 01:44:04 +03:00
Alexey Milovidov
de75e40528 Clarifications [#CLICKHOUSE-2]. 2017-12-11 00:05:21 +03:00
proller
cc895f4698 Allow to build several binaries 2017-12-10 22:44:24 +03:00
artpaul
b46ce4eca9 silence unused parameters 2017-12-10 00:31:05 +03:00
proller
0a83bde143 Comment <listen_host> in default config (allows start server with default config in ipv6 disabled) 2017-12-10 00:30:36 +03:00
Alexey Milovidov
6a568ab692 Technically allowed empty arrays of unspecified type [#CLICKHOUSE-2]. 2017-12-09 23:56:53 +03:00
Alexey Milovidov
ae2e250bc2 Modified comment [#CLICKHOUSE-2]. 2017-12-09 20:40:31 +03:00
Alexey Milovidov
abf53189bb More strict checks on compositions of columns [#CLICKHOUSE-2]. 2017-12-09 20:32:18 +03:00
Alexey Milovidov
ddd475ec68 Merge branch 'master' of github.com:yandex/ClickHouse 2017-12-09 20:16:34 +03:00
Alexey Milovidov
71116c4d82 Fixed error [#CLICKHOUSE-2]. 2017-12-09 20:16:24 +03:00
proller
759914b578 Cmake: Make symlinks as targets (allow "make clickhouse-server") (#1605)
* Use internal clang to copy headers

* Cmake: Make symlinks as targets (allow "make clickhouse-server")

* clean

* note

* fix

* fix

* Change lib names to *-lib

* rename
2017-12-09 19:36:03 +03:00
Alexey Milovidov
b34cdeec79 Fixed error [#CLICKHOUSE-2] 2017-12-09 19:17:37 +03:00
Alexey Milovidov
6ecc93e607 Fixed error [#CLICKHOUSE-2] 2017-12-09 19:17:37 +03:00
Alexey Milovidov
dd40e00f86 Fixed error [#CLICKHOUSE-2] 2017-12-09 19:17:37 +03:00
Alexey Milovidov
6cf5c63f4e Fixed error [#CLICKHOUSE-2] 2017-12-09 19:17:37 +03:00
Alexey Milovidov
52088c9c07 Various fixes [#CLICKHOUSE-2] 2017-12-09 19:17:37 +03:00
Alexey Milovidov
291467647a Cleanup semantics of data types [#CLICKHOUSE-2]. 2017-12-09 19:17:37 +03:00
Alexey Milovidov
b00bb5c348 Added support for nullable types in HAVING section in presence of WITH TOTALS [#CLICKHOUSE-3431]. 2017-12-09 19:17:37 +03:00
Alexey Milovidov
44bcae8cce Simplification of Nullable [#CLICKHOUSE-2] 2017-12-09 19:17:37 +03:00
Alexey Milovidov
ae3d44f30f Cleanup semantics of data types [#CLICKHOUSE-2]. 2017-12-09 19:17:37 +03:00
Alexey Milovidov
254030d6c3 Cleanup semantics of data types [#CLICKHOUSE-2]. 2017-12-09 19:17:37 +03:00
Alexey Milovidov
3def5f03f5 Cleanup semantics of data types [#CLICKHOUSE-2]. 2017-12-09 19:17:37 +03:00
Alexey Milovidov
7f6c48d5de Cleanup semantics of data types [#CLICKHOUSE-2]. 2017-12-09 19:17:37 +03:00
Alexey Milovidov
d2cfda4d9b Cleanup semantics of data types [#CLICKHOUSE-2]. 2017-12-09 19:17:37 +03:00
Kirill Shvakov
da39514071 client #1600: add network-bandwidth option 2017-12-08 17:02:17 +02:00
Alexey Milovidov
7ef7ff9ae3 Simplification of Nullable [#CLICKHOUSE-2] 2017-12-08 12:45:07 +03:00
Alexey Milovidov
f50c432ff3 Merge branch 'master' of github.com:yandex/ClickHouse 2017-12-08 12:08:07 +03:00
Alexey Milovidov
e2cd0272a4 Added support for aggregate functions of Nullable arguments in cases when they return non-Nullable result [#CLICKHOUSE-2]. 2017-12-08 12:07:52 +03:00
proller
46fb94a3e4 Internal compiler: Use libclang-5.0 (#1597)
* Fix std::numeric_limits<__uint128_t>

* clean

* Better fix of std::numeric_limits<__uint128_t>

* Use clang 5.0 (release) as internal compiler

* message

* Fix werror

* fix

* fix

* fixing..

* note

* fix

* fix

* fix

* fix

* multi version

* fix

* fix
2017-12-08 11:28:08 +03:00
Alexey Milovidov
16b06bd544 Simplification of Nullable [#CLICKHOUSE-2] 2017-12-08 11:25:28 +03:00
Alexey Milovidov
384d03d4ce Simplification of Nullable [#CLICKHOUSE-2] 2017-12-08 10:41:08 +03:00
Alexey Milovidov
42d1cbd6c7 Simplification of Nullable [#CLICKHOUSE-2] 2017-12-08 10:34:24 +03:00
Alexey Milovidov
09ddf5e21d Simplification of Nullable [#CLICKHOUSE-2] 2017-12-08 10:12:00 +03:00
Alexey Milovidov
1b60106333 Simplification of Nullable [#CLICKHOUSE-2] 2017-12-08 09:58:48 +03:00
Alexey Milovidov
f85afb3986 Simplification of Nullable [#CLICKHOUSE-2] 2017-12-08 09:46:35 +03:00
Alexey Milovidov
9962035ef4 Simplification of Nullable [#CLICKHOUSE-2] 2017-12-08 08:09:08 +03:00
Alexey Milovidov
fcf371a930 Simplification of Nullable [#CLICKHOUSE-2] 2017-12-08 07:52:38 +03:00
Alexey Milovidov
4c67c3b171 Simplification of Nullable [#CLICKHOUSE-2] 2017-12-08 07:09:32 +03:00
Alexey Milovidov
c4a09a11f4 Simplification of Nullable [#CLICKHOUSE-2] 2017-12-08 06:52:33 +03:00
Alexey Milovidov
aefeee5697 Simplification of Nullable [#CLICKHOUSE-2] 2017-12-08 05:00:11 +03:00
Alexey Milovidov
3edb76c08f Merge remote-tracking branch 'origin' into nullable-simplification 2017-12-08 04:35:16 +03:00
Alexey Milovidov
00a7209607 Simplification of Nullable [#CLICKHOUSE-2] 2017-12-08 04:34:52 +03:00
Alexey Milovidov
741a6e0066 Simplification of Nullable [#CLICKHOUSE-2] 2017-12-08 03:50:25 +03:00
Alexey Milovidov
8cc0bae1bc Simplification of Nullable [#CLICKHOUSE-2] 2017-12-08 02:07:41 +03:00
Alexey Milovidov
d9c87bf4df Simplification of Nullable [#CLICKHOUSE-2] 2017-12-08 01:11:51 +03:00
Alexey Milovidov
be72c247fe Simplification of Nullable [#CLICKHOUSE-2] 2017-12-07 15:09:55 +03:00
alexey-milovidov
9ede5c3517
Merge pull request #1592 from rlipovsky/regions_names_realloc
restore allocation size check in RegionsNames
2017-12-07 14:20:11 +03:00
Alexey Milovidov
f5a06cee5b Simplification of Nullable [#CLICKHOUSE-2] 2017-12-07 11:47:13 +03:00
Alexey Milovidov
0ea105f639 Simplification of Nullable [#CLICKHOUSE-2] 2017-12-07 11:31:47 +03:00
Alexey Milovidov
20151285e0 Simplification of Nullable [#CLICKHOUSE-2] 2017-12-07 08:53:23 +03:00
Alexey Milovidov
f696e35ed8 Simplification of Nullable [#CLICKHOUSE-2] 2017-12-07 07:34:13 +03:00
Alexey Milovidov
e776a4fc67 Simplification of Nullable [#CLICKHOUSE-2] 2017-12-07 07:26:30 +03:00
Alexey Milovidov
8f248dd718 Simplification of Nullable [#CLICKHOUSE-2] 2017-12-07 07:12:40 +03:00
Alexey Milovidov
8204d2cdfd Simplification of Nullable [#CLICKHOUSE-2] 2017-12-07 06:50:43 +03:00
Alexey Milovidov
283e1995ab Simplification of Nullable [#CLICKHOUSE-2] 2017-12-07 06:35:19 +03:00
Alexey Milovidov
06f99aa25c Simplification of Nullable [#CLICKHOUSE-2] 2017-12-07 04:57:26 +03:00
Alexey Milovidov
ad10cb35bd Simplification of Nullable [#CLICKHOUSE-2] 2017-12-07 04:43:06 +03:00
Alexey Milovidov
2c1d7ad343 Simplification of Nullable [#CLICKHOUSE-2] 2017-12-07 03:31:46 +03:00
Flowyi
b60d9d1b78
Remove unused parameter from InterruptListener.h
This should fix the compile error:
```
ClickHouse/dbms/src/Server/InterruptListener.h:20:86: error: unused parameter 'timeout' [-Werror,-Wunused-parameter]
static int sigtimedwait(const sigset_t *set, siginfo_t *info, const struct timespec *timeout) {
                                                                                     ^
1 error generated.

```
2017-12-06 23:29:26 +08:00
Roman Lipovsky
6ff1d56a3b check correctness of data size estimation made by regions names data source 2017-12-06 16:03:02 +03:00
Alexey Milovidov
9996e15458 Allow to use values of AggregateFunction data type in groupArray aggregate function [#CLICKHOUSE-3485]. 2017-12-06 06:10:32 +03:00
Alexey Milovidov
5bb326de61 Allow to use values of AggregateFunction data type in groupArray aggregate function (incomplete) [#CLICKHOUSE-3485]. 2017-12-06 00:25:01 +03:00
alexey-milovidov
6c86bc2506
Merge pull request #1584 from yandex/table-system-models
added system.models
2017-12-05 00:25:04 +03:00
alexey-milovidov
20a8812eba
Merge pull request #1587 from rlipovsky/geodata_readers
[clickhouse-yt] separate geoexport format readers from data files
2017-12-05 00:18:54 +03:00
alexey-milovidov
b7f656d289
Merge pull request #1541 from yandex/fix-replica-queue-load
Add idempotent retries of updating the replica queue in ZooKeeper
2017-12-05 00:16:03 +03:00
alexey-milovidov
c860223146
Merge pull request #1523 from amosbird/patch-4
Make malformed `array join` statement fail early
2017-12-05 00:02:41 +03:00
Alexey Milovidov
7e2100d7f7 Fixed exception message [#CLICKHOUSE-2]. 2017-12-04 23:37:28 +03:00
alexey-milovidov
575a67b5d2
Merge branch 'master' into support-table-functions-for-desc-and-insert 2017-12-04 23:34:27 +03:00
Alexey Milovidov
344f861adb Clarifications [#CLICKHOUSE-2]. 2017-12-04 23:29:13 +03:00
alexey-milovidov
1aaeaf653d
Merge pull request #1551 from amosbird/patch-5
Propagate readPrefix in ParallelInputsProcessor (take 2)
2017-12-04 23:16:11 +03:00
alexey-milovidov
521e6181c1
Update ParallelInputsProcessor.h 2017-12-04 23:15:40 +03:00
Alexey Zatelepin
fb9c7ab81d remove experimental_allow_extended_storage_definition_syntax Setting (turn on by default) [#CLICKHOUSE-3000] 2017-12-04 22:45:18 +03:00
alexey-milovidov
b7096daed9
Merge pull request #1586 from rlipovsky/geodata_fix
fix broken geo dictionaries
2017-12-04 21:50:27 +03:00
proller
826936cf9b
Better fix of std::numeric_limits<__uint128_t> (#1585)
* Fix std::numeric_limits<__uint128_t>

* clean

* Better fix of std::numeric_limits<__uint128_t>
2017-12-04 19:12:56 +03:00
Roman Lipovsky
8bd45a544b add comments 2017-12-04 17:48:07 +03:00
Roman Lipovsky
e0e60d6dfa fix broken geo dictionaries 2017-12-04 17:35:03 +03:00
Nikolai Kochetov
d2710bd0f4 added system.models [#CLICKHOUSE-3477] 2017-12-04 16:32:49 +03:00
proller
4c3dfb97df
Clang: Fix std::numeric_limits<__uint128_t> (#1583)
Fix std::numeric_limits<__uint128_t>
2017-12-04 16:03:40 +03:00
Roman Lipovsky
c18934f454 separate format readers from files, move readers to separate headers 2017-12-04 15:30:21 +03:00
Alexey Milovidov
903dc680bb Fixed parsing and interpreting of tuples [#CLICKHOUSE-2]. 2017-12-03 11:16:49 +03:00
Alexey Milovidov
22f69f5c5f Unification of serde of data types: development [#CLICKHOUSE-2838]. 2017-12-03 09:55:56 +03:00
Alexey Milovidov
06dfe7f562 Unification of serde of data types: development [#CLICKHOUSE-2838]. 2017-12-03 08:55:49 +03:00
Alexey Milovidov
a80259d0cb Unification of serde of data types: development [#CLICKHOUSE-2838]. 2017-12-03 07:57:33 +03:00
Alexey Milovidov
418e5012e7 Unification of serde of data types: development [#CLICKHOUSE-2838]. 2017-12-03 07:43:38 +03:00
Alexey Milovidov
3717d80017 Unification of serde of data types: development [#CLICKHOUSE-2838]. 2017-12-03 07:40:21 +03:00
Alexey Milovidov
c472172fa8 Unification of serde of data types: development [#CLICKHOUSE-2838]. 2017-12-03 07:25:41 +03:00
Alexey Milovidov
a597f3e7d9 Unification of serde of data types: development [#CLICKHOUSE-2838]. 2017-12-03 07:23:03 +03:00
Alexey Milovidov
3786786aeb Unification of serde of data types: development [#CLICKHOUSE-2838]. 2017-12-03 07:19:46 +03:00
Alexey Milovidov
294c0ba5cf Unification of serde of data types: development [#CLICKHOUSE-2838]. 2017-12-03 06:43:48 +03:00
Alexey Milovidov
e71a6df79c Fixed warnings [#CLICKHOUSE-2]. 2017-12-03 06:22:25 +03:00
Alexey Milovidov
ab022d0882 Unification of serde of data types: development [#CLICKHOUSE-2838]. 2017-12-03 05:59:59 +03:00
Alexey Milovidov
1aa99092c3 Unification of serde of data types: development [#CLICKHOUSE-2838]. 2017-12-03 05:15:35 +03:00
Alexey Milovidov
a9ddaa2b19 Unification of serde of data types: development [#CLICKHOUSE-2838]. 2017-12-03 04:49:54 +03:00
Alexey Milovidov
a813287afd Rewrite MergeTreePartChecker [#CLICKHOUSE-2838]. 2017-12-03 03:48:19 +03:00
Alexey Milovidov
464d962010 Rewrite MergeTreePartChecker [#CLICKHOUSE-2838]. 2017-12-03 03:46:34 +03:00
Alexey Milovidov
5510bea3f8 Unification of serde of data types: development [#CLICKHOUSE-2838]. 2017-12-03 01:12:27 +03:00
Alexey Milovidov
de775e9a3e Better [#CLICKHOUSE-2]. 2017-12-02 06:49:26 +03:00
Alexey Milovidov
d36d7170ed Better [#CLICKHOUSE-2]. 2017-12-02 06:42:21 +03:00
Alexey Milovidov
10c605042a Better [#CLICKHOUSE-2]. 2017-12-02 06:36:52 +03:00
Alexey Milovidov
db9b46ed72 Better [#CLICKHOUSE-2]. 2017-12-02 06:34:45 +03:00
Alexey Milovidov
ce8352b9cc Better [#CLICKHOUSE-2]. 2017-12-02 06:33:15 +03:00
Alexey Milovidov
7b3ce9085a Better [#CLICKHOUSE-2]. 2017-12-02 06:31:40 +03:00
Alexey Milovidov
3076b2c0eb Better [#CLICKHOUSE-2]. 2017-12-02 06:29:35 +03:00
Alexey Milovidov
2e652ffa1e Removed hopscotch hash (was used only in single test) [#CLICKHOUSE-2]. 2017-12-02 06:28:00 +03:00
Alexey Milovidov
b932a193e2 Better [#CLICKHOUSE-2]. 2017-12-02 06:25:52 +03:00
Alexey Milovidov
668d88a359 Better [#CLICKHOUSE-2]. 2017-12-02 06:22:51 +03:00
Alexey Milovidov
1090cf2596 Better [#CLICKHOUSE-2]. 2017-12-02 06:11:15 +03:00
Alexey Milovidov
d091789a09 Better [#CLICKHOUSE-2]. 2017-12-02 05:58:25 +03:00
Alexey Milovidov
c748493a86 Better [#CLICKHOUSE-2]. 2017-12-02 05:47:12 +03:00
Alexey Milovidov
d932d615e7 Merge branch 'master' of github.com:yandex/ClickHouse 2017-12-02 02:14:59 +03:00
Alexey Milovidov
790bda3b9a Whitespace [#CLICKHOUSE-2]. 2017-12-02 02:14:53 +03:00
Alexey Milovidov
7196602e12 Better [#CLICKHOUSE-2]. 2017-12-02 00:51:50 +03:00
Alexey Milovidov
739b7e0e37 Removed BlockTabSeparated format as it was totally useless [#CLICKHOUSE-2]. 2017-12-02 00:44:12 +03:00
Alexey Milovidov
54e601019c Better [#CLICKHOUSE-2]. 2017-12-02 00:40:58 +03:00
Alexey Milovidov
a85773bdbc Fixed error [#CLICKHOUSE-2838]. 2017-12-02 00:30:43 +03:00
Alexey Milovidov
acd78e4891 Better [#CLICKHOUSE-2]. 2017-12-02 00:13:25 +03:00
Alexey Milovidov
1efef27af9 Better [#CLICKHOUSE-2] 2017-12-01 23:38:50 +03:00
Alexey Milovidov
431da20d99 Better [#CLICKHOUSE-2]. 2017-12-01 23:21:35 +03:00
Alexey Milovidov
bdd25b15bd Better [#CLICKHOUSE-2]. 2017-12-01 22:34:51 +03:00
Alexey Milovidov
1a6cb2989b Better [#CLICKHOUSE-2]. 2017-12-01 21:36:55 +03:00
Nikolai Kochetov
5cbacbc2d7 fixed test [#CLICKHOUSE-3397] 2017-12-01 21:21:37 +03:00
Alexey Milovidov
f5ecb2db5d Better [#CLICKHOUSE-2]. 2017-12-01 20:49:12 +03:00
alexey-milovidov
0ac2f5b479
Merge pull request #1559 from rlipovsky/geodata
[clickhouse-yt] separate geo dictionaries from data providers
2017-12-01 19:54:08 +03:00
alexey-milovidov
09f030a3ee
Merge branch 'master' into data_parts_multi_index 2017-12-01 19:53:04 +03:00
alexey-milovidov
493e7a4976
Merge pull request #1571 from rlipovsky/get_user_by_ptr
[clickhouse-yt] more consistent ISecurityManager interface
2017-12-01 19:43:00 +03:00
alexey-milovidov
66fdecf6ec
Merge branch 'master' into geodata 2017-12-01 19:25:27 +03:00
alexey-milovidov
96695b54fa
Merge pull request #1555 from rlipovsky/external_dicts_repo
[clickhouse-yt] abstract config repository for user-defined objects (dictionaries, etc)
2017-12-01 19:23:08 +03:00
alexey-milovidov
6a3c824056
Update ExternalLoaderConfigRepository.cpp 2017-12-01 19:22:19 +03:00
alexey-milovidov
a48a519c8d
Update ExternalLoaderConfigRepository.cpp 2017-12-01 19:20:01 +03:00
Alexey Milovidov
98291f1a24 Cleanups [#CLICKHOUSE-2838]. 2017-12-01 17:21:24 +03:00
Alexey Milovidov
6fb18a7dc2 Added comments [#CLICKHOUSE-2838]. 2017-12-01 17:15:38 +03:00
Nikolai Kochetov
470c633e09 merged with master 2017-12-01 16:33:47 +03:00
Alexey Milovidov
d4089695ad Cleanups [#CLICKHOUSE-2838]. 2017-12-01 16:32:37 +03:00
Nikolai Kochetov
f025f22007 Merge branch 'master' into support-table-functions-for-desc-and-insert 2017-12-01 16:24:50 +03:00
Nikolai Kochetov
ec6619e3c9 added INSERT INTO TABLE syntax [#CLICKHOUSE-3397] 2017-12-01 16:23:10 +03:00
Alexey Milovidov
241e0638b7 Merge branch 'master' of github.com:yandex/ClickHouse into unify-data-types-that-serialized-with-multiple-streams 2017-12-01 15:36:15 +03:00
Nikolai Kochetov
c60a1820a8 reverted changes in Cluster.cpp 2017-12-01 14:47:23 +03:00
proller
a520d30a5e zlib fix flags in headers 2017-11-30 20:52:09 +03:00
Roman Lipovsky
430837706c more consistent ISecurityManager interface: return shared pointer to User to prevent race conditions with loadFromConfig 2017-11-30 17:53:12 +03:00
Kirill Shvakov
cd7f7b076e Merge branch 'add-description-to-settings-table' 2017-11-30 13:55:42 +02:00
Kirill Shvakov
4d73516508 Add description to system.settings table 2017-11-30 13:50:02 +02:00
Roman Lipovsky
44f8fcaf0d fix indentation 2017-11-29 15:48:28 +03:00
Roman Lipovsky
db0fc481d7 do not rely on total size estimation from data source 2017-11-29 15:45:17 +03:00
Roman Lipovsky
45637ddee8 fix indentation 2017-11-29 15:41:42 +03:00
Vitaliy Lyudvichenko
ddb02d8ccf Small enhancements. [#CLICKHOUSE-3452] 2017-11-29 14:54:37 +03:00
Vitaliy Lyudvichenko
b738d1baed Add multi index for data_parts storage. And fixed bugs. [#CLICKHOUSE-3452]
Fixed handling of obsolete parts.
Fixed conflict resolution between simultaneous PreCommitted covering parts.
Fixed memory leak caused by ordinary MergeTree parts stucked in Deleting state.
Added hidden _state column into system.parts.
2017-11-29 14:25:11 +03:00
Alexey Milovidov
fb4951b679 Unification of serde of data types: development [#CLICKHOUSE-2838]. 2017-11-29 02:50:17 +03:00
Alexey Milovidov
37a22bceba Merge branch 'master' of github.com:yandex/ClickHouse into unify-data-types-that-serialized-with-multiple-streams 2017-11-29 02:31:38 +03:00
Alexey Milovidov
7b4bffe088 Unification of serde of data types: development [#CLICKHOUSE-2838]. 2017-11-29 02:31:21 +03:00
Roman Lipovsky
845b4e0cac use types from Dictionaries/Embedded/GeodataProviders/Types.h 2017-11-29 01:27:32 +03:00
Roman Lipovsky
e37b13dfef update comment 2017-11-29 01:18:38 +03:00
Roman Lipovsky
9ed1ba2441 separate geo dictionaries from geo data providers 2017-11-29 01:15:06 +03:00
alexey-milovidov
2ab73565b2
Fixed terrible translation. 2017-11-28 19:30:24 +03:00
Alexey Zatelepin
01d42242b1 mark queue as dirty if status of ZK operation is unknown [#CLICKHOUSE-3405] 2017-11-28 17:09:53 +03:00
Roman Lipovsky
639d850d97 abstract config repository of user-defined objects (dictionaries, models) 2017-11-28 14:00:07 +03:00
Amos Bird
b516e5e087
Propagate readPrefix in ParallelInputsProcessor (take 2)
Both UnionBlockInputStream and ParallelAggregatingBlockInputStream rely on ParallelInputsProcessor to do stream preparation in parallel, which seems to be absent. This patch fixes it.

Fix thread unsafty issue in https://github.com/yandex/ClickHouse/pull/1516

Here is a list of inputstreams with meaningful work in readPrefix

```
IProfilingBlockInputStream

AsynchronousBlockInputStream
BlockInputStreamFromRowInputStream
CatBoostDatasetBlockInputStream
CreatingSetsBlockInputStream
CSVRowInputStream
DictionaryBlockInputStreamBase
InputStreamFromASTInsertQuery
KafkaBlockInputStream
MergingAggregatedMemoryEfficientBlockInputStream
RemoteBlockInputStream
StorageFileBlockInputStream
```
2017-11-28 16:52:00 +08:00
Alexey Milovidov
c05cf01a9b SummingSortedBlockInputStream: miscellaneous [#CLICKHOUSE-2]. 2017-11-28 05:14:50 +03:00
Alexey Milovidov
06a65168ac SummingSortedBlockInputStream: miscellaneous [#CLICKHOUSE-2]. 2017-11-28 05:14:06 +03:00
Alexey Milovidov
36d4f89c7a Unification of serde of data types: development [#CLICKHOUSE-2838]. 2017-11-28 05:13:46 +03:00
Roman Lipovsky
ae6e9a870f edit comment 2017-11-28 04:12:57 +03:00
Roman Lipovsky
4eda095654 add comments 2017-11-28 04:12:57 +03:00
alexey-milovidov
1879fe93f1 Update Context.h 2017-11-28 04:12:57 +03:00
alexey-milovidov
7819424e2a Update Context.h 2017-11-28 04:12:57 +03:00
Roman Lipovsky
dd22bf2179 fix include 2017-11-28 04:12:57 +03:00
Roman Lipovsky
af6c6f0afa mark ISecurityManager::getUser as const 2017-11-28 04:12:57 +03:00
Roman Lipovsky
cf6dd4e73b abstractions: runtime components factory + security manager 2017-11-28 04:12:57 +03:00
Alexey Milovidov
71378d329c Merge branch 'unify-data-types-that-serialized-with-multiple-streams' of github.com:yandex/ClickHouse into unify-data-types-that-serialized-with-multiple-streams 2017-11-28 02:47:21 +03:00
Alexey Milovidov
719d2654f8 Unification of serde of data types: development [#CLICKHOUSE-2838]. 2017-11-28 02:47:14 +03:00
Alexey Milovidov
55971073fc Unification of serde of data types: development [#CLICKHOUSE-2838]. 2017-11-28 00:21:09 +03:00
proller
2ade0a92d2 Cmake fix 2017-11-27 23:40:19 +03:00
proller
4b63d9a4c3 Cmake: fix link of some tests (missing pthread) 2017-11-27 23:39:06 +03:00
Alexey Milovidov
95d33b3e65 Merge remote-tracking branch 'origin/master' into unify-data-types-that-serialized-with-multiple-streams 2017-11-27 22:33:38 +03:00
Alexey Milovidov
7e5bab971d Fixed build [#CLICKHOUSE-2]. 2017-11-27 22:12:18 +03:00
alexey-milovidov
5dd7279e15 Update DictionarySourceFactory.cpp 2017-11-27 22:08:40 +03:00
alexey-milovidov
d6766a8ef4 Update DictionarySourceFactory.h 2017-11-27 22:08:40 +03:00
alexey-milovidov
1a28e785af Update DictionarySourceFactory.cpp 2017-11-27 22:08:40 +03:00
Roman Lipovsky
b218dfab1c [clickhouse-yt] support external dictionaries registration in DictionarySourceFactory 2017-11-27 22:08:40 +03:00
Alexey Milovidov
42cc689474 Miscellaneous [#CLICKHOUSE-2]. 2017-11-26 22:22:33 +03:00
Alexey Milovidov
6266ecc5ed Miscellaneous [#CLICKHOUSE-2]. 2017-11-25 02:03:58 +03:00
alexey-milovidov
33ddc5e0f5 Update ConfigProcessor.cpp 2017-11-25 02:00:10 +03:00
Alexey Vasiliev
a6ee2125a4 ConfigProcessor: explicit ctor [#MOBMET-7044] 2017-11-25 02:00:10 +03:00
Alexey Vasiliev
bc3b20edac fixed one more ConfigProcessor usage [#MOBMET-7044] 2017-11-25 02:00:10 +03:00
Alexey Vasiliev
1114a749e3 fixed one more ConfigProcessor usage [#MOBMET-7044] 2017-11-25 02:00:10 +03:00
Alexey Vasiliev
592f892821 fixed one more ConfigProcessor usage [#MOBMET-7044] 2017-11-25 02:00:10 +03:00
Alexey Vasiliev
6cb97b9221 ConfigProcessor: do not create config-preprocessed before setting umask [#MOBMET-7044] 2017-11-25 02:00:10 +03:00
alexey-milovidov
3a0e0173ab
Merge pull request #1545 from samael500/master
Fix integer overflow
2017-11-25 01:43:48 +03:00
proller
827a5d0612 Fix warnings-errors in gtest 2017-11-24 23:40:14 +03:00
proller
6ff1968196 Compile and likk optimize and fixes 2017-11-24 21:08:01 +03:00
proller
0d3c4f4d67 Core/FieldVisitors.h -> Common/FieldVisitors.h
Core/Progress.h -> IO/Progress.h
    tests: sudo --non-interactive
    Fix freebsd link
2017-11-24 16:55:31 +03:00
Maks Skorokhod
d5cdfa6a48
🔧 fix typeowerflow on gcd and modulo functions 2017-11-24 11:17:49 +03:00
Alexey Milovidov
859bf86a43 Fixed error found by ASan with debug libc++ (actually not dangerous) [#CLICKHOUSE-2]. 2017-11-23 18:24:55 +03:00
Alexey Zatelepin
78aaa42ddd add idempotent retries of updating the replica queue in ZooKeeper [#CLICKHOUSE-3405] 2017-11-23 16:19:29 +03:00
Maks Skorokhod
a06ca9cb82
:octocat: merge with master 2017-11-23 11:57:10 +03:00
Maks Skorokhod
e0f981f48c
🔧 correct type cast for LCM result 2017-11-23 11:40:06 +03:00
Alexey Milovidov
e15d637714 Miscellaneous [#CLICKHOUSE-2]. 2017-11-23 05:12:09 +03:00
Alexey Milovidov
4bf120b285 Miscellaneous [#CLICKHOUSE-2]. 2017-11-23 05:11:16 +03:00
Alexey Milovidov
562cfe9f9f Fixed error (static initializers became too complex) [#CLICKHOUSE-2]. 2017-11-23 00:09:23 +03:00
Alexey Milovidov
d2c900cdcc Fixed error (static initializers became too complex) [#CLICKHOUSE-2]. 2017-11-23 00:08:14 +03:00
Alexey Milovidov
1872f6ad6d Fixed error (static initializers became too complex) [#CLICKHOUSE-2]. 2017-11-22 23:54:55 +03:00
Alexey Milovidov
df95b81196 Fixed error (static initializers became too complex) [#CLICKHOUSE-2]. 2017-11-22 23:53:47 +03:00
Alexey Milovidov
11afd41f5e Merge remote-tracking branch 'origin/master' into unify-data-types-that-serialized-with-multiple-streams 2017-11-22 22:42:49 +03:00
Maks Skorokhod
6b5fafbf73 🔁 add gcd and lcm to generate functions 2017-11-22 22:42:16 +03:00
Maks Skorokhod
f4489f17fc 🔧 use correct result types 2017-11-22 22:42:16 +03:00
Maks Skorokhod
25509e2ee2 🔁 add GCD and LCM functions support 2017-11-22 22:42:16 +03:00
Alexey Milovidov
f3b0f17d50 Merge remote-tracking branch 'origin/master' into unify-data-types-that-serialized-with-multiple-streams 2017-11-22 22:02:24 +03:00
proller
875ef9b5cf Fix allocator test 2017-11-22 17:54:12 +03:00
Maks Skorokhod
a6f1707158
🔁 add gcd and lcm to generate functions 2017-11-22 13:48:59 +03:00
Maks Skorokhod
f09855e6f8
🔧 use correct result types 2017-11-22 12:50:23 +03:00
Maks Skorokhod
c31fd8ba88
🔁 add GCD and LCM functions support 2017-11-22 12:25:36 +03:00
Alexey Milovidov
c13872450f Whitespace [#CLICKHOUSE-2]. 2017-11-22 05:42:53 +03:00
Alexey Milovidov
d50511b8e1 Whitespace [#CLICKHOUSE-2]. 2017-11-22 05:42:02 +03:00
Alexey Milovidov
2d98a33dd0 Merge remote-tracking branch 'origin/master' into unify-data-types-that-serialized-with-multiple-streams 2017-11-22 05:40:07 +03:00
alexey-milovidov
35ce63a762 Revert "Propagate readPrefix in ParallelInputsProcessor" 2017-11-22 05:17:42 +03:00
Alexey Zatelepin
7775216c3d do not save query output options to the ATTACH query [#CLICKHOUSE-3439] 2017-11-22 00:39:03 +03:00
Alexey Zatelepin
b2963d4c60 add current database to a CREATE SELECT query only for views [#CLICKHOUSE-3448] 2017-11-22 00:39:03 +03:00
proller
e448f4a73a Always make symlink to clickhouse-clang and clickhouse-lld (debian package fix) 2017-11-22 00:22:18 +03:00
proller
411202d5ad Zlib: as submodule, fix compile options; config: add logger options: logger.flush logger.rotateOnOpen 2017-11-21 23:10:37 +03:00
Alexey Milovidov
4aa520e7be Merge remote-tracking branch 'origin/master' into unify-data-types-that-serialized-with-multiple-streams 2017-11-21 22:40:59 +03:00
alexey-milovidov
44b8cc2292 Update parseIdentifierOrStringLiteral.h 2017-11-21 22:35:54 +03:00
proller
2778f35e48 Lib Parsers 2017-11-21 22:35:54 +03:00
Amos Bird
92811ca5f2
Make malformed array join statement fail early
Currently array join clause that have no parent table can go through the parser and generates some confusing error.
```
create table aa (a Array(UInt64)) Engine=Memory;
select * from array join aa;

Received exception from server (version 1.1.54311):
Code: 208. DB::Exception: Received from localhost:9000, ::1. DB::Exception: No columns in nested table aa.
```

This patch makes it fail at client side. 
```
Syntax error: failed at position 21:

select * from array join aa;

Expected one of: SAMPLE, INNER, WITH, HAVING, SETTINGS, identifier, Dot, ORDER BY, AS, GROUP BY, INTO OUTFILE, UNION ALL, LEFT ARRAY JOIN, ARRAY JOIN, table, table function, subquery or list of joined tables, array join, alias, FINAL, PREWHERE, WHERE, token, FORMAT, LIMIT
```

However I'm not sure if `ParserCompoundIdentifier` should be stricter so that `array` wouldn't be consider as a table name.
2017-11-21 15:16:15 +08:00
Alexey Milovidov
4bc98c9253 Unification of serde of data types: development [#CLICKHOUSE-2838]. 2017-11-21 05:25:36 +03:00
Alexey Milovidov
63f79b7b4f Unification of serde of data types: development [#CLICKHOUSE-2838]. 2017-11-21 05:23:41 +03:00
Amos Bird
dc6847d5c6
Fixes StorageJoin's sample block order.
Here is a reproducible test case.
```
create table e (s UInt64, t UInt64) Engine = Memory;
create table v (s UInt64, w Float64, c UInt64) Engine = Join(Any, Inner, s);
insert into e values (1, 2), (1, 3), (1, 4), (2, 1), (2, 4), (3, 1), (4, 2), (4, 3);
insert into v values (1, 0.5, 3), (2, 0.5, 2), (3, 1, 1), (4, 0.5, 2);
select *, w, c from e any inner join v using (s);
```

# before this patch
```
┌─s─┬─t─┬─────w─┬──────────c─┐
│ 1 │ 2 │ 4e-45 │ 1051372192 │
│ 1 │ 3 │ 4e-45 │ 1051372192 │
│ 1 │ 4 │ 4e-45 │ 1051372192 │
│ 2 │ 1 │ 3e-45 │ 1056964608 │
│ 2 │ 4 │ 3e-45 │ 1056964608 │
│ 3 │ 1 │ 1e-45 │ 1065353216 │
│ 4 │ 2 │ 3e-45 │ 1056964608 │
│ 4 │ 3 │ 3e-45 │ 1056964608 │
└───┴───┴───────┴────────────┘
```
# after this patch
```
┌─s─┬─t─┬───w─┬─c─┐
│ 1 │ 2 │ 0.5 │ 3 │
│ 1 │ 3 │ 0.5 │ 3 │
│ 1 │ 4 │ 0.5 │ 3 │
│ 2 │ 1 │ 0.5 │ 2 │
│ 2 │ 4 │ 0.5 │ 2 │
│ 3 │ 1 │   1 │ 1 │
│ 4 │ 2 │ 0.5 │ 2 │
│ 4 │ 3 │ 0.5 │ 2 │
└───┴───┴─────┴───┘
```
2017-11-20 19:46:24 +08:00