Commit Graph

11550 Commits

Author SHA1 Message Date
Alexey Milovidov
fef53b1963 Tiny modification [#CLICKHOUSE-2] 2018-02-21 11:34:38 +03:00
Alexey Milovidov
8e91a5e1f1 Added test [#CLICKHOUSE-2] 2018-02-21 11:19:17 +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
robot-metrika-test
6f5bf11647 Auto version update to [54355] 2018-02-21 10:35:08 +03:00
Alexey Milovidov
b1fc5eed45 Fixed error [#CLICKHOUSE-2] 2018-02-21 10:34:40 +03:00
Alexey Milovidov
1a026e6131 Fixed error [#CLICKHOUSE-2] 2018-02-21 09:47:32 +03:00
Alexey Milovidov
4e3a0f0ac6 Fixed error [#CLICKHOUSE-2] 2018-02-21 09:25:21 +03:00
Alexey Milovidov
aad0c62e67 Fixed error [#CLICKHOUSE-2] 2018-02-21 08:11:53 +03:00
Alexey Milovidov
09ac108f4c Fixed error [#CLICKHOUSE-2] 2018-02-21 07:38:26 +03:00
Alexey Milovidov
652dfc8c36 Fixed error [#CLICKHOUSE-2] 2018-02-21 07:18:08 +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
33e42a9001 Better [#CLICKHOUSE-2] 2018-02-21 06:48:46 +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
Alexey Milovidov
f6eb5b4b01 Enhanced test [#CLICKHOUSE-3608] 2018-02-21 04:39:46 +03:00
Alexey Milovidov
3dd665179e Fixed error with components of Nested data structures without data and PREWHERE filtering [#CLICKHOUSE-3608] 2018-02-21 04:16:09 +03:00
zhang2014
dc189fd129 ISSUES-1386 add logical error when drop exist depend 2018-02-21 08:49:30 +08:00
Tsarkova Anastasia
65a4d300a3 Add test. 2018-02-20 23:19:04 +03:00
Tsarkova Anastasia
d99d01ac3a Fix data types for key_ranges 2018-02-20 23:03:15 +03:00
Nikolai Kochetov
ba81835e58 fixed progress stats 2018-02-20 17:26:22 +03:00
Nikolai Kochetov
36fe36d003 updated MergeTreePrewhereRangeReader; renamed MergeTreePrewhereRangeReader to MergeTreeRangeReader 2018-02-20 16:59:19 +03:00
Alexey Zatelepin
da87abc422 fix condition for the 'intersects previous part' log message 2018-02-20 16:59:01 +03:00
Alexey Zatelepin
53b5c5f54c add check for intersecting parts when adding new parts 2018-02-20 16:58:41 +03:00
Nikolai Kochetov
2bf1931d86 updated MergeTreePrewhereRangeReader; renamed MergeTreePrewhereRangeReader to MergeTreeRangeReader 2018-02-20 16:37:04 +03:00
Alexey Zatelepin
5bc6bd55b1 allow PreCommitted parts to contain each other, clean up code 2018-02-20 16:33:28 +03:00
Nikolai Kochetov
dcd99860fe updated MergeTreePrewhereRangeReader; renamed MergeTreePrewhereRangeReader to MergeTreeRangeReader 2018-02-20 16:30:47 +03:00
Nikolai Kochetov
3063c35429 updated MergeTreePrewhereRangeReader; renamed MergeTreePrewhereRangeReader to MergeTreeRangeReader 2018-02-20 16:23:56 +03:00
Nikolai Kochetov
d8b5f14dd7 updated MergeTreePrewhereRangeReader; renamed MergeTreePrewhereRangeReader to MergeTreeRangeReader 2018-02-20 15:26:09 +03:00
Nikolai Kochetov
d2d0d570d8 updated MergeTreePrewhereRangeReader; renamed MergeTreePrewhereRangeReader to MergeTreeRangeReader 2018-02-20 15:09:32 +03:00
Nikolai Kochetov
77a3989558 updated MergeTreePrewhereRangeReader; renamed MergeTreePrewhereRangeReader to MergeTreeRangeReader 2018-02-20 15:02:25 +03:00
Nikolai Kochetov
58b6b7570f updated MergeTreePrewhereRangeReader; renamed MergeTreePrewhereRangeReader to MergeTreeRangeReader 2018-02-20 14:54:32 +03:00
Nikolai Kochetov
af6895ee6f updated MergeTreePrewhereRangeReader; renamed MergeTreePrewhereRangeReader to MergeTreeRangeReader 2018-02-20 14:50:33 +03:00
Nikolai Kochetov
ce70d4faa9 updated MergeTreePrewhereRangeReader; renamed MergeTreePrewhereRangeReader to MergeTreeRangeReader 2018-02-20 14:45:58 +03:00
Nikolai Kochetov
af9ac7b48b merged with master 2018-02-20 12:27:47 +03:00
Nikolai Kochetov
82c76d8467 added MergeTreePrewhereRangeReader 2018-02-20 12:23:02 +03:00
Alexey Vasiliev
376f283b84 Sort ConfigProcessor files before use [#CLICKHOUSE-3436, #METRIQA-1971] 2018-02-20 11:50:11 +03:00
Alexey Milovidov
8942d7c127 Added method "getHeader" in IBlockOutputStream: development [#CLICKHOUSE-2] 2018-02-20 04:38:42 +03:00
zhang2014
219de205e3 ISSUES-995 fix cut www 2018-02-20 09:34:50 +08:00
Alexey Milovidov
13f1d5c67d Added method "getHeader" in IBlockOutputStream: development [#CLICKHOUSE-2] 2018-02-20 04:25:56 +03:00
Alexey Milovidov
fa6420b34d Added method "getHeader" in IBlockOutputStream: development [#CLICKHOUSE-2] 2018-02-20 04:14:38 +03:00
zhang2014
3f8c42c97d ISSUES-995 add test 2018-02-20 08:45:32 +08: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
582798b77f Added method "getHeader" in IBlockOutputStream: development [#CLICKHOUSE-2] 2018-02-19 23:42:05 +03:00
Alexey Milovidov
ee4b5d2527 Added method "getHeader" in IBlockOutputStream: development [#CLICKHOUSE-2] 2018-02-19 23:23:25 +03:00
Alexey Milovidov
b747c83b15 Added method "getHeader" in IBlockOutputStream: development [#CLICKHOUSE-2] 2018-02-19 22:18:51 +03:00
Alexey Milovidov
3b550789b0 Added method "getHeader" in IBlockOutputStream: development [#CLICKHOUSE-2] 2018-02-19 21:15:30 +03:00
Alexey Milovidov
d0bfa15525 Removed UnsortedMergeTree, part 2 [#CLICKHOUSE-2] 2018-02-19 20:31:49 +03:00
Alexey Milovidov
7ff1346685 Removed UnsortedMergeTree, part 2 [#CLICKHOUSE-2] 2018-02-19 20:31:30 +03:00
Vitaliy Lyudvichenko
585b80acf5 Fixed typo. [#CLICKHOUSE-3346] 2018-02-19 20:26:47 +03:00
Vitaliy Lyudvichenko
369f88f65d Rewritten and improved sync distributed insert. [#CLICKHOUSE-3346] 2018-02-19 20:26:47 +03:00
Vitaliy Lyudvichenko
f6a63c4d0c Autoupdate of ClusterCopier settings. [#CLICKHOUSE-3346] 2018-02-19 20:26:47 +03:00
Vitaliy Lyudvichenko
2e2c70edb5 Add table retries. [#CLICKHOUSE-3346] 2018-02-19 20:24:54 +03:00
alexey-milovidov
0d38418122
Merge pull request #1926 from yandex/empty-string-floats
Deserialize empty strings as 0 when parsing Float columns
2018-02-19 16:29:03 +03:00
Alexey Zatelepin
8e3bf95f98 add test [#CLICKHOUSE-3603] 2018-02-19 16:00:11 +03:00
Alexey Zatelepin
ba43aaa5c0 parse empty strings as 0.0 when parsing Floats [#CLICKHOUSE-3603] 2018-02-19 15:40:43 +03:00
zhang2014
bd10613c47 ISSUES-995 support relative path 2018-02-19 19:49:49 +08:00
zhang2014
bf4813921c ISSUES-995 add test 2018-02-19 19:49:03 +08:00
Alexey Milovidov
c3b0f0bceb Added method "getHeader" in IBlockOutputStream: development [#CLICKHOUSE-2] 2018-02-19 07:30:11 +03:00
Alexey Milovidov
399ede6404 Added method "getHeader" in IBlockOutputStream: development [#CLICKHOUSE-2] 2018-02-19 07:29:56 +03:00
Alexey Milovidov
92cfa63e29 Added method "getHeader" in IBlockOutputStream: development [#CLICKHOUSE-2] 2018-02-19 07:12:50 +03:00
Alexey Milovidov
17320cc40b Added method "getHeader" in IBlockOutputStream: development [#CLICKHOUSE-2] 2018-02-19 07:12:30 +03:00
Alexey Milovidov
f6766c89c4 Added method "getHeader" in IBlockOutputStream: development [#CLICKHOUSE-2] 2018-02-19 07:12:08 +03:00
Alexey Milovidov
900755555f Added method "getHeader" in IBlockOutputStream: development [#CLICKHOUSE-2] 2018-02-19 07:11:55 +03:00
Alexey Milovidov
8d9fc36ac8 Added method "getHeader" in IBlockOutputStream: development [#CLICKHOUSE-2] 2018-02-19 07:03:59 +03:00
Alexey Milovidov
307fc93d1d Added method "getHeader" in IBlockOutputStream: development [#CLICKHOUSE-2] 2018-02-19 07:03:31 +03:00
Alexey Milovidov
8b7003ade6 Added method "getHeader" in IBlockOutputStream: development [#CLICKHOUSE-2] 2018-02-19 06:57:24 +03:00
Alexey Milovidov
74c56c2def Added method "getHeader" in IBlockOutputStream: development [#CLICKHOUSE-2] 2018-02-19 06:56:08 +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
240d907ec3
Merge pull request #1922 from yandex/aggregation-by-empty-set
Aggregation by empty set
2018-02-18 09:37:03 +03:00
Alexey Milovidov
25ba8d47bb Updated test [#CLICKHOUSE-1920] #51 2018-02-18 09:36:34 +03:00
Alexey Milovidov
18a90b1a54 Fixed error [#CLICKHOUSE-1920] #51 2018-02-18 09:12:34 +03:00
Alexey Milovidov
d4710c78bf Fixed error [#CLICKHOUSE-1920] #51 2018-02-18 09:12:19 +03:00
Alexey Milovidov
6d17ca0a8b Return single row for aggregation without keys on empty set: updated tests [#CLICKHOUSE-1920] #51 2018-02-18 08:56:45 +03:00
Alexey Milovidov
47ff837c9f Return single row for aggregation without keys on empty set: development [#CLICKHOUSE-1920] #51 2018-02-18 08:39:39 +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
d73080640d
Merge pull request #1921 from yandex/header-in-input-streams
Header in input streams
2018-02-18 07:58:04 +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
8a88aeb931 Header in every stream: fixed non-deterministic test [#CLICKHOUSE-2] 2018-02-18 05:58:42 +03:00
Alexey Milovidov
0c0b1f43e9 Header in every stream: fixed non-deterministic test [#CLICKHOUSE-2] 2018-02-18 05:58:07 +03:00
Alexey Milovidov
d6d7b3e7e4 Header in every stream: development [#CLICKHOUSE-2] 2018-02-18 05:46:39 +03:00
Alexey Milovidov
95d2d68c7d Header in every stream: development [#CLICKHOUSE-2] 2018-02-18 05:22:32 +03:00
Alexey Milovidov
df85676c17 Header in every stream: development [#CLICKHOUSE-2] 2018-02-18 04:20:29 +03:00
Alexey Milovidov
8a6cd1d658 Header in every stream: development [#CLICKHOUSE-2] 2018-02-18 04:20:14 +03:00
Alexey Milovidov
df4853a13a Header in every stream: development [#CLICKHOUSE-2] 2018-02-18 03:37:22 +03:00
Alexey Milovidov
2cf73473f7 Added test [#CLICKHOUSE-2754] 2018-02-18 00:26:59 +03:00
Alexey Milovidov
cb7719b062 Added test [#CLICKHOUSE-2754] 2018-02-18 00:26:22 +03:00
Alexey Milovidov
ff235fc506 Header in every stream: development [#CLICKHOUSE-2] 2018-02-18 00:08:21 +03:00
Alexey Milovidov
9e1638e1dd Header in every stream: development [#CLICKHOUSE-2] 2018-02-17 20:09:18 +03:00
Alexey Milovidov
84c110a8ae Header in every stream: development [#CLICKHOUSE-2] 2018-02-17 07:18:29 +03:00
Alexey Milovidov
dba529d674 Header in every stream: development [#CLICKHOUSE-2] 2018-02-17 07:13:49 +03:00
Alexey Milovidov
999d59e5ac Header in every stream: development [#CLICKHOUSE-2] 2018-02-17 06:49:34 +03:00
Alexey Milovidov
d02874bf54 Header in every stream: development [#CLICKHOUSE-2] 2018-02-17 06:06:01 +03:00
Alexey Milovidov
3204b9688c Header in every stream: development [#CLICKHOUSE-2] 2018-02-17 05:35:09 +03:00
Alexey Milovidov
6f96857427 Header in every stream: development [#CLICKHOUSE-2] 2018-02-17 05:27:34 +03:00
Alexey Milovidov
fb0920ff98 Whitespace [#CLICKHOUSE-2] 2018-02-17 01:33:46 +03:00
Alexey Milovidov
a673790748 Header in every stream: development [#CLICKHOUSE-2] 2018-02-16 23:53:47 +03:00
Alexey Milovidov
a074b777da Fixed compatibility with older clients #1918 2018-02-16 22:34:45 +03:00
Alexey Milovidov
a849bb8c04 Fixed compatibility with older clients #1918 2018-02-16 22:34:21 +03:00
Alexey Milovidov
d76feb779c Header in every stream: development [#CLICKHOUSE-2] 2018-02-16 22:04:27 +03:00
Alexey Milovidov
c320b360c6 Merge branch 'master' of github.com:yandex/ClickHouse into header-in-input-streams 2018-02-16 21:23:29 +03:00
robot-metrika-test
63c826788f Auto version update to [54354] 2018-02-16 20:44:58 +03:00
proller
db8ea9205c
LibraryDictionarySource: api v2 with strings (#1915)
* LibraryDictionarySource: Support numeric types, initial support for strings
2018-02-16 20:12:22 +03:00
Alexey Zatelepin
87b72b8e39 rename musl_exp10 -> preciseExp10 for coding style compatibility 2018-02-16 17:51:14 +03:00
Alexey Zatelepin
8fdb68ef79 add musl_ prefix to exp10 functions to avoid confusion with symbols from the system libm 2018-02-16 17:01:50 +03:00
zhang2014
079223b89d ISSUES-369 add test 2018-02-16 16:07:34 +08:00
zhang2014
5f0ecd7fbd ISSUES-369 fix restart error 2018-02-16 15:47:35 +08:00
zhang2014
cfb2efbaa6 ISSUES-369 add default database when create materialize view 2018-02-16 15:10:42 +08:00
Alexey Milovidov
264e6cbc84 Header in every stream: development [#CLICKHOUSE-2] 2018-02-16 00:31:09 +03:00
proller
d2fcfb3de6 Allow to disable compiling -server or other parts to static binary 2018-02-15 23:57:08 +03:00
Alexey Milovidov
b80a42ec65 Merge branch 'master' of github.com:yandex/ClickHouse into header-in-input-streams 2018-02-15 22:50:21 +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
0cdfadeb5a Removed useless method [#CLICKHOUSE-2] 2018-02-15 19:54:14 +03:00
Alexey Milovidov
e658741ccf Removed useless methods [#CLICKHOUSE-2] 2018-02-15 19:29:34 +03:00
robot-metrika-test
2f59713143 Auto version update to [54353] 2018-02-15 19:27:50 +03:00
Alexey Milovidov
921e09b5f8 Merge branch 'master' into header-in-input-streams 2018-02-15 19:20:36 +03:00
Alexey Milovidov
6b9b8c1f83 Merge branch 'master' of github.com:yandex/ClickHouse 2018-02-15 19:10:43 +03:00
Alexey Milovidov
4b2cff20ea Whitespace [#CLICKHOUSE-2] 2018-02-15 19:10:25 +03:00
Vitaliy Lyudvichenko
ca0cdc35eb A test was enhanced. [#CLICKHOUSE-2] 2018-02-15 18:48:26 +03:00
javi
e08199c81a removed extra line break 2018-02-15 16:53:55 +03:00
javi
e69421e7a6 fixed function and added test and doc 2018-02-15 16:53:55 +03:00
javi santana
c810db2a01 tests wip 2018-02-15 16:53:55 +03:00
javi santana
0297a598b9 function working 2018-02-15 16:53:55 +03:00
javi
95211cde25 added basic cumsum impl 2018-02-15 16:53:55 +03:00
Alexey Milovidov
e37aad9111 Merge branch 'master' of github.com:yandex/ClickHouse 2018-02-15 16:13:58 +03:00
Arsen Hakobyan
7a77b8abf0 Improvements done according to requested changes 2018-02-15 17:08:23 +04:00
Arsen Hakobyan
8b8c7a64b4 Merge branch 'master' of https://github.com/yandex/ClickHouse into dictionary-update 2018-02-15 12:07:58 +04:00
proller
10803568ad
Macos shared build fix (#1906) 2018-02-15 00:01:40 +03:00
robot-metrika-test
d7511761cf Auto version update to [54352] 2018-02-14 21:24:50 +03:00
Vitaliy Lyudvichenko
a4177287b1 Fixed too deep AST traversal. [#CLICKHOUSE-2] 2018-02-14 20:39:16 +03:00
proller
d2f1ef686e
Misc build and test fixes (#1905)
* Misc build fixes

* Fix apple tests
2018-02-14 20:27:14 +03:00
proller
7c7bdc5115
LibraryDictionarySource: Support numeric types, initial support for strings (#1903) 2018-02-14 18:03:48 +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
f88f4567d0 ISSUES-117 add test 2018-02-14 12:37:39 +08:00
zhang2014
b89268ceb8 ISSUES-117 add show create & exist temporary table 2018-02-14 12:00:37 +08:00
zhang2014
eeae014a42 ISSUES-1885 use movemask & popcnt 2018-02-14 08:11:12 +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
proller
971df7b853 Try fix travis. Use less travis tests (#1897)
* Try fix travis. Use less travis tests

* Disable capnp heavy test

* Travis: add gcc in pbuilder

* Fix

* fix
2018-02-13 21:00:06 +03:00
robot-metrika-test
f30ab52834 Auto version update to [54351] 2018-02-13 16:17:02 +03:00
Vitaliy Lyudvichenko
075a3cd811 Use absoulte paths in Compiler. [#CLICKHOUSE-3573] 2018-02-13 13:32:14 +03:00
zhang2014
6033096fd1 ISSUES-1885 add performance test 2018-02-13 16:19:57 +08:00
zhang2014
0d8730c687 ISSUES-1885 fix signed problem 2018-02-13 13:46:16 +08:00
Alexey Milovidov
d8ac2382c4 Added performance test #1889 2018-02-13 00:19:56 +03:00
Nikolai Kochetov
7c69ecb3ef fix test [#CLICKHOUSE-3479] 2018-02-13 00:13:50 +03:00
Nikolai Kochetov
90d67d4e8a added test for moving partition from collapsing to versioned collapsing merge tree [#CLICKHOUSE-3479] 2018-02-13 00:13:50 +03:00
Nikolai Kochetov
36de8a2911 added secondary sort expression [#CLICKHOUSE-3479] 2018-02-13 00:13:50 +03:00
Nikolai Kochetov
64b3a8baa7 added secondary sort expression [#CLICKHOUSE-3479] 2018-02-13 00:13:50 +03:00
Nikolai Kochetov
cd7a5290b2 added tests for ReplicatedVersionedCollapsingMergeTree creation [#CLICKHOUSE-3479] 2018-02-13 00:13:50 +03:00
Nikolai Kochetov
67db049297 moved tests for vertical merge into autotests [#CLICKHOUSE-3479] 2018-02-13 00:13:50 +03:00
Nikolai Kochetov
4040e156b5 added checks and comments for FixedSizeDequeWithGaps; review fixes [#CLICKHOUSE-3479] 2018-02-13 00:13:50 +03:00
Nikolai Kochetov
beb866150d added checks and comments for FixedSizeDequeWithGaps; review fixes [#CLICKHOUSE-3479] 2018-02-13 00:13:50 +03:00
Nikolai Kochetov
40ef753992 added VersionedCollapsingMergeTree to help message [#CLICKHOUSE-3479] 2018-02-13 00:13:50 +03:00
Nikolai Kochetov
32bdf7c38c renamed MultiversionMergeTree to VersionedCollapsingMergeTree [#CLICKHOUSE-3479] 2018-02-13 00:13:50 +03:00
Nikolai Kochetov
81c61c9aa9 added test for vertical merge in MultiversionMergeTree [#CLICKHOUSE-3479] 2018-02-13 00:13:50 +03:00
Nikolai Kochetov
e997db55ef fix for vertical merge in MultiversionMergeTree [#CLICKHOUSE-3479] 2018-02-13 00:13:50 +03:00
Nikolai Kochetov
db0692eb7c added test for MultiversionMergeTree [#CLICKHOUSE-3479] 2018-02-13 00:13:50 +03:00
Nikolai Kochetov
66b94d481a added MultiversionMergeTree [#CLICKHOUSE-3479] 2018-02-13 00:13:50 +03:00
Alexey Milovidov
3656aa0606 Improved performance of function arrayElement with constant array when one of element is an empty array #1889 2018-02-13 00:06:13 +03:00
Vitaliy Lyudvichenko
ac0d1f8fba Addition to prev revision. [#CLICKHOUSE-2]
Add cluster(cluster_name, db, table) table function.
2018-02-12 23:44:59 +03:00
Vitaliy Lyudvichenko
40ac028e21 remote() table function accepts cluster name identifier as the 1st argument. [#CLICKHOUSE-2]
Add cluster(cluster_name, db, table) table function.
2018-02-12 23:35:56 +03:00
Vitaliy Lyudvichenko
d5fd8b9b5f Fix DROP MV with max_table_size_to_drop. [#CLICKHOUSE-3]
Resolves #1863
2018-02-12 23:35:56 +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
c104566eb8 Fixed performance regression in usage of COWPtr in complex cases [#CLICKHOUSE-3584]. 2018-02-12 23:10:24 +03:00
proller
2d9f66115f listen_try config option (#1892)
* Docker wip

* no tests

* fixes

* No tests

* Fixes

* Clean

* listen_try config option

* listen_try for tests
2018-02-12 22:36:18 +03:00
zhang2014
acb5b99195 ISSUES-1885 fix align bound 2018-02-12 16:05:24 +08:00
zhang2014
5f9292ac30 ISSUES-1885 resolve some opinions 2018-02-12 15:58:04 +08:00
zhang2014
73077e0245 ISSUES-1885 fix failed test 2018-02-12 15:31:54 +08:00
zhang2014
0f20952f2c ISSUES-1885 UTF8 countCodePoints use simd 2018-02-12 15:31:22 +08:00
Alexey Milovidov
f68600973f Fixed build [#CLICKHOUSE-2] 2018-02-12 04:11:28 +03:00
Alexey Milovidov
55c969d073 Added test [#CLICKHOUSE-2] 2018-02-12 03:55:46 +03:00
Alexey Milovidov
95bc1ffd2e Added functions parseDateTimeBestEffort, parseDateTimeBestEffortOrZero, parseDateTimeBestEffortOrNull [#CLICKHOUSE-2] 2018-02-12 02:57:07 +03:00
Alexey Milovidov
b5430b3885 Function "parseDateTimeBestEffort": development [#CLICKHOUSE-2] 2018-02-11 07:09:02 +03:00
Alexey Milovidov
c704f8b10c Fixed build #1879 2018-02-09 22:32:12 +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
c5dd6a9fed
Update IFunction.h 2018-02-09 22:20:18 +03:00
alexey-milovidov
1c308d7d6b
Update IFunction.h 2018-02-09 22:15:40 +03:00
alexey-milovidov
1b2b31b24e
Update FunctionsMiscellaneous.h 2018-02-09 22:06:29 +03:00
alexey-milovidov
74a7a13ffa
Update ColumnFunction.h 2018-02-09 22:02:37 +03:00
alexey-milovidov
fb58050994
Update FunctionsMiscellaneous.h 2018-02-09 22:02:01 +03:00
alexey-milovidov
2224eb3936
Merge pull request #1880 from lugt/master
Fix on an compiling error
2018-02-09 21:12:33 +03:00
Alexey Milovidov
0bc7772bbf Miscellaneous #1881 #180 2018-02-09 21:10:32 +03:00
Alexey Milovidov
a101b735a6 Miscellaneous #1881 #180 2018-02-09 21:06:31 +03:00
zhang2014
7f4f723aa0 ISSUES-180 fix empty function with FixedString 2018-02-10 00:37:13 +08:00
alexey-milovidov
5502f5fbb8
Update ColumnsCommon.h 2018-02-09 18:09:33 +03:00
zhang2014
4e36616729 ISSUES-180 add test 2018-02-09 19:38:24 +08:00
zhang2014
7a1e5a0971 ISSUES-180 fix empty function with FixedString 2018-02-09 19:05:19 +08:00
Fruit of Eden
81f654fe40
Fix on an compiling error
added some non-effect code to avoid no-use-parameter occurence
2018-02-09 11:30:08 +08:00
Alexey Milovidov
7e83b8a729 Fixed build #1840 2018-02-09 00:15:46 +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
8b2678328e
Update StorageSystemTables.cpp 2018-02-08 22:40:41 +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
proller
82d74f5ab3 Allow redefine server config via command line: clickhouse-server -- --logger.level=information (#1811)
* Aloow redefine server config via command line: clickhouse-server -- --logger.level=information

* style

* fix

* BaseDaemon: Simpler createDirectory

* Allow --key value

* Update BaseDaemon.cpp

* Update BaseDaemon.cpp
2018-02-08 22:12:37 +03:00
Nikolai Kochetov
e02ca10b9a merged with master 2018-02-08 20:46:22 +03:00
alexey-milovidov
2e115dff1b
Merge pull request #1823 from chenxing-xc/master
fix endless query issue
2018-02-08 20:41:52 +03:00
alexey-milovidov
bca723b06b
Update MergeTreeBaseBlockInputStream.cpp 2018-02-08 20:41:36 +03:00
alexey-milovidov
1d8cfa351d
Update MergeTreeBaseBlockInputStream.cpp 2018-02-08 20:40:23 +03:00
Nikolai Kochetov
bad2b8c032 fix build [#CLICKHOUSE-3550] 2018-02-08 20:20:12 +03:00
Nikolai Kochetov
733450d1dd added more comments [#CLICKHOUSE-3550] 2018-02-08 20:20:10 +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
b7d0ae49fd
Merge pull request #1844 from bocharov/master
Fix uniqHLL12 and uniqCombined for cardinalities 100M+.
2018-02-08 20:01:45 +03:00
robot-metrika-test
3bb75a9b6e Auto version update to [54350] 2018-02-08 19:59:51 +03:00
proller
41ad692cef
Pbuilder ccache fixes (#1878)
* Pbuilder ccache fixes
2018-02-08 19:41:30 +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
Vitaliy Lyudvichenko
42754a5327 Add new virtual columns into system.tables. [#CLICKHOUSE-3554] 2018-02-08 17:15:40 +03:00
robot-metrika-test
cbda6c2b21 Auto version update to [54349] 2018-02-08 14:37:41 +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
alexey-milovidov
8dc7b7338c
Update config.xml 2018-02-07 21:28:39 +03:00
alexey-milovidov
b7a09d160d
Merge pull request #1857 from gerasim13/null-values-support-for-string-field
allow nulls in string field (mongodb dictionary)
2018-02-07 20:49:56 +03:00
alexey-milovidov
22263ad627
Update MongoDBDictionarySource.cpp 2018-02-07 20:49:41 +03:00
robot-metrika-test
df6ed74388 Auto version update to [54348] 2018-02-07 20:18:35 +03:00
proller
15e77ec688 Build and test fixes:
Dont test symbols with gdb
    Travis: add clang6 + ubuntu bionic (disabled)
    Travis: dont run tests with gcc7 (too long, does not fit to limit)
    Allow use clang-7 as internal compiler: -DCMAKE_CXX_COMPILER=clang++-7 -DCMAKE_C_COMPILER=clang-7 -DLLVM_VERSION_POSTFIX=-7
    Debian: Fix package install (old version can't do service clickhouse disable_cron)
    Build fixes (ubuntu bionic + clang6.0)
    Update internal compiler clang6.0 to rc1
2018-02-07 18:58:48 +03:00
Tsarkova Anastasia
938cb2b57a Considering set first. 2018-02-07 18:29:00 +03:00
Tsarkova Anastasia
c50ccabb0a Implement MergeTree index using for IN operator with tuple of columns. 2018-02-07 18:29:00 +03:00
robot-metrika-test
124822e250 Auto version update to [54347] 2018-02-07 18:27:54 +03:00
Alexey Zatelepin
c379f56a75 add failover in getStructureOfRemoteTable() function [#CLICKHOUSE-3566] 2018-02-07 17:55:23 +03:00
robot-metrika-test
2e1d90915d Auto version update to [54346] 2018-02-07 17:54:16 +03:00
Vitaliy Lyudvichenko
ef98bff6e1
ClusterCopier improvements (#1869)
* Fixed race condition in StorageDistributed. [#CLICKHOUSE-2]

* ClusterCopier improvements. [#CLICKHOUSE-3346]

* Add performance metrics. [#CLICKHOUSE-3346]
2018-02-07 16:02:47 +03:00
Павел Литвиненко
95ec20d92a added is_object_id to list of valid config keys 2018-02-07 01:35:47 +03:00
Павел Литвиненко
8e61106450 add is_object_id property for determining when to use ObjectId 2018-02-07 00:34:56 +03:00
robot-metrika-test
20af4d45a9 Auto version update to [54345] 2018-02-07 00:00:52 +03:00
Alexey Milovidov
c38e85b1b2 Allow to parse DateTime as unix timestamp without single quotes in Values format #1850 2018-02-06 23:10:49 +03:00
Alexey Milovidov
02ae36fe0c Little better #1855 2018-02-06 21:43:28 +03:00
alexey-milovidov
48a29d6474
Merge pull request #1855 from zhang2014/fix/ISSUES-67
ISSUES-67 Use initial column values with default expression
2018-02-06 21:41:43 +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
Павел Литвиненко
abf0a603c1 this make me crazy, how to retrieve document from array??? 2018-02-06 16:04:19 +03:00
Павел Литвиненко
d0e386a13d no message 2018-02-06 15:53:50 +03:00
Павел Литвиненко
b6f3a2565c convert to objectid without use of any property in config 2018-02-06 15:46:48 +03:00
Павел Литвиненко
6a12d30f78 handle default value 2018-02-06 15:39:16 +03:00
Павел Литвиненко
c2545194b6 revert 2018-02-06 15:18:20 +03:00
Павел Литвиненко
53133f76a7 trying to query without $or 2018-02-06 14:43:09 +03:00
Павел Литвиненко
f0f03596c4 revert 2018-02-06 14:15:13 +03:00
Павел Литвиненко
bb90a9742c add ability to query by objectid 2018-02-06 13:03:04 +03:00
Alexey Milovidov
468a280a94 Fixed bug [#CLICKHOUSE-3561] 2018-02-05 23:33:17 +03:00
Alexey Milovidov
300d8de50b Removed useless line of code [#CLICKHOUSE-2] 2018-02-05 23:32:53 +03:00
Alexey Milovidov
d1785d92a7 Make Enum comparable again [#CLICKHOUSE-3560]. 2018-02-05 21:39:45 +03:00
Alexey Milovidov
d62cb6162b Miscellaneous [#CLICKHOUSE-3559] 2018-02-05 21:25:35 +03:00
Alexey Milovidov
5e37021c18 Added another test [#CLICKHOUSE-3559]. 2018-02-05 21:17:02 +03:00
Alexey Milovidov
4c46a89196 Added another test [#CLICKHOUSE-3559]. 2018-02-05 21:15:47 +03:00
Alexey Milovidov
8b010428a5 Added test [#CLICKHOUSE-3559]. 2018-02-05 21:06:16 +03:00
Alexey Milovidov
4e69ba675d Fixed trash code [#CLICKHOUSE-3559]. 2018-02-05 20:57:38 +03:00
Alexey Milovidov
1ec60b69e2 Miscellaneous [#CLICKHOUSE-3559] 2018-02-05 20:56:50 +03:00
Alexey Milovidov
71ea3774a3 Removed useless method (preparation) [#CLICKHOUSE-3559]. 2018-02-05 20:12:30 +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
Павел Литвиненко
2e847d1a1b fix std::exception. Code: 1001, type: std::logic_error, e.what() = basic_string::_S_construct null not valid 2018-02-04 17:43:29 +03:00
Павел Литвиненко
4ebde2ac7e allow nulls in string field 2018-02-04 17:15:22 +03:00
zhang2014
9f66acaec5 ISSUES-117 add show temporary table test 2018-02-03 16:00:18 +08:00
zhang2014
62b6a9e07c ISSUES-117 resolve some opinions 2018-02-03 16:00:14 +08:00
zhang2014
5e001ba8e0 ISSUES-67 Use initial column values with default expression 2018-02-03 15:42:40 +08:00
zhang2014
551910d1e2 ISSUES-67 add test 2018-02-03 14:49:49 +08:00
robot-metrika-test
3c607171d2 Auto version update to [54344] 2018-02-02 21:25:45 +03: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
proller
c1c512766d Fix LibraryDictionarySource reload 2018-02-01 22:56:22 +03:00
Vitaliy Lyudvichenko
118b17253e Add system_profile config. [#CLICKHOUSE-3558] 2018-02-01 16:53:44 +03:00
Pavel Litvinenko
7db8e99300 Поддержка Mongo ObjectId (#1833)
* update build script (gcc-5 -> gcc-7)

* add gitlab-ci

* sadly but my gitlab worker doesn't have make

* fix gitlkab-ci config

* fix the input device is not a TTY

* set runner tag to docker

* allow to use ObjectId in clickhouse (oid will be converted to string)

* update ci config

* code review
2018-02-01 14:26:44 +03:00
zhang2014
bfd19965b5 ISSUES-117 fix failed test 2018-01-31 23:56:52 +08:00
zhang2014
c74970c098 ISSUES-195 fix complex in expression with single element 2018-01-31 16:38:48 +03:00
Alex Bocharov
9963e2f160 Fix uniqHLL12 and uniqCombined for cardinalities 100M+.
* Changing size() return type from UInt32 to UInt64 to prevent overflow (this shouldn't break back compatibility).
 * Removing "big cardinalities fix" for cardinalities >2^32/30 as it was very inaccurate and for estimates >2^32 it was trying to do 'log' of negative number which is NaN and it was casted to 0.
 * Adding python script to show that intHash32 is not a good choice for HyperLogLog algorithm when it's used for linear counting branch of it.
 * Adding bash script to test uniq, uniqHLL12, uniqCombined on different set cardinalities.
 * Altering documentation of uniq* aggregate functions with recommendations to use uniq instead of uniqHLL12 or uniqCombined.
2018-01-31 11:36:01 +00: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
8e4007fb4e Renamed the failed test. [#CLICKHOUSE-2] 2018-01-30 13:51:21 +03:00
Vitaliy Lyudvichenko
a4248ad45c Resolves #1560. Fixed DROP DATABASE. [#CLICKHOUSE-3] 2018-01-30 13:51:19 +03:00
KochetovNicolai
71f43d9219
Update server-test.xml 2018-01-29 20:49:45 +03:00
KochetovNicolai
901c00f477
Rename 00563_insert_into_remote.sql to 00563_shard_insert_into_remote.sql 2018-01-29 20:48:52 +03:00
KochetovNicolai
66a5680ab9
Rename 00563_insert_into_remote.reference to 00563_shard_insert_into_remote.reference 2018-01-29 20:48:14 +03:00
KochetovNicolai
4a2582315b
Update server-test.xml 2018-01-29 20:09:14 +03:00
KochetovNicolai
1a7119a1c8
Update server-test.xml 2018-01-29 18:31:55 +03:00
Nikolai Kochetov
97d6c81b55 added <listen_host>::</listen_host> into server-test.xml 2018-01-29 16:35:30 +03:00
Nikolai Kochetov
21935dc53e removed remote(127.0.0.1) from tests 2018-01-29 14:40:28 +03:00
Nikolai Kochetov
277e3b8364 test for insert into remote table function 2018-01-29 13:08:25 +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
alexey-milovidov
bea49ca136
Merge pull request #1741 from yandex/array-functions-hasAll-hasAny-intersect
Array functions hasAll hasAny arrayIntersect arrayResize
2018-01-26 12:06:48 +03:00
proller
63b3bccb04 Test and build fixes (#1822)
* Fix travis

* try

* try

* Disable macos

* Travis enable macos

* Fix

* fast_finish: true

* fix

*  fxi

* fix openssl

* fix

* fix

* Fix

* try travis

* fix

* fix

* Cmake: dont filter platform-depended files in cmake

* misc

* renamed:    tests/server_wrapper.sh -> tests/clickhouse-test-serve

* install clickhouse-test-server

* clickhouse-test-server wip

* wip
2018-01-26 12:03:38 +03:00
Vitaliy Lyudvichenko
e2fb6d8c80 Merge remote-tracking branch 'origin/master' into CLICKHOUSE-3346 2018-01-25 22:00:08 +03:00
Vitaliy Lyudvichenko
4665201827 Add metric for duplicated inserts. [#CLICKHOUSE-2] 2018-01-25 21:47:44 +03:00
Vitaliy Lyudvichenko
61233b886a Better system.part_log. [#CLICKHOUSE-3342] 2018-01-25 21:40:02 +03:00
Vitaliy Lyudvichenko
d0f42c8f2f Add kazoo lib into integration test, enhanced some tests. [#CLICKHOUSE-3346] 2018-01-25 21:14:37 +03:00
zhang2014
f0e097ea4d ISSUES-320 fix test failed 2018-01-26 00:57:48 +08:00
chenxing.xc
be85910088 fix endless query issue #1769 2018-01-26 00:44:47 +08:00
Vitaliy Lyudvichenko
d6db480be1 Forward settings through Distributed table. [#CLICKHOUSE-3346] 2018-01-25 19:04:54 +03:00
Nikolai Kochetov
9965f5e357 swap source and last_exception in StorageSystemDictionaries 2018-01-25 18:57:07 +03:00
Vitaliy Lyudvichenko
26e58271e9 Removed repeatable columns field from Storages declarations. [#CLICKHOUSE-2] 2018-01-25 17:42:39 +03:00
Vitaliy Lyudvichenko
8be2bfc513 Added docs and requested changes. [#CLICKHOUSE-3346] 2018-01-25 15:45:07 +03:00
alexey-milovidov
24ac18201c Update getFQDNOrHostName.cpp
Update isLocalAddress.cpp

Update IBlockOutputStream.h

Update users.xml
2018-01-24 17:14:21 +03:00
Arsen Hakobyan
89ca08147b Fixes memory leak in hash dictionary
Fixes case when keys might not be loaded for complex key hash dictionary
2018-01-24 16:28:51 +04:00
robot-metrika-test
76629e99ae Auto version update to [54343] 2018-01-24 03:11:30 +03:00
Alexey Milovidov
6066f3b8d2 Removed flappy test [#CLICKHOUSE-2] 2018-01-24 03:10:06 +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
alexey-milovidov
151901af0f
Merge pull request #1814 from yandex/CLICKHOUSE-3545
Make early deduplication with block number creation
2018-01-23 22:27:02 +03:00
Alexey Milovidov
e8a0dde15b Added more checks [#CLICKHOUSE-2]. 2018-01-23 21:49:15 +03:00
Vitaliy Lyudvichenko
b4ab7d4b8e Make early deduplication with block number creation. [#CLICKHOUSE-3545] 2018-01-23 18:50:29 +03:00
Vlad Arkhipov
6738d6a995 Add comments. Improve method names. 2018-01-23 11:18:12 +03:00
alexey-milovidov
e585cce18d
Merge pull request #1810 from yandex/CLICKHOUSE-3409
Clickhouse-3409
2018-01-23 03:31:48 +03:00
Vitaliy Lyudvichenko
af2c4e87dc Merged ZooKeeper lib changes from CLICKHOUSE-3342. Part 2. [#CLICKHOUSE-3346] 2018-01-22 21:56:39 +03:00
Vitaliy Lyudvichenko
0bd5f6a447 Merged ZooKeeper lib changes from CLICKHOUSE-3342. Part 1. [#CLICKHOUSE-3346] 2018-01-22 21:56:23 +03:00
Nikolai Kochetov
49101fb0a6 added test for macro for cluster name in Distributerd table and DDL [#CLICKHOUSE-3409] 2018-01-22 21:49:21 +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
Vitaliy Lyudvichenko
1d5751d8a8 Added standalone clickhouse-cluster-copier binary. [#CLICKHOUSE-3346] 2018-01-22 21:33:18 +03:00
Alexey Milovidov
a7149b63e7 Added config substitution to log to console in development environment [#CLICKHOUSE-2]. 2018-01-22 21:12:47 +03:00
alexey-milovidov
21274e80cc
Update Set.cpp 2018-01-22 21:07:55 +03:00
robot-metrika-test
220ae501fb Auto version update to [54342] 2018-01-22 20:51:44 +03:00
Vitaliy Lyudvichenko
1000328571 Merge remote-tracking branch 'origin/master' into CLICKHOUSE-3346 2018-01-22 20:31:08 +03:00
Nikolai Kochetov
ff0328aee7 fix build [#CLICKHOUSE-2998] 2018-01-22 13:18:55 +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
Alexey Milovidov
08a76cbdcc Miscellaneous [#CLICKHOUSE-2] 2018-01-22 01:00:27 +03:00
Alexey Milovidov
5e80bd6365 Miscellaneous [#CLICKHOUSE-2] 2018-01-22 00:59:03 +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
Vlad Arkhipov
be96cf5133 Replace subqueries and table expressions on the right side of the IN operator with their results in order to make MergeTree storage engines evaluate the corresponding conditions by using the index. 2018-01-21 11:22:52 +03:00
proller
c430af5fb8 Freebsd fixes 2018-01-21 02:23:19 +03:00
proller
ee8272561a
More builder fixes (#1801)
* fix boost

* Fix gtest

* fix gtest

* fix

* fix gtest

* fix
2018-01-20 05:35:16 +03:00
Alexey Milovidov
9a02d4f5ff Merge branch 'master' of github.com:yandex/ClickHouse into header-in-input-streams 2018-01-20 04:20:40 +03:00
Alexey Milovidov
61e5b0476f Removed experimental implementations of pointInPolygon variants [#CLICKHOUSE-2] 2018-01-19 23:22:47 +03:00
robot-metrika-test
e77e8a838f Auto version update to [54341] 2018-01-19 23:07:33 +03:00
Nikolai Kochetov
ba1bfb97c8 Merge branch 'array-function-resize' into array-functions-hasAll-hasAny-intersect 2018-01-19 22:33:43 +03:00
Nikolai Kochetov
677758edaa added function arrayResize [#CLICKHOUSE-2998]
added test for arrayResize [#CLICKHOUSE-2998]
2018-01-19 22:32:06 +03:00
Nikolai Kochetov
4fb9ad3981 added push to GatherUtils [#CLICKHOUSE-2998] 2018-01-19 22:32:01 +03:00
alexey-milovidov
6b5809ef42
Update getMostSubtype.h 2018-01-19 22:08:39 +03:00
alexey-milovidov
f425781c72
Update getMostSubtype.cpp 2018-01-19 22:01:22 +03:00
alexey-milovidov
fff9c411e4
Update getMostSubtype.cpp 2018-01-19 21:53:53 +03:00
alexey-milovidov
0a3b1679ec
Update ClearableHashSet.h 2018-01-19 21:51:45 +03:00
alexey-milovidov
1f9ea8b6b0
Merge pull request #1721 from zhang2014/fix/ISSUES-957
ISSUES-957 fix not work when materialized columns with buff table
2018-01-19 21:50:26 +03:00
alexey-milovidov
1b462b0b94
Merge pull request #1759 from yandex/CLICKHOUSE-3432
Fixed 'intersects previous part' due to blind OPTIMIZE
2018-01-19 21:48:41 +03:00
alexey-milovidov
6198fe4a1a
Update StorageReplicatedMergeTree.cpp 2018-01-19 21:46:22 +03:00
alexey-milovidov
e8ebf3b56a
Update StorageReplicatedMergeTree.cpp 2018-01-19 21:45:28 +03:00
alexey-milovidov
f770156b0b
Update MergeTreeDataMerger.cpp 2018-01-19 21:42:22 +03:00
Amos Bird
f87d80c378 Add #pragma once for SquashingTransform.h 2018-01-19 21:40:23 +03:00
Vitaliy Lyudvichenko
bee7127572 Refactoring of Graphite merger. [#CLICKHOUSE-2860] 2018-01-19 21:40:05 +03:00
proller
9ea2521944 Fix macos build 2018-01-19 20:04:32 +03:00
Nikolai Kochetov
60465df20c fixed arrayPushBack, arrayPushFront tests [#CLICKHOUSE-2998] 2018-01-19 17:03:35 +03:00
Nikolai Kochetov
ea7ccda006 added ValueSourceVisitor, simplified concat for multiple arguments [#CLICKHOUSE-2998] 2018-01-19 16:48:18 +03:00
Alexey Milovidov
ba4a07c739 Added test [#CLICKHOUSE-2] 2018-01-19 05:21:38 +03:00
Alexey Milovidov
f2a65f222a Fixed bad code in implementation of NULLs [#CLICKHOUSE-2] 2018-01-19 05:15:10 +03:00
Alexey Milovidov
3e3d7b354a Updated re2 to the latest version [#CLICKHOUSE-2] 2018-01-19 04:18:47 +03:00
Alexey Milovidov
9f57a1f7a5 Fixed error: if default user had readonly accesss, the server could not start [#CLICKHOUSE-2] 2018-01-19 02:40:32 +03:00
proller
76cf0ba5d0 Better tests (#1785)
* Make separate libs Common/ZooKeeper and Common/ConfigProcessor
renamed:    dbms/src/Common/StringUtils.h -> dbms/src/Common/StringUtils/StringUtils.h

* Fix space

* Fix data in system.build_options

* merge

* merge

* Travis optimize

* optimize

* Fix clickhouse-test --no-long

* no long

* Split too long test

* Better tests

* missing file

* Fix includes

* Added draft [#CLICKHOUSE-2].

* fix

* fix

* fix

* Fix test 281 under asan
2018-01-18 23:33:16 +03:00
Vitaliy Lyudvichenko
0b8d2a2024 Fixed nondeterministic merge in GraphiteMergeTree. [#CLICKHOUSE-2860] 2018-01-18 23:30:03 +03:00
robot-metrika-test
d1acf9d772 Auto version update to [54340] 2018-01-18 22:54:15 +03:00
proller
c4c57e0ae2 Fix test 00532_pager_sigpipe 2018-01-18 21:51:10 +03:00
Nikolai Kochetov
de274b317a added ArraySourceVisitor and ArraySinkVisitor [#CLICKHOUSE-2998] 2018-01-18 18:50:35 +03:00
robot-metrika-test
316a5a1d48 Auto version update to [54339] 2018-01-18 17:58:10 +03:00
proller
c3287caf47 Fix test 281 under asan 2018-01-18 17:49:19 +03:00
robot-metrika-test
17570a42d5 Auto version update to [54338] 2018-01-18 04:25:30 +03:00
robot-metrika-test
e303fa8982 Auto version update to [54337] 2018-01-17 21:16:35 +03:00
Vitaliy Lyudvichenko
69a3c81866 Fix incorrect delayed max_result_bytes check. [#CLICKHOUSE-2]
Resolves #1724
2018-01-17 21:15:25 +03:00
proller
ed80378a43 Split too long test 2018-01-17 16:43:29 +03:00
Nikolai Kochetov
694b305036 added arrayIntersect [#CLICKHOUSE-3504] 2018-01-17 14:36:02 +03:00
robot-metrika-test
0580eb1441 Auto version update to [54336] 2018-01-16 23:36:53 +03:00
Alexey Milovidov
947c979537 Added test #1665 2018-01-16 23:35:10 +03:00
Alexey Milovidov
e7adc34aeb Merge branch 'master' of github.com:yandex/ClickHouse 2018-01-16 23:33:10 +03:00
Alexey Milovidov
906c79d991 Added support for floating point numbers with leading + in exponent #1665 2018-01-16 23:32:31 +03:00
proller
087474ba3d Fix tests 2018-01-16 23:17:31 +03:00
Alexey Milovidov
8b7fe2d23e Added suggestion from Chen Yufei #1665 2018-01-16 22:54:20 +03:00
alexey-milovidov
7a25b441f4
Merge pull request #1773 from yandex/small-enhancements
Small enhancements
2018-01-16 22:07:43 +03:00
robot-metrika-test
dc6127f672 Auto version update to [54335] 2018-01-16 21:06:14 +03:00
proller
e8f2bb2d3b
Travis optimize (#1775)
* Travis optimize
2018-01-16 16:44:45 +03:00
Vitaliy Lyudvichenko
3f9f1f7f4c Add forgoten file. [#CLICKHOUSE-2] 2018-01-16 15:12:21 +03:00
Vitaliy Lyudvichenko
b68b60fb38 More detailed test. [#CLICKHOUSE-3]
Resolves #1553.
2018-01-16 15:05:01 +03:00
proller
d97b2edc7c Make separate libs Common/ZooKeeper and Common/ConfigProcessor (#1749)
* Make separate libs Common/ZooKeeper and Common/ConfigProcessor
renamed:    dbms/src/Common/StringUtils.h -> dbms/src/Common/StringUtils/StringUtils.h

* Fix space

* Fix data in system.build_options

* merge

* merge
2018-01-15 22:07:47 +03:00
alexey-milovidov
6ded1b171c
Merge pull request #1764 from amosbird/dedup
Get rid of unnecessary check
2018-01-15 22:06:31 +03:00
proller
f6d8436f81 Enable travis (#1772)
* Try travis

* wip

* Try travis

* try

* try

* try

* try

* Revert "try"

This reverts commit 7ecd73c2eb.

* try unbundled

* Try unbundled2

* Try undundled3

* Try unbundled4

* Try5

* try gcc7

* try6

* Try clang

* Try min

* try ccache

* try ccache stats

* no sudo

* try clang

* try ccache

* reset changelog

* Try fix clang

* try limit time

* Faster

* try timeout

* try faster

* Try

* try

* try

* try

* try

* try

* ccache

* Fix

* try test

* try test

* Fix try_listen in some vm's

* fix

* test

* fix

* cache timeout

* packages

* fix

* fix

* fix

* try emb compiler

* Try emb compiler

* Revert "try emb compiler"

This reverts commit 471713cabe.

* try

* Revert "Try emb compiler"

This reverts commit 95e632abf6.

* Skip long

* fix

* fix

* ccache

* fix

* debug

* Fxi test

* test fix

* tes fix

* Fix

* Fix link

* Fix odbc link

* Fxi test

* fix  boost unbundled include

* fix test

* fix test

* test fix

* fix tests

* tests

* Test fail
2018-01-15 21:57:10 +03:00
Vitaliy Lyudvichenko
5d5ed63e8c Better error message. [#CLICKHOUSE-2] 2018-01-15 20:30:16 +03:00
Vitaliy Lyudvichenko
a95526cd8a Add --silent mode for clickhouse-local. [#CLICKHOUSE-3390] 2018-01-15 18:08:54 +03:00
Vitaliy Lyudvichenko
f20f3f21c4 Update clusters in SYSTEM DROP DNS query. [#CLICKHOUSE-3478] 2018-01-15 17:57:47 +03:00
Arsen Hakobyan
7658665737 Add external dictionary update feature
feature is implemented for DICT TYPES THAT SUPPORT
and for sources SOURCE TYPES THAT ARE SUPPORTED
to use the feature add <update_field>...</...> to dictionary sourcei config.
If the field is skipped or used with unsupported dictionary types,
all data is updated every time if the field is provided,
value of last update time is passed to the source
with the expectation that only records that were updated after
provided time will be passed to the dictionary
2018-01-15 16:44:39 +04:00
Vitaliy Lyudvichenko
9ed1fdbbac Fixed SIGABRT in ConfigReloader. [#CLICKHOUSE-3443] 2018-01-15 15:24:48 +03:00
Vitaliy Lyudvichenko
554ed52920 Avoid superflous pullLogsToQueue() calls. [#CLICKHOUSE-3432] 2018-01-15 13:30:31 +03:00
Vitaliy Lyudvichenko
03bca2144d OPTIMIZE doesn't produce intersecting merges now, add optimize_throw_if_noop setting. [#CLICKHOUSE-3432] [#CLICKHOUSE-3420]
Resolves #1753
2018-01-15 13:13:18 +03:00
Amos Bird
00c35897fa Get rid of unnecessary check 2018-01-15 11:18:52 +08:00
robot-metrika-test
1b82615be6 Auto version update to [54334] 2018-01-14 12:43:52 +03:00
Alexey Milovidov
15b5c27c1c Fixed error [#CLICKHOUSE-2] 2018-01-14 04:25:35 +03:00
Alexey Milovidov
ce5de79263 Fixed tests #1665 2018-01-14 03:12:23 +03:00
Alexey Milovidov
610b64679f Extended domain of function reinterpretAsString #1665 2018-01-14 01:26:49 +03:00
Alexey Milovidov
b1a20d78ed Better #1665 2018-01-14 01:25:02 +03:00
Alexey Milovidov
6cec145f0b Better #1665 2018-01-14 01:16:45 +03:00
Alexey Milovidov
dcaebed90a Better #1665 2018-01-14 01:11:27 +03:00
Alexey Milovidov
049d4d3ddf Better #1665 2018-01-14 01:08:06 +03:00
Alexey Milovidov
5c933d6397 Fixed error #1665 2018-01-14 01:00:15 +03:00
Alexey Milovidov
460cba0e9d Better #1665 2018-01-14 00:26:08 +03:00
Alexey Milovidov
21a5ace37c Fixed error #1665 2018-01-14 00:22:05 +03:00
Alexey Milovidov
37b8d619c9 Fixed error #1665 2018-01-14 00:08:47 +03:00
Alexey Milovidov
66f229e27d Fixed error #1665 2018-01-14 00:03:22 +03:00
Alexey Milovidov
3146533476 More optimal memory layout of BufferBase #1665 2018-01-13 22:29:10 +03:00
Alexey Milovidov
070d8e6e3b Better #1665 2018-01-13 22:14:08 +03:00
Alexey Milovidov
a375757625 Better #1665 2018-01-13 22:13:26 +03:00
Alexey Milovidov
02706f4831 Better #1665 2018-01-13 21:45:57 +03:00
Alexey Milovidov
b9e62ddb2d Better #1665 2018-01-13 21:01:31 +03:00
Alexey Milovidov
c6ac570947 Addition to prev. revision #1665 2018-01-13 08:56:57 +03:00
Alexey Milovidov
c22563b75e Addition to prev. revision #1665 2018-01-13 08:48:32 +03:00
Alexey Milovidov
ddac4345ad Addition to prev. revision #1665 2018-01-13 08:40:40 +03:00
Alexey Milovidov
81187e48b2 Addition to prev. revision #1665 2018-01-13 08:38:27 +03:00
Alexey Milovidov
e8385f6778 Addition to prev. revision #1665 2018-01-13 08:30:11 +03:00
Alexey Milovidov
b7b3b6fc42 Addition to prev. revision #1665 2018-01-13 08:20:18 +03:00
Alexey Milovidov
e300ecd157 Addition to prev. revision #1665 2018-01-13 07:45:13 +03:00
Alexey Milovidov
2bf79be52f Added all methods #1665 2018-01-13 07:43:10 +03:00
Alexey Milovidov
3c144683a4 Updated test #1665 2018-01-13 06:58:45 +03:00
Alexey Milovidov
4c666036ac Modified test #1665 2018-01-13 06:13:39 +03:00
Alexey Milovidov
717c5dad3a Added old method to the test for comparison #1665 2018-01-13 06:06:07 +03:00
Alexey Milovidov
5e2f66954d Added another inaccurate method for reading floats #1665 2018-01-13 05:55:31 +03:00
Alexey Milovidov
f75ef123dc Fixed error #1665 2018-01-13 05:12:25 +03:00
Alexey Milovidov
257e973337 Better [#CLICKHOUSE-2]. 2018-01-13 04:45:20 +03:00
Alexey Milovidov
b42bd53481 Merge branch 'master' into correct-parse-floats 2018-01-13 04:44:43 +03:00
Alexey Milovidov
21d4f451e7 Better [#CLICKHOUSE-2]. 2018-01-13 04:43:06 +03:00
Alexey Milovidov
ca588c7c95 Added performance test #1665. 2018-01-13 04:41:10 +03:00
Alexey Milovidov
74d73af3c4 Addition to prev. revision [#CLICKHOUSE-2]. 2018-01-13 04:37:51 +03:00
Alexey Milovidov
9283c38854 Fixed error [#CLICKHOUSE-2]. 2018-01-13 04:33:55 +03:00
alexey-milovidov
d7d7b210e5
Merge pull request #1760 from proller/fix15
clickhouse-test: print number passed and skipped tests
2018-01-12 22:36:21 +03:00
Alexey Milovidov
823c3cd9c6 Fixed error [#CLICKHOUSE-2]. 2018-01-12 22:28:43 +03:00
Alexey Milovidov
55ea2ebbe5 Allow to create StorageDictionary with identifier in ENGINE parameter [#CLICKHOUSE-2]. 2018-01-12 21:56:13 +03:00
proller
e31aaadc20 clickhouse-test: print number passed and skipped tests 2018-01-12 21:30:15 +03:00
Alexey Milovidov
7a865af32a Integration tests: added clarification [#CLICKHOUSE-2]. 2018-01-12 21:14:54 +03:00
proller
22e3695a47 More system.build_options 2018-01-12 19:50:10 +03:00
proller
364b8ec5ee Fix data in system.build_options 2018-01-12 19:04:18 +03:00
proller
bf2fb5f2cc clickhouse-test: early exit if server died (more than 20 queries failed in chain). Auto use system queries dir. 2018-01-12 16:56:02 +03:00
zhang2014
66dd568e64 ISSUES-957 update condition & test 2018-01-12 21:03:35 +08:00
proller
1c06c0f810 Fix 32bit build 2018-01-12 15:50:59 +03:00
proller
ebcf462fd6 Fix test reference 2018-01-12 15:25:28 +03:00
robot-metrika-test
00cc4639a9 Auto version update to [54333] 2018-01-12 12:43:30 +03:00
Alexey Milovidov
5bb8fe6f03 Added performance test #1665. 2018-01-12 04:32:13 +03:00
Alexey Milovidov
230062c63d Fixed error #1665 2018-01-12 02:53:51 +03:00
Alexey Milovidov
d33ac0ea15 Updated test #1665 2018-01-12 00:33:45 +03:00
Alexey Milovidov
ef8e1dc9f7 Added test #1665 2018-01-12 00:33:19 +03:00
Alexey Milovidov
6ed8c9481c Fixed test [#CLICKHOUSE-2] 2018-01-12 00:31:53 +03:00
Alexey Milovidov
f7235476d7 Fixed test [#CLICKHOUSE-2] 2018-01-12 00:30:34 +03:00
Alexey Milovidov
be7c5227d3 Parsing floats correctly #1665 2018-01-12 00:20:10 +03:00
Vitaliy Lyudvichenko
388d47bbbc Merge branch 'CLICKHOUSE-3346-v310' into CLICKHOUSE-3346 2018-01-11 23:51:30 +03:00
Alexey Milovidov
3c9c884db8 Better #1665 2018-01-11 23:02:04 +03:00
alexey-milovidov
5b6298c85a
Merge pull request #1748 from ilyshnikova/master
CLICKHOUSE-3497: Add ALTER for null storage tables.
2018-01-11 22:28:25 +03:00
Anastasiya Tsarkova
2b8a4cf030 Add ALTER for null storage tables. 2018-01-11 22:13:19 +03:00
Vitaliy Lyudvichenko
47616c31be Added enabled_partitions option. [#CLICKHOUSE-3346] 2018-01-11 21:55:47 +03:00
Vitaliy Lyudvichenko
43ae5a6932 Fixed test. [#CLICKHOUSE-3346] 2018-01-11 21:55:47 +03:00
Vitaliy Lyudvichenko
7c66d2c47c Fixed incorrect INSERT into Distributed table in async mode. [#CLICKHOUSE-2]
See a4636f8656
2018-01-11 21:55:46 +03:00
Vitaliy Lyudvichenko
bdf96eed91 Add integration test and more options. [#CLICKHOUSE-3346] 2018-01-11 21:55:46 +03:00
Vitaliy Lyudvichenko
ef35aa0a41 Add daemon mode. [#CLICKHOUSE-3346] 2018-01-11 21:55:46 +03:00
Vitaliy Lyudvichenko
30028f14e0 Removed obolete code. [#CLICKHOUSE-3346] 2018-01-11 21:55:45 +03:00
Vitaliy Lyudvichenko
1517422f4d Add check for existing data. [#CLICKHOUSE-3346] 2018-01-11 21:55:45 +03:00
Vitaliy Lyudvichenko
e996da050d Add copying check and retries. [#CLICKHOUSE-3346] 2018-01-11 21:55:45 +03:00
Vitaliy Lyudvichenko
e1fafb1f2f Minimal working example. [#CLICKHOUSE-3346] 2018-01-11 21:55:45 +03:00
Vitaliy Lyudvichenko
c818beedcb Make data_path creation for Databases optional. [#CLICKHOUSE-2] 2018-01-11 21:55:43 +03:00
Alexey Milovidov
73460a5f86 Fixed error [#CLICKHOUSE-2]. 2018-01-11 21:55:31 +03:00
Vitaliy Lyudvichenko
ac17c59108 Updated describe query, cluster copier draft. [#CLICKHOUSE-3346] 2018-01-11 21:55:08 +03:00
Vitaliy Lyudvichenko
fbba1ff99d Remove obsolete code. [#CLICKHOUSE-2] 2018-01-11 21:55:07 +03:00
Nikolai Kochetov
515cb7fbca renamed getLeastCommonType => getLeastSupertype; getMostCommonType => getMostSubtype [#CLICKHOUSE-3504] 2018-01-11 21:47:02 +03:00
proller
b026eb7797 Use submodule contrib/capnproto, remove include_directories (#1746)
* Add submodule contrib/capnproto

* Use contrib/capnproto, remove include_directories

* Fix include

* Clean

* Fix werror

* Update doc

* Fix

* Final fix

* Fxi
2018-01-11 21:39:52 +03:00
Nikolai Kochetov
8270e40819 added test for getMostCommonType(...) [#CLICKHOUSE-3504] 2018-01-11 21:00:56 +03:00
Nikolai Kochetov
5e4b86fd41 added test for getLeastCommonType(...) [#CLICKHOUSE-3504] 2018-01-11 21:00:42 +03:00
proller
68b752bf02 Add broken test remote('host:port') 2018-01-11 20:28:49 +03:00
Nikolai Kochetov
ca085a7e47 added getMostCommonType(...) [#CLICKHOUSE-3504] 2018-01-11 17:10:43 +03:00
proller
dea5dcd85d Fix tests (sudo params on precise, deleted engine) 2018-01-11 15:26:25 +03:00
robot-metrika-test
ffff9320cd Auto version update to [54332] 2018-01-11 10:25:25 +03:00
Nikolai Kochetov
0d3ba65e0e fixed cast for arrays [#CLICKHOUSE-3504] 2018-01-10 22:52:39 +03:00
Nikolai Kochetov
f0f6343a39 added tests for hasAll and hasAny [#CLICKHOUSE-3504] 2018-01-10 22:00:00 +03:00
Nikolai Kochetov
8ceb85bcca moved GatherUtils* to GatherUtils/ [#CLICKHOUSE-3504] 2018-01-10 21:59:48 +03:00
Nikolai Kochetov
a76bb9660c added functions arrayAny and arrayAll [#CLICKHOUSE-3504] 2018-01-10 21:59:14 +03:00
张健
6f28e0a66a
Merge branch 'master' into fix/ISSUES-957 2018-01-10 14:53:52 +08:00
zhang2014
fc62a3677c ISSUES-957 update setting desc & add condition for insert pipline 2018-01-10 13:26:40 +08:00
Alexey Milovidov
8f0cf29a56 Miscellaneous [#CLICKHOUSE-2]. 2018-01-10 04:45:28 +03:00
Alexey Milovidov
94701c1d17 Addition to prev. revision [#CLICKHOUSE-2]. 2018-01-10 04:43:54 +03:00
Alexey Milovidov
f0391a6358 Addition to prev. revision [#CLICKHOUSE-2]. 2018-01-10 03:15:08 +03:00
Alexey Milovidov
d33023574b Addition to prev. revision [#CLICKHOUSE-2]. 2018-01-10 03:14:06 +03:00
Alexey Milovidov
b4674d3917 Addition to prev. revision [#CLICKHOUSE-2]. 2018-01-10 03:09:22 +03:00
Alexey Milovidov
550053a0ca Merge branch 'master' into header-in-input-streams 2018-01-10 03:05:51 +03:00
Alexey Milovidov
9da64d5480 Merge branch 'master' of github.com:yandex/ClickHouse 2018-01-10 03:04:20 +03:00
Alexey Milovidov
0bfea2f52c Miscellaneous [#CLICKHOUSe-2] 2018-01-10 03:04:08 +03:00
proller
b0469def79 Remove package clickhouse-compressor, simpler pbuilder test 2018-01-10 02:43:04 +03:00
Alexey Milovidov
d5f6c8365e Fixed test [#CLICKHOUSE-2]. 2018-01-10 00:26:11 +03:00
alexey-milovidov
45c913ccc8 Update AggregateFunctionMinMaxAny.h 2018-01-09 21:51:14 +03:00
Nikolai Kochetov
aefc9210fa added perftest [#CLICKHOUSE-3503] 2018-01-09 21:51:14 +03:00
Nikolai Kochetov
8552434843 added arena in AggregateFunctionSingleValue for strings and numbers [#CLICKHOUSE-3503] 2018-01-09 21:51:14 +03:00
Nikolai Kochetov
cbeeb84999 added http_*_timeout settings [#CLICKHOUSE-3440] 2018-01-09 21:41:01 +03:00
alexey-milovidov
890ad92f90
Merge pull request #1627 from yandex/table-system-parts_columns
Table system.parts_columns
2018-01-09 21:33:55 +03:00
alexey-milovidov
2a7024ba5a Update MergeTreeData.cpp 2018-01-09 21:01:26 +03:00
alexey-milovidov
1292d14185 Update MergeTreeData.cpp 2018-01-09 21:01:26 +03:00
zhang2014
517958ab09 ISSUES-1369 fix typo 2018-01-09 21:01:26 +03:00
zhang2014
be966015c9 ISSUES-1369 add check when create Replacing & Collapsing 2018-01-09 21:01:26 +03:00
Alexey Milovidov
996eafada9 Revert "Remove hard-coded paths in Interpreters/Compiler.cpp"
This reverts commit 3a97fbd0e7.
2018-01-09 20:49:25 +03:00
Alexey Milovidov
f630e4b0a6 Revert "Update gen-compiler-includes.sh"
This reverts commit 6b758edbbc.
2018-01-09 20:49:22 +03:00
alexey-milovidov
014049110f
Update ProhibitColumnsBlockOutputStream.cpp 2018-01-09 20:47:03 +03:00
Chen Yufei
88ef42c222 Aggressive merge for ReplicatedMergeTree optimize. 2018-01-09 20:44:07 +03:00
Alexey Milovidov
c4e5f8a500 Added test for RIGHT JOIN #1731 2018-01-09 20:31:52 +03:00
Amos Bird
a3d2a4fe4d NonJoinedBlockInputStream generates duplicate records across block.
This patch fixes the iterator incrementation.
2018-01-09 20:30:07 +03:00
proller
694c6ed243 Cmake: move all gtest stuff to one place in dbms/CMakeLists.txt 2018-01-09 20:29:17 +03:00
Alexey Milovidov
d1141ff03b Merge branch 'master' of github.com:yandex/ClickHouse 2018-01-09 20:27:37 +03:00
Alexey Milovidov
fa522ea946 Addition to e505e87bb4 [#CLICKHOUSE-2]. 2018-01-09 20:27:08 +03:00
alexey-milovidov
6b758edbbc Update gen-compiler-includes.sh 2018-01-09 20:24:25 +03:00
Roman Tsisyk
3a97fbd0e7 Remove hard-coded paths in Interpreters/Compiler.cpp
Interpreters/Compiler.cpp contained hard-coded paths for system's
includes needed for query compiler. These paths were not portable
between different Linux distros and gcc/clang versions. For example,
Debian/Ubuntu use /usr/lib/gcc/x86_64-linux-gnu/*/include,
RHEL/Fedora use /usr/lib/gcc/x86_64-redhat-linux/*/include,
others use /usr/lib/gcc/*/include (without x86_64-XXX triplet).

Patch 68850012b "Embedded compiler fixes" attempted to fix this problem
by adding CMAKE_LIBRARY_ARCHITECTURE after /usr/lib. Unfortunally,
CMAKE_LIBRARY_ARCHITECTURE is not defined on RHEL/Fedora because someone
decided to omit "-gnu" from x86_64-redhat-linux (see RHBZ#1531678).

Patch 70e35d0bc "Build fixes (#1718)" added a workaround for
undefined CMAKE_LIBRARY_ARCHITECTURE on RHEL/Fedora, but hasn't fixed
problem with missing /usr/lib/gcc/x86_64-redhat-linux/*/include/
in the list of hardcoded paths.

Remove hard-coded paths and get the list of `-isystem` includes directly
from bundled clickhouse-clang.

Other changes:

- Enable RPATH for the build directory to get working binaries
  without installing them by `make install`.
2018-01-09 20:24:25 +03:00
Roman Tsisyk
5cea83a98d Unbundle contrib/googletest
Allow to use system libgtest-dev/gtest-devel when -DUNBUNDLED is ON.
2018-01-09 20:15:31 +03:00
proller
e505e87bb4 Fix format_schema_path in default config 2018-01-09 20:02:52 +03:00
robot-metrika-test
ee2ea696ba Auto version update to [54331] 2018-01-09 10:46:57 +03:00
Alexey Milovidov
098cdf8ebe Added method "getHeader" in IBlockInputStream [#CLICKHOUSE-2] 2018-01-09 05:09:08 +03:00
Alexey Milovidov
5081f276d1 Added method "getHeader" in IBlockInputStream [#CLICKHOUSE-2] 2018-01-09 04:51:08 +03:00
Alexey Milovidov
fe880d73e7 Added method "getHeader" in IBlockInputStream [#CLICKHOUSE-2] 2018-01-09 03:19:58 +03:00
Alexey Milovidov
1780e6c1d9 Added method "getHeader" in IBlockInputStream [#CLICKHOUSE-2] 2018-01-08 04:14:43 +03:00
Alexey Milovidov
12c521fa25 Added method "getHeader" in IBlockInputStream [#CLICKHOUSE-2] 2018-01-07 03:35:44 +03:00
Alexey Milovidov
9996e181e1 Added method "getHeader" in IBlockInputStream [#CLICKHOUSE-2] 2018-01-06 21:10:44 +03:00
Alexey Milovidov
e2d70943b8 Unification of Nested: development [#CLICKHOUSE-2]. 2018-01-02 12:11:13 +03:00
Alexey Milovidov
4371778144 Unification of Nested: development [#CLICKHOUSE-2]. 2018-01-02 09:13:22 +03:00
Alexey Milovidov
fffad2bb3b Added test [#CLICKHOUSE-2]. 2018-01-02 08:56:26 +03:00
Alexey Milovidov
c4687b5fb9 Unification of Nested: development [#CLICKHOUSE-2]. 2018-01-02 08:54:34 +03:00
zhang2014
b7639c2324 ISSUES-957 update 00553_buff_exists_materlized_column.sql 2018-01-01 19:56:52 +08:00
zhang2014
6fe64aa346 ISSUES-957 fix not work when materialized columns with buff table 2018-01-01 19:54:14 +08:00
Alexey Milovidov
005f6b96fa Added function "sleepEachRow" for testing purposes #1713 2017-12-30 07:50:12 +03:00
Alexey Milovidov
b96ae0aa0e Added function "sleepEachRow" for testing purposes #1713 2017-12-30 07:29:51 +03:00
Alexey Milovidov
68de761e6a Fixed comment [#CLICKHOUSE-2]. 2017-12-30 07:03:49 +03:00
Alexey Milovidov
993a5e44d0 Inverted dependencies in StorageFactory (continued) [#CLICKHOUSE-2]. 2017-12-30 07:00:39 +03:00
Alexey Milovidov
ffca152c45 Inverted dependencies in StorageFactory [#CLICKHOUSE-2]. 2017-12-30 07:00:39 +03:00
Alexey Milovidov
7244514859 Less dependencies in StorageFactory: development [#CLICKHOUSE-2]. 2017-12-30 07:00:39 +03:00
proller
70e35d0bcc Build fixes (#1718)
* Embedded compiler fixes

* common lib not needed for clang and lld

* Fix pthread link

* Fix shared build

* Arm fixes 1

* arm fix

* Unused fix

* Build fixes

* release --pbuilder

* release pbuilder fix

* FORCE_PBUILDER_CREATE=1 release

* release: Auto use clang with sanitizers

* Fix build without poco data odbc lib. zlib arm build fix.

* Fix freebsd build and build without mysql

* Tests: Dont eat my cpu!

* Test me
2017-12-29 18:48:20 +03:00
proller
1610abdd5c Tests: Dont eat my cpu! 2017-12-29 16:59:01 +03:00
Nikolai Kochetov
645a8d86f2 fix build 2017-12-28 21:33:07 +03:00
Nikolai Kochetov
ea41197c51 merger with master 2017-12-28 21:20:53 +03:00
Alexey Milovidov
7a2fcd3055 Fixed build on AArch64 [#CLICKHOUSE-1700] 2017-12-28 19:51:53 +03:00
robot-metrika-test
f998b0c859 Auto version update to [54330] 2017-12-28 18:27:14 +03:00
proller
7a813002aa Build fixes 2017-12-28 15:58:39 +03:00
robot-metrika-test
5baa388708 Auto version update to [54329] 2017-12-28 13:55:24 +03:00
Alexey Milovidov
4c3fba2719 Table functions MySQL and ODBC: development [#CLICKHOUSE-3114]. 2017-12-28 08:26:45 +03:00
Alexey Milovidov
cefb5b61fd Table functions MySQL and ODBC: development [#CLICKHOUSE-3114]. 2017-12-28 08:15:09 +03:00
Alexey Milovidov
10bf086397 Table functions MySQL and ODBC: development [#CLICKHOUSE-3114]. 2017-12-28 07:59:04 +03:00
Alexey Milovidov
28c6804c10 Miscellaneous [#CLICKHOUSE-2]. 2017-12-28 07:50:14 +03:00
Alexey Milovidov
fcdd5de47d Revert "Removed questionable code (2) [#CLICKHOUSE-2]."
This reverts commit fcabe8b888.
2017-12-28 07:39:19 +03:00
Alexey Milovidov
0fa9383d3e Revert "Addition to prev. revision [#CLICKHOUSE-2]"
This reverts commit bc4a5794d9.
2017-12-28 07:39:01 +03:00
Alexey Milovidov
798299ba89 Merge branch 'aavdonkin-master' 2017-12-28 07:33:55 +03:00
Alexey Milovidov
1fecbc3ef4 Merging [#CLICKHOUSE-3114] 2017-12-28 07:33:35 +03:00
Alexey Milovidov
9f2cd7a304 Merging [#CLICKHOUSE-3114] 2017-12-28 07:29:53 +03:00
Alexey Milovidov
4448766266 Merging [#CLICKHOUSE-3114] 2017-12-28 07:28:05 +03:00
Alexey Milovidov
4cde48fb20 Merge branch 'master' of github.com:yandex/ClickHouse 2017-12-28 01:40:42 +03:00
Alexey Milovidov
104b09604a Merging [#CLICKHOUSE-3114] 2017-12-28 00:45:05 +03:00
Alexey Milovidov
7e6a6df99e Merge branch 'master' into aavdonkin-master 2017-12-27 23:13:02 +03:00
proller
fc9c1813f8 Fix shared build 2017-12-27 23:07:16 +03:00
proller
4f894a677a Fix pthread link 2017-12-27 23:07:16 +03:00
proller
f5f976a464 common lib not needed for clang and lld 2017-12-27 23:07:16 +03:00
proller
68850012bd Embedded compiler fixes 2017-12-27 23:07:16 +03:00
proller
f9d3c01a01 Add package clickhouse-test, allow testing in pbuilder (#1709)
* Allow 32bit build (with warning)

* Add package clickhouse-test

* Test fixes

* fix

* fix

* clickhouse-test: aloow work in read-only queries dir (--tmp)

* Fix test
2017-12-27 22:01:57 +03:00
Alexey Milovidov
f5b1ad1fa2 Merge branch 'master' into aavdonkin-master 2017-12-27 21:50:01 +03:00
Alexey Milovidov
b79aa5db4e Update documentation about required ZK version; Miscellaneous #1458 2017-12-27 21:34:58 +03:00
proller
8c01852dc6 Fix test 2017-12-27 19:18:51 +03:00
proller
015a6c469b clickhouse-test: aloow work in read-only queries dir (--tmp) 2017-12-27 19:04:15 +03:00
robot-metrika-test
becb843d18 Auto version update to [54328] 2017-12-27 11:09:36 +03:00
Alexey Milovidov
09262ae0d7 Merge branch 'master' of github.com:yandex/ClickHouse 2017-12-27 01:56:30 +03:00
Alexey Milovidov
b2fcf06353 Merging [#CLICKHOUSE-3114] 2017-12-27 00:34:06 +03:00
proller
26c39af91e Allow 32bit build (with warning) 2017-12-26 22:28:41 +03:00
Alexey Zatelepin
280c147a89 remove dependency to StorageReplicatedMergeTree [#CLICKHOUSE-2] 2017-12-26 22:15:15 +03:00
proller
da1233fe3f Fix missing includes 2017-12-26 22:02:00 +03:00
Alexey Milovidov
f87761df90 Merged with master; applied clang-format with newer files [#CLICKHOUSE-3114]. 2017-12-26 21:32:17 +03:00
Alexey Milovidov
203363ea73 Merge branch 'master' of github.com:yandex/ClickHouse 2017-12-26 20:53:36 +03:00
Alexey Milovidov
7a60d773ec Fixed strange code [#CLICKHOUSE-2]. 2017-12-26 20:53:31 +03:00
alexey-milovidov
9bf06a26cc Update PODArray.h 2017-12-26 20:52:22 +03:00
chenxing.xc
e7efee8f41 fix potential memory issue 2017-12-26 20:52:22 +03:00
alexey-milovidov
12e7107d1a
Update PODArray.h 2017-12-26 20:51:56 +03:00
Alexey Milovidov
a629039b08 Revert "Disable failed test."
This reverts commit e9b3d45c06.
2017-12-26 20:40:30 +03:00
alexey-milovidov
06bc58bb7c
Merge pull request #1705 from ekonkov/master
Allow tests to be excluded from execution
2017-12-26 20:40:07 +03:00
alexey-milovidov
7a0281dd20
Update RangeHashedDictionary.cpp 2017-12-26 20:37:21 +03:00
Evgeny Konkov
e9b3d45c06 Disable failed test. 2017-12-26 17:43:00 +03:00
Evgeny Konkov
2f5ae0766e Disable tests with additional message.
By default disabled tests not running.
Add command line switch to force execution of disabled tests.
2017-12-26 17:42:41 +03:00
Nikolai Kochetov
ca77f3d861 fixed NULL value for range hased dictionary range_min and range_max keys [#CLICKHOUSE-3521] 2017-12-26 15:52:58 +03:00
Nikolai Kochetov
5a3506eada merged with master 2017-12-26 13:54:39 +03:00
chenxing.xc
a941e0252c fix potential memory issue 2017-12-26 18:40:11 +08:00
Alexey Milovidov
014641a5d9 Addition to prev. revision [#CLICKHOUSE-2] 2017-12-26 01:51:11 +03:00
Alexey Milovidov
c89041ce63 Removed questionable code (2) [#CLICKHOUSE-2]. 2017-12-26 01:51:04 +03:00
Alexey Milovidov
ec71908b00 Revert "Removed questionable code (2) [#CLICKHOUSE-2]."
This reverts commit fcabe8b888.
2017-12-26 00:57:29 +03:00
Alexey Milovidov
827e82efa6 Revert "Addition to prev. revision [#CLICKHOUSE-2]"
This reverts commit bc4a5794d9.
2017-12-26 00:57:19 +03:00
Alexey Milovidov
bc4a5794d9 Addition to prev. revision [#CLICKHOUSE-2] 2017-12-26 00:50:55 +03:00
Alexey Milovidov
fcabe8b888 Removed questionable code (2) [#CLICKHOUSE-2]. 2017-12-26 00:32:33 +03:00
Alexey Milovidov
5bacda2ed2 Merge branch 'master' of github.com:yandex/ClickHouse 2017-12-26 00:11:56 +03:00
Alexey Milovidov
a85b2e5a95 Removed questionable code [#CLICKHOUSE-2]. 2017-12-26 00:10:46 +03:00
Nikolai Kochetov
64fd3fe35a added test for Dictionary(range_hashed) [#CLICKHOUSE-3521] 2017-12-25 23:55:45 +03:00
Nikolai Kochetov
0c082b134d fixed engine Dictionary(range_hashed) for open interval date keys [#CLICKHOUSE-3521] 2017-12-25 23:55:37 +03:00
proller
3c54be8d5b Add hostname_in_path=true option to garaphite config (#1701)
* Add hostname_in_path=true option to garaphite config

* fix style

* Update config.xml
2017-12-25 23:36:24 +03:00
Alexey Milovidov
73ae622b12 Moved functions to work with tuples to separate file [#CLICKHOUSE-2]. 2017-12-25 22:10:25 +03:00
Alexey Milovidov
bcfde7c6c0 Get rid of DataTypeNested, part 2 [#CLICKHOUSE-2]. 2017-12-25 21:58:39 +03:00
Nikolai Kochetov
2ed66515ff Date type for range_min and range_max in Dictionare(range_hashed) [#CLICKHOUSE-3521] 2017-12-25 21:29:04 +03:00
Alexey Zatelepin
c3348e27a4 shorter [#CLICKHOUSE-2] 2017-12-25 20:31:14 +03:00
proller
fb7047bfe8 Fix 32bit build 2017-12-25 20:17:32 +03:00
alexey-milovidov
94cd6fc061 Update 00544_insert_with_select.sql 2017-12-25 19:02:02 +03:00
zhang2014
2e54dcf9b6 ISSUES-1682 support insert into with select 2017-12-25 19:02:02 +03:00
proller
ccf7c1f760 pbuilder: install package and make simple query (#1671)
* pbuilder: install package and make simple query

* use B92test-pkg from system

* Fix
2017-12-25 19:01:03 +03:00
alexey-milovidov
c1701e3a0e Update 00542_access_to_temporary_table_in_readonly_mode.sql 2017-12-25 18:59:35 +03:00
Kirill Shvakov
4099907d51 Add test readonly and temporary tables 2017-12-25 18:59:35 +03:00
alexey-milovidov
9ed28abdb4 Update 00541_to_start_of_fifteen_minutes.sql 2017-12-25 18:58:37 +03:00
Kirill Shvakov
d87aad45e6 add test toStartOfFifteenMinutes 2017-12-25 18:58:37 +03:00
Alexey Zatelepin
b07dbf52c6 remove unused function [#CLICKHOUSE-2] 2017-12-25 14:40:59 +03:00
Alexey Milovidov
454de9243e Fixed build [#CLICKHOUSE-2] 2017-12-25 10:18:27 +03:00
Alexey Milovidov
04eb0b896c Added proper support for Nullable arguments for function OR #1416 2017-12-25 09:33:51 +03:00
Alexey Milovidov
9b914cf93e Simplification #1416 2017-12-25 08:48:53 +03:00
Alexey Milovidov
d899d3f8f5 Added functions toNumberOrNull from String argument #1322 2017-12-25 08:22:33 +03:00
Alexey Milovidov
de8e504e02 Miscellaneous [#CLICKHOUSE-2]. 2017-12-25 07:10:43 +03:00
Alexey Milovidov
f7838e7e39 Miscellaneous [#CLICKHOUSE-2]. 2017-12-25 07:09:48 +03:00
Alexey Milovidov
8ff93487e3 Miscellaneous [#CLICKHOUSE-2]. 2017-12-25 07:01:46 +03:00
Alexey Milovidov
a168c77ee4 Proper conversions from String to Nullable types if the value cannot be parsed: development #1322 2017-12-25 05:57:54 +03:00
Alexey Milovidov
4e2764c2af Added test #1683 2017-12-25 04:38:51 +03:00
Alexey Milovidov
a71b04e377 Fixed "join_use_nulls" mode #1544 2017-12-25 03:38:45 +03:00
Alexey Milovidov
671b731c90 Removed useless calls [#CLICKHOUSE-2]. 2017-12-25 03:37:13 +03:00
Alexey Milovidov
f87cc75734 Fixed build [#CLICKHOUSE-2]. 2017-12-24 13:12:49 +03:00
Alexey Milovidov
82d429f7ed Allow for function "tupleElement" to get an edge of Array of Tuple (preparation for natural support of Nested) [#CLICKHOUSE-2]. 2017-12-24 12:56:30 +03:00
Alexey Milovidov
0f51be4191 Added support for named tuples in function tupleElement [#CLICKHOUSE-2]. 2017-12-24 12:34:40 +03:00
Alexey Milovidov
5c2c4b34f3 Fixed query formatting in presense of tupleElement operator with complex constant expression in right hand side [#CLICKHOUSE-2]. 2017-12-24 12:33:36 +03:00
Alexey Milovidov
9aa0ebff01 Merge branch 'master' of github.com:yandex/ClickHouse 2017-12-24 10:59:39 +03:00
Alexey Milovidov
7ee1c81d45 Fixed DISTINCT if all columns are constant [#CLICKHOUSE-3505]. 2017-12-24 10:59:26 +03:00
Marek Vavruša
aed35f16ca StorageKafka: move limits to individual Kafka streams instead of UnionBlockInputStream
The UnionBlockInputStream might read an extra block from the asynchronous child streams otherwise,
which will never be used, but offsets for this block would be committed, which would result in
lost messages.
2017-12-24 09:57:20 +03:00
Marek Vavruša
77393287ab StorageKafka: make commit message only if messages are consumed 2017-12-24 09:57:20 +03:00
Marek Vavruša
ad59a1460e IProfilingBlockInputStream: check limits before reading block
This makes one pointless check before the first block is read, but
is necessary to prevent reading blocks from storages like Kafka where
messages are read only once.
2017-12-24 09:57:20 +03:00
Alexey Milovidov
90aa544573 Unification of aggregate function combinators [#CLICKHOUSE-3511]. 2017-12-24 09:51:23 +03:00
Alexey Milovidov
486a498b9f Merge branch 'master' of github.com:yandex/ClickHouse 2017-12-24 09:50:28 +03:00
Alexey Milovidov
acb341b2c9 Unification of aggregate function combinators [#CLICKHOUSE-3511]. 2017-12-24 09:50:11 +03:00
Chen Yufei
11c1f0ecc1 Fix LimitBlockInputStream creation.
I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en
2017-12-24 08:21:30 +03:00
Alexey Milovidov
9d60bcf3f9 Added test for unrestricted aggregate function combinators [#CLICKHOUSE-3511]. 2017-12-24 02:30:20 +03:00
Alexey Milovidov
ffce4dea50 Merge branch 'master' of github.com:yandex/ClickHouse 2017-12-24 02:17:39 +03:00
Alexey Milovidov
cc79fb6684 Implemented -ForEach aggregate functions combinator for multiple arguments; added test for -ForEachIf and -IfForEach variants [#CLICKHOUSE-3511]. 2017-12-24 02:16:42 +03:00
proller
371d3907b5 Fix dictionary FunctionDictGetOrDefault 2017-12-24 02:16:40 +03:00
Alexey Milovidov
1ba80c6768 Fixed typo [#CLICKHOUSE-2]. 2017-12-24 02:06:59 +03:00
Alexey Milovidov
3a7a6d6318 Get rid of DataTypeNested [#CLICKHOUSE-2838]. 2017-12-23 07:29:34 +03:00
Alexey Milovidov
334e349d75 Fixed test [#CLICKHOUSE-2]. 2017-12-23 07:25:01 +03:00
Alexey Milovidov
e5a33e6332 Added test for the case when Nullable condition is optimized to PREWHERE #1626 2017-12-23 05:52:13 +03:00
Alexey Milovidov
bd14d22d22 Added test from Marek #1650 2017-12-23 05:06:25 +03:00
Alexey Milovidov
b5af4c95bf Using IDataType::equals to compare for type equivalence #1650 2017-12-23 04:55:46 +03:00
Alexey Milovidov
a1fe019b5c Fixed possibility of infinite recursion in IFunction::defaultImplementationForConstantArguments when wrong number of arguments is passed to a function [#CLICKHOUSE-2]. 2017-12-23 04:54:51 +03:00
Alexey Milovidov
75f9ff1717 Fixed error found by M.Filimonov [#CLICKHOUSE-2]. 2017-12-23 04:35:25 +03:00
Alexey Milovidov
62bccc4eef Updated test [#CLICKHOUSE-2]. 2017-12-23 04:28:50 +03:00
Alexey Milovidov
61174e9150 Better implementation for IDataType::equals method #1650 2017-12-23 04:05:29 +03:00
Alexey Milovidov
d6dc25b09e Fixed wording #1650 2017-12-23 03:21:49 +03:00
Alexey Milovidov
609133ea01 Added aggregate function sumKahan [#CLICKHOUSE-2]. 2017-12-23 02:26:30 +03:00
Alexey Milovidov
59dce5187a Merge branch 'master' into kahan-sum 2017-12-23 02:12:05 +03:00
Alexey Milovidov
7e60152e72 Added comments; added test [#CLICKHOUSE-2]. 2017-12-23 02:08:57 +03:00
Alexey Milovidov
69a7761812 Added simple, non-numerically stable variants of statistical functions; use it by default; old functions are accessible under -Stable suffix, like varPopStable [#CLICKHOUSE-2]. 2017-12-23 01:59:45 +03:00
Alexey Milovidov
a7b8541cea Implemented faster and not numerically stable versions of statistical functions [#CLICKHOUSE-2]. 2017-12-23 01:23:03 +03:00
Alexey Milovidov
22ef87b763 Fixed bad test [#CLICKHOUSE-2]. 2017-12-23 01:11:08 +03:00
Alexey Milovidov
2f8a79eee6 Kahan summation: development [#CLICKHOUSE-2]. 2017-12-23 01:02:52 +03:00
Alexey Milovidov
eebdac1f0e Fixed build #1676 2017-12-22 22:26:56 +03:00
Alexey Milovidov
5e39b55f60 Added PR changes #1676 2017-12-22 22:20:18 +03:00
Alexey Milovidov
3d4906e04c Merge branch 'master' of https://github.com/kshvakov/ClickHouse-Server into kshvakov-master 2017-12-22 22:13:35 +03:00
proller
4f2b4efa25 UNION ALL: mismatch size #1444 (#1446)
* UNION ALL: mismatch size #1444

* Fix test reference

* restore InterpreterSelectQuery::initQueryAnalyzer
2017-12-22 21:30:42 +03:00
proller
daab7adf6f client --ignore-error option (useful with --multiquery) (#1652)
* client --ignore-error option (useful with --multiquery)

* --ignore_error via lexer
2017-12-22 21:29:37 +03:00
proller
9b8972b4c8 Add bad queries from #1563 (#1653)
* cmake fix

* load shell_config.sh

* env bash

* fix

* use $CLICKHOUSE_CLIENT

* fix

* curl 1

* curl2

* curl3

* fix

* fix

* fix

* fix

* ExtractFromConfig --try

* fix

* fix

* Add symlinks to package

* fix bundle

* fix

* fix

* fix package

* clickhouse-test --order option

* client --ignore-error option (useful with --multiquery)

* add bad queries from @filimonov

* More queries

* --ignore_error via lexer

* fix

* rename
2017-12-22 21:29:03 +03:00
Alexey Zatelepin
6d5ce3fa9a revert BackgroundSchedulePool usage in Replicated tables 2017-12-22 21:25:54 +03:00
Kirill Shvakov
af400da8eb add toStartOfFifteenMinutes function 2017-12-22 13:04:24 +02:00
Kirill Shvakov
34470ab6ca Merge branch 'master' of https://github.com/yandex/ClickHouse 2017-12-22 11:38:06 +02:00
Alexey Milovidov
b9ca36e5ad Added test [#CLICKHOUSE-2]. 2017-12-22 06:59:48 +03:00
Alexey Milovidov
622f0b62e0 Fixed nullptr dereference when trying to create incorrect data types [#CLICKHOUSE-2]. 2017-12-22 06:55:49 +03:00
Alexey Milovidov
7a15be8e63 Fixed behaviour of "visitParamExtract" functions according to the documentation [#CLICKHOUSE-2]. 2017-12-22 05:25:03 +03:00
Alexey Milovidov
0972d7586a Added support for toQuarter, toRelativeQuarterNum functions. Enabled toRelativeHour/Minute/Second for Date arguments. Made function 'now' case insensitive. Added function 'dateDiff' that is needed for ODBC driver [#CLICKHOUSE-2]. 2017-12-22 04:54:29 +03:00
Alexey Milovidov
74f191dfd3 Introduced intExp functions; using it where appropriate; make them available in SQL [#CLICKHOUSE-3]. 2017-12-22 02:46:34 +03:00
Alexey Milovidov
46c733ec11 Added test for the issue found by StarWix [#CLICKHOUSE-3]. 2017-12-22 02:00:32 +03:00
Alexey Milovidov
fca5d5f2c7 Use better implementation for exp10 [#CLICKHOUSE-2]. 2017-12-22 02:00:32 +03:00
Alexey Milovidov
5b59a6f4cb Whitespace [#CLICKHOUSE-2]. 2017-12-21 20:43:32 +03:00
proller
9fc417ae15 Fix freebsd build 2017-12-21 16:07:24 +03:00
Alexey Milovidov
6e691269ad Updated instruction [#CLICKHOUSE-2]. 2017-12-21 05:31:32 +03:00
Alexey Milovidov
0744b9118f Fixed test [#CLICKHOUSE-2]. 2017-12-21 05:18:21 +03:00
Alexey Milovidov
128c4a38d6 Merge branch 'fix_aggregate_functions' of https://github.com/silviucpp/ClickHouse into silviucpp-fix_aggregate_functions 2017-12-21 05:14:21 +03:00
Alexey Milovidov
b198766dad Simplification of aggregate functions: development [#CLICKHOUSE-2]. 2017-12-21 05:08:25 +03:00
Alexey Milovidov
ec3ec48309 Simplification of aggregate functions: development [#CLICKHOUSE-2]. 2017-12-21 05:08:25 +03:00
Alexey Milovidov
bf9c301784 Simplification of aggregate functions: compatibility details [#CLICKHOUSE-2]. 2017-12-21 05:08:25 +03:00
Alexey Milovidov
ef6d3be53a Simplification of aggregate functions: compatibility details [#CLICKHOUSE-2]. 2017-12-21 05:08:25 +03:00
Alexey Milovidov
60d7a9f428 Simplification of aggregate functions: development [#CLICKHOUSE-2]. 2017-12-21 05:08:25 +03:00
Alexey Milovidov
ac5433bfbb Simplification of aggregate functions: development [#CLICKHOUSE-2]. 2017-12-21 05:08:25 +03:00
Alexey Milovidov
025041937a Simplification of aggregate functions: development [#CLICKHOUSE-2]. 2017-12-21 05:08:25 +03:00
Alexey Milovidov
c7c868cb99 Simplification of aggregate functions: development [#CLICKHOUSE-2]. 2017-12-21 05:08:25 +03:00
Alexey Milovidov
de3f1ee629 Simplification of aggregate functions: development [#CLICKHOUSE-2]. 2017-12-21 05:08:25 +03:00
Alexey Milovidov
e316ea67af Simplification of aggregate functions: development [#CLICKHOUSE-2]. 2017-12-21 05:08:25 +03:00
Alexey Milovidov
6fe1b175a0 Simplification of aggregate functions: development [#CLICKHOUSE-2]. 2017-12-21 05:08:25 +03:00
Alexey Milovidov
d7a36519da Simplification of aggregate functions: development [#CLICKHOUSE-2]. 2017-12-21 05:08:25 +03:00
Alexey Milovidov
b3f4d439fb Simplification of aggregate functions: development [#CLICKHOUSE-2]. 2017-12-21 05:08:25 +03:00
Alexey Milovidov
178deea21c Simplification of aggregate functions: development [#CLICKHOUSE-2]. 2017-12-21 05:08:25 +03:00
Alexey Milovidov
36cbd50842 Simplification of aggregate functions: development [#CLICKHOUSE-2]. 2017-12-21 05:08:25 +03:00
Alexey Milovidov
584a263d79 Simplification of aggregate functions: development [#CLICKHOUSE-2]. 2017-12-21 05:08:25 +03:00
Alexey Milovidov
c990740b33 Simplification of aggregate functions: development [#CLICKHOUSE-2]. 2017-12-21 05:08:25 +03:00
Roman Tsisyk
0e556c2b03 Fix compilation without SSE 4.2
Fixes "'hash64' was not declared in this scope" on aarch64.
2017-12-21 00:48:17 +03:00
Marek Vavruša
fd260c31ba CapnpProtoRowInputStream: fixed build in current master, added docs 2017-12-21 00:46:50 +03:00
Marek Vavruša
3e1ce9bf26 StorageKafka: nicer interface for claiming consumers 2017-12-21 00:46:50 +03:00
Marek Vavruša
9c57def8df StorageKafka: update comments 2017-12-21 00:46:50 +03:00
Marek Vavruša
c6e959d1e9 StorageKafka: extended configuration, parallel consumers, offset tracking
This contains many fixes and corrections for the Kafka engine.
Most notably it now supports extended configuration similarly to GraphiteMergeTree.
Now it also allows specification of consumer count to parallelize consumption of
multiple partitions both in materialized views and in SELECT queries.

The offsets are now committed in the insertSuffix() method after all rows
are successfully read. If an exception is thrown during reading, affected consumer
unsubscribes from all assignments and rejoins the consumer group to rewind offsets.
This means that the consumer won't lose messages in case of write failures.
2017-12-21 00:46:50 +03:00
Marek Vavruša
6d4f106f11 StorageMaterializedView: update dependencies on DETACH TABLE
Previously the dependencies were updated only on DROP TABLE, so
detaching a materialized view and inserting to source table thrown an exception.
2017-12-21 00:46:50 +03:00
Marek Vavruša
fb1aa84973 Fixed clang build on macOS
- Make sure to use dynamic linking on macOS to avoid OpenSSL static linking bug
- Use -std=c++17 in CFLAGS for files in contrib
- Avoid bad support for thread_local on macOS with clang altogether
2017-12-21 00:46:50 +03:00
Amos Bird
e7af27c4e0 Better iostream debugger with adl.
This patch fixes some issues related to DUMP() debugging. Opening std and
placing all Core related classed inside DB namespace enable proper adl support.
It also adds better sfinae guards to Field constructor which somehow breaks <<
overloads.
2017-12-20 21:44:42 +03:00
Alexey Zatelepin
c422b5b2e4 take PreCommitted parts into account when calculating total merge size [#CLICKHOUSE-3508] 2017-12-20 20:52:28 +03:00
Alexey Zatelepin
835b957e95 add comments [#CLICKHOUSE-3508] 2017-12-20 20:40:36 +03:00
Alexey Zatelepin
d35baafde8 check PreCommitted parts when executing log entries and in PartChecker [#CLICKHOUSE-3508] 2017-12-20 20:04:14 +03:00
Alexey Zatelepin
2340e55d0e revert to old behaviour of getPartIfExists() [#CLICKHOUSE-3508] 2017-12-20 20:04:14 +03:00
Silviu Caragea
d60dfc9f0a Fix potential memory leak 2017-12-20 12:46:29 +02:00
Kirill Shvakov
d40d0657e0 Merge branch 'master' of https://github.com/yandex/ClickHouse 2017-12-20 10:21:25 +02:00
Kirill Shvakov
59aa1359c8 Access to TEMPORARY TABLES for read-only users 2017-12-20 09:52:06 +02:00
Alexey Milovidov
3124ffea67 Fixed error in prev. revision [#CLICKHOUSE-2]. 2017-12-20 02:14:37 +03:00
Alexey Milovidov
6c8a0e70fd Additions after merge [#CLICKHOUSE-2]. 2017-12-19 23:09:15 +03:00
alexey-milovidov
7a97d08b04
Merge branch 'master' into CLICKHOUSE-3361 2017-12-19 23:03:17 +03:00
Alexey Milovidov
c8d8016bbb Fixed bad code [#CLICKHOUSE-2]. 2017-12-19 22:56:48 +03:00
Nikolai Kochetov
39ec3f7d74 changed exception message, added comments 2017-12-19 22:51:59 +03:00
Alexey Milovidov
b48d934c3d Merge branch 'master' of github.com:yandex/ClickHouse 2017-12-19 22:46:11 +03:00
Alexey Milovidov
548cb4e658 Fixed bad code in Client.cpp [#CLICKHOUSE-2]. 2017-12-19 22:46:02 +03:00
Silviu Caragea
b08463ed7b Fix for https://github.com/yandex/ClickHouse/issues/1648 2017-12-19 22:41:05 +03:00
Alexey Milovidov
0d1a285b23 Removed ignoring of EPIPE in WriteBufferFromFileDescriptor [#CLICKHOUSE-2]. 2017-12-19 21:04:14 +03:00
Alexey Milovidov
2ac61adfec Merge branch 'master' into ks1322-master 2017-12-19 20:49:02 +03:00
Alexey Milovidov
1029b2a5ef Fixed warning in SpecializedAggregator.h [#CLICKHOUSE-2]. 2017-12-19 20:48:08 +03:00
alexey-milovidov
34d54ea349 Update CMakeLists.txt 2017-12-19 20:42:35 +03:00
proller
631f307b9f Copy more platform-specific headers 2017-12-19 20:42:35 +03:00
Alexey Milovidov
1a6f38b27f Merge branch 'master' into ks1322-master 2017-12-19 20:38:29 +03:00
Alexey Milovidov
e25514d28a Addition to the fix of generic variant of topK aggregate function [#CLICKHOUSE-2]. 2017-12-19 20:21:47 +03:00
Alexey Milovidov
089e78dc16 Clarification [#CLICKHOUSE-2]. 2017-12-19 04:57:06 +03:00
Alexey Milovidov
aba63cc76f Better semantic of sharing columns: fixed error [#CLICKHOUSE-2]. 2017-12-19 04:53:54 +03:00
Alexey Milovidov
50d09f08f5 Updated test [#CLICKHOUSE-2]. 2017-12-19 04:44:05 +03:00
Alexey Milovidov
80e48cc899 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-19 04:42:24 +03:00
Alexey Milovidov
4e8a70a29f Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-19 04:13:20 +03:00
Alexey Milovidov
d9732198ac Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-19 03:51:12 +03:00
Alexey Milovidov
61c2b55a57 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-19 03:43:04 +03:00
Alexey Milovidov
02821f4861 Fixed error [#CLICKHOUSE-2]. 2017-12-19 03:26:16 +03:00
Alexey Milovidov
93a300bea4 Miscellaneous [#CLICKHOUSE-2]. 2017-12-19 00:49:34 +03:00
Alexey Milovidov
521b3aee84 Fixed error found by M.Filimonov (equality of array sizes are not checked in n-ary version of aggregate functions with -Array combinator) [#CLICKHOUSE-2]. 2017-12-19 00:44:18 +03:00
Alexey Milovidov
6c28c72fdc Added test [#CLICKHOUSE-2]. 2017-12-19 00:16:20 +03:00
Alexey Milovidov
b83142ea62 Fixed error found by M.Filimonov (generic implementation of topK aggregate function was totally wrong) [#CLICKHOUSE-2]. 2017-12-19 00:12:15 +03:00
Alexey Milovidov
339e22d014 Fixed error found by M.Filimonov [#CLICKHOUSE-2]. 2017-12-19 00:04:19 +03:00
Alexey Milovidov
d84ef5d8e2 Merge branch 'master' of github.com:yandex/ClickHouse 2017-12-18 23:43:19 +03:00
Alexey Milovidov
09fa34c764 Fixed error found by M.Filimonov (missing check for maximum size of FixedString leading to overflow in arithmetic) [#CLICKHOUSE-2]. 2017-12-18 23:43:10 +03:00
proller
ab5cbcc627 Try fix internal compiler [tests run] (#1651)
* Try fic interal compiler

* Debian: depend on tzdata package

* fix order

* Try fix

* fix

* try

* fix

* fix

* fix

* fix
2017-12-18 23:30:19 +03:00
proller
bee53d483f Allow run tests without extract-from-config 2017-12-18 15:26:34 +03:00
Alexey Milovidov
bc160f5e4d Fixed error [#CLICKHOUSE-2]. 2017-12-18 09:49:38 +03:00
Alexey Milovidov
84016cc96f Fixed error [#CLICKHOUSE-2]. 2017-12-18 09:39:07 +03:00
alexey-milovidov
adfc743e06
Merge pull request #1658 from yandex/cow_columns
Better semantic of sharing columns.
2017-12-18 09:26:27 +03:00
Alexey Milovidov
32fcc7b3f0 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-18 09:23:19 +03:00
Alexey Milovidov
27301ac380 Updated test [#CLICKHOUSE-2]. 2017-12-18 08:43:41 +03:00
Alexey Milovidov
816169a3be Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-18 08:38:42 +03:00
Alexey Milovidov
11d3b9c710 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-18 08:37:20 +03:00
Alexey Milovidov
f9170190c6 Miscellaneous [#CLICKHOUSE-2]. 2017-12-18 07:17:56 +03:00
Alexey Milovidov
c5d5296889 Miscellaneous [#CLICKHOUSE-2]. 2017-12-18 07:07:26 +03:00
Alexey Milovidov
88384bad05 Removed duplicate test [#CLICKHOUSE-2]. 2017-12-18 05:46:34 +03:00
Alexey Milovidov
280b88454b Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-18 05:43:40 +03:00
Alexey Milovidov
7c802ee3de Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-18 05:37:08 +03:00
Alexey Milovidov
f95ddfce10 Make DataTypes totally immutable [#CLICKHOUSE-2]. 2017-12-18 04:11:48 +03:00
ks1322
2fd62ccd9f added expect test 2017-12-17 23:46:52 +03:00
Alexey Milovidov
32bc1df714 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-17 13:51:19 +03:00
Alexey Milovidov
6bad555b9d Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-17 13:39:22 +03:00
Alexey Milovidov
f501f6990e Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-17 13:20:48 +03:00
Alexey Milovidov
6f7d2b99ea Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-17 13:14:12 +03:00
Alexey Milovidov
75c0ad10ab Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-17 12:01:12 +03:00
Alexey Milovidov
c0670435ab Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-17 11:44:06 +03:00
Alexey Milovidov
8484f086a5 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-17 10:59:14 +03:00
Alexey Milovidov
6ad5be5eee Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-17 10:15:13 +03:00
Alexey Milovidov
d497d010d7 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-17 08:21:04 +03:00
ks1322
62a2932299 ignore EPIPE write error for custom pagers in client 2017-12-16 16:06:30 +03:00
ks1322
2a42fe8f3f ignore SIGPIPE signal for custom pagers 2017-12-16 16:06:30 +03:00
Alexey Milovidov
5f4a536f75 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-16 09:33:54 +03:00
Alexey Milovidov
62f7c25522 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-16 09:19:21 +03:00
Alexey Milovidov
6fe31d257d Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-16 09:10:05 +03:00
Alexey Milovidov
342f0e431a Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-16 09:08:33 +03:00
Alexey Milovidov
7d69e041f5 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-16 09:02:54 +03:00
Alexey Milovidov
278f8b9fcb Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-16 08:52:47 +03:00
Alexey Milovidov
ddfb1fab9e Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-16 08:46:46 +03:00
Alexey Milovidov
bce801a663 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-16 08:34:07 +03:00
Alexey Milovidov
14b0397500 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-16 08:21:04 +03:00
Alexey Milovidov
45805a367f Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-16 07:59:32 +03:00
Alexey Milovidov
5b32914089 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-16 07:29:34 +03:00
Alexey Milovidov
3f0c4bf61c Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-16 05:34:02 +03:00
Alexey Milovidov
30639dea0f Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-16 05:24:02 +03:00
Alexey Milovidov
3e3042f01a Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-16 04:21:59 +03:00
Alexey Milovidov
8302769563 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-16 03:49:03 +03:00
Alexey Milovidov
645f620873 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-16 00:46:56 +03:00
Alexey Milovidov
afec433d6f Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-16 00:33:05 +03:00
Alexey Milovidov
7284a64740 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-16 00:32:25 +03:00
Alexey Milovidov
ecd56de6a8 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-16 00:11:24 +03:00
Alexey Milovidov
c4bbc1c963 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-15 23:48:46 +03:00
Alexey Milovidov
8ce60e3af0 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-15 22:53:11 +03:00
Alexey Milovidov
0b76b61c73 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-15 22:46:24 +03:00
proller
e7f82b6a8c
Allow run test without package install and on custom ports. (#1643)
* ExtractFromConfig --try

* Add symlinks to package

* clickhouse-test --order option
2017-12-15 22:34:19 +03:00
Alexey Milovidov
9c9896c1a9 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-15 22:17:15 +03:00
Alexey Milovidov
d0ca8b2533 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-15 21:23:05 +03:00
proller
254cced2cd Add internal compiler include dir (to fix missing stddef.h) 2017-12-15 18:43:47 +03:00
Alexey Milovidov
b2aff7521b Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-15 06:47:43 +03:00
Alexey Milovidov
7e685c383b Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-15 06:19:14 +03:00
Alexey Milovidov
e3d931d7fc Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-15 06:12:04 +03:00
Alexey Milovidov
96ee187d1a Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-15 06:04:33 +03:00
Alexey Milovidov
a086e3e6d8 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-15 05:52:38 +03:00
Alexey Milovidov
401fd2d6d8 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-15 05:36:40 +03:00
Alexey Milovidov
a92055c768 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-15 05:04:28 +03:00
Alexey Milovidov
6756b37925 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-15 04:34:30 +03:00
Alexey Milovidov
4148c6ce81 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-15 03:06:56 +03:00
Alexey Milovidov
8926af2ced Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-15 03:01:59 +03:00
Alexey Milovidov
c2985857f8 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-15 00:51:30 +03:00
Alexey Milovidov
01a0b91c83 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-15 00:20:14 +03:00
Alexey Milovidov
d164024e3d Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-14 23:58:18 +03:00
Alexey Milovidov
037d304afa Merge remote-tracking branch 'origin/master' into cow_columns 2017-12-14 22:26:16 +03:00
proller
7b47e102c9 Fix internal compiler option 2017-12-14 21:42:48 +03:00
Alexey Milovidov
54476f3c1e Removed note about experimental state of ZSTD [#CLICKHOUSE-2]. 2017-12-14 20:42:27 +03:00
Nikolai Kochetov
08fed58a25 use columns from left block out of columns with same name at Join [#CLICKHOUSE-3361] 2017-12-14 18:28:30 +03:00
Silviu Caragea
a1104644d9 Add tests 2017-12-14 11:02:12 +02:00
Alexey Milovidov
744c2d3d02 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-14 07:30:01 +03:00
Alexey Milovidov
911d80ab51 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-14 07:25:22 +03:00
Alexey Milovidov
fb38ef9a8e Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-14 06:56:56 +03:00
Alexey Milovidov
bed2d644e6 Merge remote-tracking branch 'origin/master' into cow_columns 2017-12-14 04:44:35 +03:00
Alexey Milovidov
f3bb24a3bf Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-14 04:43:19 +03:00
Silviu Caragea
10156f1f56 Fix for topK and groupUniqArray over Nullable columns 2017-12-13 23:48:35 +02:00
Alexey Milovidov
aea1d0ce4a Fixed error [#CLICKHOUSE-2]. 2017-12-14 00:26:17 +03:00
Alexey Milovidov
1172e6559d Reverted Client.cpp [#CLICKHOUSE-2]. 2017-12-14 00:12:21 +03:00
Alexey Milovidov
cfedf4d5b1 Merge branch 'fix14' of https://github.com/proller/ClickHouse into proller-fix14 2017-12-14 00:10:37 +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
4f83806a9e Merge remote-tracking branch 'upstream/master' into fix14 2017-12-13 22:08:53 +03:00
proller
741117a390
Fix freebsd build. Little cmake fixes. (#1634) 2017-12-13 22:07:12 +03:00
Alexander Avdonkin
331c5c3db8 Merge branch 'master' of github.com:aavdonkin/ClickHouse 2017-12-13 19:48:27 +03:00
Alexander Avdonkin
d1ee8c5358 Fixed issues 2017-12-13 19:46:57 +03:00
proller
5453a41208 fix 2017-12-13 19:41:29 +03:00
proller
b911b03eed Print error 2017-12-13 19:40:25 +03:00
Silviu Caragea
c5fedfc82d Fix the way we read the request body.
Current implementation it's not working properly. This can be tested with any select query that's large than max_query_size. Only up to max_query_size size is read and sent to the parser which leads to an invalid query.
2017-12-13 16:13:30 +02:00
proller
4076e14b6b Merge remote-tracking branch 'upstream/master' into fix14 2017-12-13 16:10:02 +03:00
robot-metrika-test
cbb02b580c Auto version update to [54326] 2017-12-13 12:55:19 +03:00
Alexey Milovidov
819287b697 Better semantic of sharing columns: development [#CLICKHOUSE-2]. 2017-12-13 04:27:53 +03:00
Nikolai Kochetov
cd0eb53e36 added StorageSystemPartsBase [#CLICKHOUSE-3328] 2017-12-12 21:38:56 +03:00
Nikolai Kochetov
97917098a0 added system.parts_columns as a copy of system.parts [#CLICKHOUSE-3328] 2017-12-12 21:38:41 +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
Nikolai Kochetov
1ba891f3fc removed owned_cluster_for_insertion from StorageDistributed [#CLICKHOUSE-3397] 2017-12-11 20:29:24 +03:00
proller
426c0cc1da Fix debian package build 2017-12-11 20:27:22 +03:00
proller
a1b4605314 Merge remote-tracking branch 'upstream/master' into fix14 2017-12-11 19:05:17 +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
8758d9b28c Returned back order in clickhouse-test [#CLICKHOUSE-2] 2017-12-09 19:17:37 +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
02d00253e2 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
642d7c2ff2 Added test [#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
be70e6282e Added test [#CLICKHOUSE-3431]. 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
proller
2bdc2c8900 Merge remote-tracking branch 'upstream/master' into fix14 2017-12-08 17:21:03 +03: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
alexey-milovidov
1d0df29e0f
Merge branch 'master' into master 2017-12-08 11:29:01 +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
413e828cde Simplification of Nullable [#CLICKHOUSE-2] 2017-12-08 10:46:09 +03:00
Alexey Milovidov
bd6d69ba7d Simplification of Nullable [#CLICKHOUSE-2] 2017-12-08 10:42:35 +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
robot-metrika-test
24f07c8711 Auto version update to [54325] 2017-12-07 16:08:12 +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
40322b8e21
Merge pull request #1593 from flowbehappy/patch-1
Remove unused parameter from InterruptListener.h
2017-12-07 14:19:48 +03:00
robot-metrika-test
ea7cbfedc2 Auto version update to [54324] 2017-12-07 11:58:41 +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
f63b511c83 Fixed tests [#CLICKHOUSE-2]. 2017-12-07 07:44:33 +03:00
Alexey Milovidov
2299a1749b Fixed tests [#CLICKHOUSE-2]. 2017-12-07 07:43:35 +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
robot-metrika-test
6f53eb2b9a Auto version update to [54323] 2017-12-06 11:59:46 +03:00
Alexey Milovidov
4a04537d44 Added tests [#CLICKHOUSE-3486]. 2017-12-06 07:16:16 +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
Alexander Avdonkin
89db5040df Implemented MySQL and ODBC storages and table functions 2017-12-05 16:32:02 +03:00
robot-metrika-test
c6ad1682e8 Auto version update to [54322] 2017-12-05 14:26:32 +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
e38f3e0cb8 Silent test 2017-12-04 19:36:26 +03:00
proller
66ff90c025 client ignore-error option 2017-12-04 19:17:49 +03:00
proller
38cc78300d Merge remote-tracking branch 'upstream/master' into fix14 2017-12-04 19:16:08 +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
Nikolai Kochetov
de62ae6b1b added system.parts_columns as a copy of system.parts [#CLICKHOUSE-3328] 2017-12-04 18:44:31 +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
c8b66c3c39 Merge remote-tracking branch 'upstream/master' into fix14 2017-12-04 16:05:21 +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
proller
67765264c2 Merge remote-tracking branch 'upstream/master' into fix14 2017-12-04 14:27:19 +03:00
Alexey Milovidov
73d65ec4d4 Added another test for multidimensional columns [#CLICKHOUSE-2838]. 2017-12-03 11:35:08 +03:00
Alexey Milovidov
7b447bc1e4 Added test for multidimensional columns [#CLICKHOUSE-2838]. 2017-12-03 11:23:34 +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
35f98609e0 Updated test [#CLICKHOUSE-2]. 2017-12-03 08:38:14 +03:00
Alexey Milovidov
0c89ad0269 Updated test [#CLICKHOUSE-2]. 2017-12-03 08:34:37 +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
28d40e2c9a Enabled -Wextra [#CLICKHOUSE-2]. 2017-12-02 06:39:38 +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
proller
71b9fa3a9c Fix test 2017-12-01 21:40:57 +03:00
proller
c516b37d93 Merge remote-tracking branch 'upstream/master' into fix14 2017-12-01 21:40:42 +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
proller
2663871717 Fix some server crashes on incorrect functions usage. Add test. 2017-12-01 21:03:56 +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
ac25fc2eef
Merge pull request #1547 from proller/fix8
googletest as submodule
2017-12-01 19:44:56 +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
robot-metrika-test
f76587faa2 Auto version update to [54319] 2017-12-01 09:36:28 +03:00
Alexey Milovidov
304acb9a8e 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-12-01 00:42:09 +03:00
Alexey Milovidov
dbc1b76ab1 Normalized tests: use /clickhouse/tables/test/ as prefix for tables in ZooKeeper [#CLICKHOUSE-2]. 2017-12-01 00:41:29 +03:00
Alexey Milovidov
da795a6fb3 Normalized tests: use /clickhouse/tables/test/ as prefix for tables in ZooKeeper [#CLICKHOUSE-2]. 2017-12-01 00:41:19 +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
alexey-milovidov
62cfe39b9d
Merge pull request #1570 from kshvakov/master
Добавил колонку с описанием настройки в system.settings
2017-11-30 17:08:25 +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
robot-metrika-test
82bdb77dac Auto version update to [54317] 2017-11-30 08:52:07 +03:00
Alexey Milovidov
9b75c88a0f Added instruction for heap profiler [#CLICKHOUSE-3453]. 2017-11-29 22:42:09 +03:00
Alexey Milovidov
de37ced469 Added instruction for heap profiler [#CLICKHOUSE-3453]. 2017-11-29 22:41:57 +03: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
robot-metrika-test
149b9bd4e2 Auto version update to [54314] 2017-11-28 13:25:48 +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
cccf8aa8a8 Fixed test [#CLICKHOUSE-2]. 2017-11-28 05:21:32 +03:00
Alexey Milovidov
6713069aef Fixed test [#CLICKHOUSE-2]. 2017-11-28 05:20:28 +03: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
proller
e190cb383c Merge remote-tracking branch 'upstream/master' into fix8 2017-11-27 16:46:23 +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
91cddb511a googletest as submodule 2017-11-25 00:15:24 +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
Maks Skorokhod
66bbc737d4
add test for gcd and modulo functions 2017-11-24 11:17:17 +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
c4ee8b93e3
add test for gcd/lcm functions 2017-11-23 11:47:34 +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
d6816c6f22 add test [#CLICKHOUSE-3448] 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
alexey-milovidov
2350a73b8a
Merge pull request #1519 from amosbird/patch-3
Fixes StorageJoin's sample block order.
2017-11-20 23:16:45 +03:00
Vitaliy Lyudvichenko
2cf6e20fef Fixed a vague error message in integration tests. [#CLICKHOUSE-2] 2017-11-20 23:15:30 +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
Alexey Milovidov
2fd17a3072 Fixed linking [#CLICKHOUSE-2]. 2017-11-20 09:01:05 +03:00
Alexey Milovidov
07d594c505 Fixed linking [#CLICKHOUSE-2]. 2017-11-20 08:59:58 +03:00
Alexey Milovidov
3b5f82000c Fixed linking [#CLICKHOUSE-2]. 2017-11-20 08:22:54 +03:00
Alexey Milovidov
3403f68c3f Fixed linking [#CLICKHOUSE-2]. 2017-11-20 08:21:50 +03:00
Alexey Milovidov
7cce063d00 Merge remote-tracking branch 'origin/master' into unify-data-types-that-serialized-with-multiple-streams 2017-11-20 07:50:52 +03:00
Alexey Milovidov
feea8996d5 Miscellaneous [#CLICKHOUSE-2]. 2017-11-20 07:46:00 +03:00
Alexey Milovidov
02a991a49c Miscellaneous [#CLICKHOUSE-2]. 2017-11-20 07:45:33 +03:00
Alexey Milovidov
fbab976e09 Merge branch 'master' of github.com:yandex/ClickHouse 2017-11-20 07:44:53 +03:00
alexey-milovidov
c88855873d
Merge pull request #1516 from amosbird/patch-1
Propagate readPrefix in ParallelInputsProcessor
2017-11-20 07:45:40 +03:00
Alexey Milovidov
87ff2f35ec Miscellaneous [#CLICKHOUSE-2]. 2017-11-20 07:41:56 +03:00
Alexey Milovidov
2106849ec2 Miscellaneous [#CLICKHOUSE-2]. 2017-11-20 07:40:51 +03:00
Alexey Milovidov
380fc668dc Miscellaneous [#CLICKHOUSE-2]. 2017-11-20 07:37:54 +03:00
Alexey Milovidov
725bd4046f Miscellaneous [#CLICKHOUSE-2]. 2017-11-20 07:36:46 +03:00
Alexey Milovidov
e340511931 Removed useless code [#CLICKHOUSE-2]. 2017-11-20 07:22:21 +03:00
Alexey Milovidov
a7d4fef0d2 Removed useless code [#CLICKHOUSE-2]. 2017-11-20 07:21:14 +03:00
Alexey Milovidov
b3f6844171 Merge remote-tracking branch 'origin/master' into unify-data-types-that-serialized-with-multiple-streams 2017-11-20 07:18:37 +03:00
Alexey Milovidov
fd3239dd46 Unification of serde of data types: development [#CLICKHOUSE-2838]. 2017-11-20 07:18:27 +03:00
Alexey Milovidov
01e8adbfff Removed "experimental" namespace [#CLICKHOUSE-2]. 2017-11-20 07:15:43 +03:00
Amos Bird
22e9772593
Propagate readPrefix in ParallelInputsProcessor
UnionBlockInputStream relies on ParallelInputsProcessor to do stream preparation in parallel, which seems to be absent. This patch fixes it.
2017-11-20 10:53:48 +08:00
Alexey Milovidov
5d57e014a1 Returned serialization of zero Date and DateTime as zeros [#CLICKHOUSE-2]. 2017-11-20 05:45:37 +03:00
Alexey Milovidov
31fc79b809 Returned serialization of zero Date and DateTime as zeros [#CLICKHOUSE-2]. 2017-11-20 05:44:39 +03:00
Alexey Milovidov
8e6466454a Unification of serde of data types: development [#CLICKHOUSE-2838]. 2017-11-20 05:15:15 +03:00
Alexey Milovidov
2ca6952deb Merge branch 'master' into unify-data-types-that-serialized-with-multiple-streams 2017-11-20 02:16:18 +03:00
Alexey Milovidov
6c8b5e29d8 Additions after merge [#CLICKHOUSE-2]. 2017-11-20 00:17:58 +03:00
alexey-milovidov
fc0a51f1b9
Merge branch 'master' into fix4 2017-11-19 23:57:44 +03:00
alexey-milovidov
942e59d459
Merge pull request #1455 from yandex/fix-mv-populate
Fix applying WHERE clause in MATERIALIZED VIEW with POPULATE
2017-11-19 23:01:23 +03:00
Alexey Milovidov
60825748d4 Merge branch 'fix11' of https://github.com/proller/ClickHouse into proller-fix11 2017-11-19 22:57:28 +03:00
Pavel Yakunin
bb967007ff merged master 2017-11-19 10:55:46 +03:00
Pavel Yakunin
bd62ea2535 To support "incl" directive in the dictionaries config ConfigProcessor is now used to parse external modules configuration.
"include_from" directive also works if the config has "<yandex>" as the root element. Otherwise default include file will be used.

To enable substitutions in a dictionary config one needs to have it in the following form:
<yandex>
	<include_from>...</include_from>
	<dictionary>
		<name incl="dict_name"></name>
		...
	</dictionary>
</yandex>

instead of

<dictionaries>
        <include_from>...</include_from>
        <dictionary>
                ...
        </dictionary>
</dictionaries>

The latter form will still work if no substitutions are used or if the default includes file exist. So no outright configuration change is necessary on the existing installations.
2017-11-19 09:33:20 +03:00
Alexey Milovidov
c0321ce752 BackgroundSchedulePool: miscellaneous [#CLICKHOUSE-2]. 2017-11-19 03:59:57 +03:00
Alexey Milovidov
94d3b49e99 BackgroundSchedulePool: miscellaneous [#CLICKHOUSE-2]. 2017-11-19 03:27:43 +03:00
Alexey Milovidov
9b92c0fecd BackgroundSchedulePool: miscellaneous [#CLICKHOUSE-2]. 2017-11-19 03:22:13 +03:00
Alexey Milovidov
f497b0c63c BackgroundSchedulePool: miscellaneous; added TODO [#CLICKHOUSE-2]. 2017-11-19 03:08:37 +03:00
Alexey Milovidov
69714f0671 BackgroundSchedulePool: miscellaneous [#CLICKHOUSE-2]. 2017-11-19 02:55:53 +03:00
Alexey Milovidov
dfb4a92f5a BackgroundSchedulePool: miscellaneous [#CLICKHOUSE-2]. 2017-11-19 02:47:39 +03:00
Silviu Caragea
dfecd0b2f2 Merge with master 2017-11-18 10:16:06 +02:00
Alexey Milovidov
14e069f748 Allow to extract empty matches in "extractAll" function #1493. 2017-11-18 05:48:11 +03:00
Alexey Milovidov
729b114c15 Removed unsupported functionality [#CLICKHOUSE-2]. 2017-11-18 05:34:00 +03:00
Alexey Milovidov
8517251ebd Improved performance of toString function of Date and DateTime arguments [#CLICKHOUSE-2]. 2017-11-18 02:45:49 +03:00
Alexey Milovidov
655565466c Merge remote-tracking branch 'origin/master' into better-date-parsing-formatting 2017-11-18 02:45:17 +03:00
Alexey Milovidov
076e0ae014 More clear [#CLICKHOUSE-2]. 2017-11-18 00:20:28 +03:00
Alexey Milovidov
8425c56c0f Fixed wrong logic [#CLICKHOUSE-2]. 2017-11-18 00:00:29 +03:00
Alexey Milovidov
7cf5eaddc0 Fixed wrong logic [#CLICKHOUSE-2]. 2017-11-17 23:59:31 +03:00
Alexey Milovidov
4f8009517c Thread name can be 15 bytes max [#CLICKHOUSE-2]. 2017-11-17 23:57:07 +03:00
Alexey Milovidov
f54e99490f Merge branch 'master' into silviucpp-replicated_merge_tree_thread_pool 2017-11-17 23:48:16 +03:00
Alexey Milovidov
8e362ba641 Fixed build [#CLICKHOUSE-2]. 2017-11-17 23:48:00 +03:00
Alexey Milovidov
7c9ba15ba1 Style [#CLICKHOUSE-2]. 2017-11-17 23:42:03 +03:00
Alexey Milovidov
18be706127 Merge remote-tracking branch 'origin/master' into silviucpp-replicated_merge_tree_thread_pool 2017-11-17 23:30:51 +03:00
proller
5190325275 Allocator fix: nothing do when sizes equal, allow reallocate to smaller size (#1512)
* PerformanceTest fixes.

* format

* Allocator fix: nothing do when sizes equal, allow reallocate to smaller size

* Update Allocator.cpp
2017-11-17 23:27:12 +03:00
Alexey Milovidov
9264bc4013 Style [#CLICKHOUSE-2]. 2017-11-17 23:18:06 +03:00
proller
19d102cc4f fix 2017-11-17 22:53:02 +03:00
Alexey Milovidov
4ab2d4bc31 Added comment [#CLICKHOUSE-2]. 2017-11-17 22:49:17 +03:00
Alexey Milovidov
263e262413 Style [#CLICKHOUSE-2]. 2017-11-17 22:43:25 +03:00
proller
5ba7e20c03 fixes 2017-11-17 22:40:27 +03:00
proller
aa3dd03389 Split lib dbms to dbms + dbms_common_io 2017-11-17 22:19:49 +03:00
proller
79b3ef2f57 Merge remote-tracking branch 'upstream/master' into fix4 2017-11-17 15:31:13 +03:00
Silviu Caragea
64619c614f Basic idea is :
- We add BackgroundSchedulePool which can execute a function at a specific point in time. Basically all tasks are added in a queue and precessed by worker threads.
- The most important difference between this and BackgroundProcessingPool is that we have the guarantee that the same function is not executed from many workers in the same time
- Each of the following classes instead starting a thread will register a task in BackgroundSchedulePool and when they need to run will call schedule or scheduleAfter(duration) functions

This commit is moving all threads created by ReplicatedMergeTree to BackgroundSchedulePool tasks

NOTE: I did a minimum number of changes to be much simple to review the code
2017-11-17 10:58:35 +02:00
proller
7b417de0c7 format 2017-11-17 00:01:00 +03:00
proller
cf35323fc4 PerformanceTest fixes. 2017-11-17 00:01:00 +03:00
alexey-milovidov
e6f1262409 Update SummingSortedBlockInputStream.h 2017-11-16 23:48:39 +03:00
alexey-milovidov
ff93d38add Update SummingSortedBlockInputStream.h 2017-11-16 23:48:39 +03:00
Vitaliy Lyudvichenko
ab0aff8709 Fixed SummingMergeTree. [#CLICKHOUSE-2] 2017-11-16 23:48:39 +03:00
proller
fa65bdcf48 Fix realloc on freebsd and macos (#1494) 2017-11-16 22:17:09 +03:00
Alexey Milovidov
28b5bd8821 Removed useless code [#CLICKHOUSE-3431]. 2017-11-16 22:04:07 +03:00
Alexey Milovidov
c0c3f3115e RegionsHierarchy: read hidden regions [#CLICKHOUSE-3427]. 2017-11-16 21:50:01 +03:00
Alexey Milovidov
5ef829c5f3 RegionsHierarchy: minor modification [#CLICKHOUSE-3427]. 2017-11-16 21:47:59 +03:00
Alexey Milovidov
edcbf791fb Miscellaneous [#CLICKHOUSE-2]. 2017-11-16 20:40:54 +03:00
Alexey Milovidov
ee48dea0d3 Attempt to improve performance of formatting Date and DateTime [#CLICKHOUSE-2]. 2017-11-16 05:07:19 +03:00
Marek Vavruša
ba82b20cbe MemoryTracker: fixed build with clang 9.0.0 not properly supporting thread_local
This fixes #1488.

XCode 9.0 added support for C++11 thread_local:
https://developer.apple.com/library/content/releasenotes/DeveloperTools/RN-Xcode/Chapters/Introduction.html

The 443088ce31 replaced __thread with C++11 thread_local, which
broke the compilation for this platform with an error on link time.

I can't reproduce this with a minimal example yet.
2017-11-15 23:32:31 +03:00
Иванов Евгений
48636ac601 Added support UUID type for dictionaries 2017-11-15 23:31:53 +03:00