Commit Graph

735 Commits

Author SHA1 Message Date
proller
1474de179c CastTypeBlockInputStream: hotfix: sometimes columns in sample blocks and stream blocks does not match 2017-05-04 22:41:55 +03:00
Marek Vavruša
5f1e65b252 AggregateFunctions: implemented topK(n)
This implements a new function for approximate
computation of the most frequent entries using
Filtered Space Saving with a merge step adapted
from Parallel Space Saving paper.

It works better for cases where GROUP BY x
is impractical due to high cardinality of x,
such as top IP addresses or top search queries.
2017-05-03 23:09:52 -07:00
proller
0787bd66ff Merge: fail if cant convert columns (#753)
* Merge: fail if cant convert columns

* Merge: convert all different types, more tests

* clean

* clean

* clean
2017-05-03 21:08:59 -07:00
Vitaliy Lyudvichenko
6d93d9cefb Combinator -MergeState now returns AggregateFunction(nested_func). [#CLICKHOUSE-2891] 2017-05-03 20:59:42 -07:00
proller
7a0854775b Merge: Cast types on read [#CLICKHOUSE-2957] 2017-04-29 06:37:38 +03:00
Vitaliy Lyudvichenko
42fcf148e2 Add column rows to system.parts table. [#CLICKHOUSE-2950] 2017-04-28 23:54:24 +03:00
Alexey Zatelepin
b0993e2d97 simplify test queries [#CLICKHOUSE-2979] 2017-04-27 23:15:45 +03:00
Alexey Zatelepin
aeb83f9ef7 fix key columns indexing for RIGHT and FULL joins [#CLICKHOUSE-2979] 2017-04-27 23:15:45 +03:00
artpaul
fd9d613dc9 #215 add tests 2017-04-25 07:57:49 +03:00
Alexey Milovidov
3788c3d3dd Added test for Log, TinyLog, StripeLog tables with Nullable types [#CLICKHOUSE-4]. 2017-04-23 11:29:38 +03:00
Alexey Milovidov
69d7432f31 Added test for ALTERing Nullable columns [#CLICKHOUSE-4]. 2017-04-23 10:27:31 +03:00
Alexey Milovidov
1d93e93af3 Fixed test [#CLICKHOUSE-2]. 2017-04-19 08:35:38 +03:00
Alexey Milovidov
53364dcc8d Fixed totally wrong code; implemented function emptyArrayToSingle for generic case [#CLICKHOUSE-2963]. 2017-04-19 08:08:22 +03:00
Alexey Milovidov
3de78d093b Fixed LEFT ARRAY JOIN for constant arrays [#CLICKHOUSE-2946]. 2017-04-19 07:03:11 +03:00
Alexey Milovidov
ed3c0125cd Added support for Nullable types in higher order functions [#CLICKHOUSE-4]. 2017-04-19 06:35:11 +03:00
Alexey Milovidov
3af2bade1b Added test [#CLICKHOUSE-4]. 2017-04-19 06:33:54 +03:00
artpaul
0ba72436db #214 fix conversion from fixed-string to string 2017-04-19 03:17:44 +03:00
Alexey Milovidov
95dd78cea4 Merge branch 'master' of github.com:yandex/ClickHouse 2017-04-18 06:03:47 +03:00
Alexey Milovidov
22e8b8029b Implemented ColumnArray::replicate for Nullable, Tuple and for generic case [#CLICKHOUSE-4]. 2017-04-18 06:03:39 +03:00
artpaul
d259c0ea24 order results 2017-04-18 00:30:14 +05:00
Alexey Milovidov
f76680d47e Fixed function toStringCutToZero with argument of type String [#CLICKHOUSE-2958]. 2017-04-17 20:49:11 +03:00
Vitaliy Lyudvichenko
dcb5371844 Fixed CAST(NULL AS Nullable(...)). [#CLICKHOUSE-2754] 2017-04-17 14:44:16 +03:00
Alexey Milovidov
189b58b6c6 ForEach combinator of aggregate functions: more tests [#CLICKHOUSE-2952]. 2017-04-16 07:48:17 +03:00
Alexey Milovidov
8ba5ef7a4d ForEach combinator of aggregate functions: more tests [#CLICKHOUSE-2952]. 2017-04-16 07:44:40 +03:00
Alexey Milovidov
3fa1639877 ForEach combinator of aggregate functions: more tests [#CLICKHOUSE-2952]. 2017-04-16 07:38:13 +03:00
Maxim Fridental
99dc3ea016 Implement ForEach modifier for aggregate functions. 2017-04-16 02:49:11 +03:00
artpaul
050f1d4b0a drop column from partition for MergeTree 2017-04-15 06:52:04 +03:00
Vitaliy Lyudvichenko
994720682c Add nullable PREWHERE test. [#CLICKHOUSE-2902] 2017-04-15 06:48:24 +03:00
Vitaliy Lyudvichenko
848c927bb7 Fix race condition. Add test. [#CLICKHOUSE-2902] 2017-04-15 06:48:24 +03:00
Vitaliy Lyudvichenko
82af2278fc Avoid code duplication near MergeTreeBlockInputStream. [#CLICKHOUSE-2]
Add preferred_block_size_bytes for non-uniform reader. [#CLICKHOUSE-2902]

Make enums test more deterministic. [#CLICKHOUSE-2]

Refactored MergeTree readers.

Tabs -> spaces.

Move include/DB/ -> src/.
2017-04-15 06:48:24 +03:00
Alexey Milovidov
7454185a0a Fixed join_use_nulls setting [#CLICKHOUSE-4]. 2017-04-07 23:30:52 +03:00
Alexey Milovidov
463fddb2ca Joins by Nullable keys: development [#CLICKHOUSE-4]. 2017-04-07 00:44:52 +03:00
Alexey Milovidov
ab215c0fcd join_use_nulls: development; added test [#CLICKHOUSE-4]. 2017-04-07 00:09:39 +03:00
Alexey Milovidov
e36468af29 Renamed test [#CLICKHOUSE-2]. 2017-04-06 19:35:23 +03:00
Alexey Milovidov
4132d0ed32 Fixed test [#CLICKHOUSE-2]. 2017-04-06 19:34:39 +03:00
Alexey Milovidov
31f7fe42d6 Fool's day changed, continued [#CLICKHOUSE-3]. 2017-04-05 14:52:23 +03:00
Vitaliy Lyudvichenko
74a92cb8d9 Add test for OPTIMIZE FINAL and more diagnostics. [#CLICKHOUSE-2886] 2017-04-04 15:54:21 +03:00
Alexey Milovidov
093c77559f Added test [#CLICKHOUSE-2754]. 2017-04-04 12:24:14 +03:00
Vitaliy Lyudvichenko
a1e27e2b84 Add ru doc. [#CLICKHOUSE-2070] 2017-03-28 20:46:16 +03:00
Vitaliy Lyudvichenko
0290203f6d Fix test, add more comments. [#CLICKHOUSE-2070] 2017-03-28 20:46:16 +03:00
Vitaliy Lyudvichenko
44c9bad289 Add functional test, fixed error. [#CLICKHOUSE-2070] 2017-03-28 20:46:16 +03:00
Alexey Milovidov
a8f6a3127d Implemented limited support for NULLs in IN operator [#CLICKHOUSE-4]. 2017-03-28 06:00:33 +03:00
Alexey Milovidov
e6a41a0256 Fixed error with NULLs [#CLICKHOUSE-2901]. 2017-03-24 07:42:36 +03:00
Alexey Milovidov
9d5ea2163c Fixed error with FixedString filtering [#CLICKHOUSE-2898]. 2017-03-21 21:37:35 +03:00
Alexey Milovidov
910c542994 Added more bitwise functions [#CLICKHOUSE-2884]. 2017-03-20 22:16:02 +03:00
Alexey Milovidov
a79eb483a2 Added test [#CLICKHOUSE-2882]. 2017-03-12 18:54:40 +03:00
Alexey Milovidov
724599a369 Added test [#CLICKHOUSE-2877]. 2017-03-11 08:43:52 +04:00
Alexey Milovidov
93bb49cecd Using ICU instead of iconv. Improved performance of 'convertCharset' function [#CLICKHOUSE-2879]. 2017-03-11 07:36:14 +03:00
Alexey Milovidov
75f1d7b820 Added test [#CLICKHOUSE-2789]. 2017-03-09 23:40:36 +03:00
Alexey Milovidov
1abf959722 Added test [#CLICKHOUSE-2789]. 2017-03-09 22:49:11 +03:00