Mikhail Surin
2f300e9df9
change bins schema
2018-06-22 21:30:13 +03:00
Mikhail Surin
3373909cbd
naive implementation
2018-06-22 21:30:09 +03:00
proller
cb65528147
Build fixes ( #2481 )
...
* Build fixes
* fix
* Fix package without compiler
* Better
* fix
* fix
* fix
* Build fix
* fix
* fix
* fix
* Build fix
* Fix test
* test fixes
* test: netcat-openbsd
* Compile fixes
* Update AggregateFunctionStatisticsSimple.h
* Update FunctionsRound.h
2018-06-07 17:42:38 +03:00
Nikolai Kochetov
caa86bc59a
Fixed ColumnWithDictionary::serializeBinaryBulkWithMultipleStreams, added more comments.
2018-06-05 13:10:44 +03:00
Alexey Milovidov
ca52d96e09
Insignificant changes for PVS-Studio [#CLICKHOUSE-3]
2018-06-04 22:22:27 +03:00
Alexey Milovidov
522cd82e76
Non significant change: slightly better [#CLICKHOUSE-3]
2018-06-04 18:07:32 +03:00
Alexey Milovidov
531e9d14be
Non significant change: slightly better [#CLICKHOUSE-3]
2018-06-04 18:01:24 +03:00
Alexey Milovidov
1829aba596
Non significant change: slightly better [#CLICKHOUSE-3]
2018-06-04 17:17:47 +03:00
Alexey Milovidov
f5adbceed2
Non significant changes according to clang's -Weverything, part 3 [#CLICKHOUSE-2]
2018-06-03 23:39:06 +03:00
Alexey Milovidov
1c2b024c39
Non significant changes according to clang's -Weverything, part 2 [#CLICKHOUSE-2]
2018-06-03 20:43:56 +03:00
Nikolai Kochetov
937cb2db29
Merged with master.
2018-05-21 14:38:50 +03:00
Alexey Milovidov
1fa8a9a6df
Fixed unclean code #2352
2018-05-13 13:05:34 +03:00
Alexey Milovidov
cecffcd5ab
Apply ./utils/check-style/fix-style #2352
2018-05-13 12:36:51 +03:00
alexey-milovidov
9043820565
Update AggregateFunctionWindowFunnel.h
2018-05-13 12:31:13 +03:00
sundy-li
c56e9967f2
Add tests && docs
2018-05-13 16:18:35 +08:00
sundy-li
64b1b6d764
Add windowFunnel AggregateFunction
2018-05-12 23:49:17 +08:00
Alexey Milovidov
956128a67a
Fixed style a bit [#CLICKHOUSE-2]
2018-05-07 05:01:11 +03:00
Alexey Milovidov
a0f1b1f1ee
Whitespace [#CLICKHOUSE-2]
2018-05-06 05:21:59 +03:00
Nikolai Kochetov
535e883770
Added ConvertColumnWithDictionaryToFullBlockInputStream.
2018-05-04 15:17:53 +03:00
Nikolai Kochetov
0897d2a9c4
Added ConvertColumnWithDictionaryToFullBlockInputStream.
2018-05-04 15:11:57 +03:00
Nikolai Kochetov
7b8a306e34
minor fixes
2018-04-16 18:11:13 +03:00
Alexey Milovidov
f4b742e9fb
Fixed segfault in case of bad argument types for some aggregate functions [#CLICKHOUSE-2]
2018-03-22 18:37:24 +03:00
Alexey Milovidov
b916f17215
Implemented 'uniq' family of functions for generic case including Array argument #2010
2018-03-17 21:14:05 +03:00
Alexey Milovidov
60701afa3e
Removed unused code #2010
2018-03-17 21:02:19 +03:00
Alexey Milovidov
f08940c04c
Fixed handling of NaNs in aggregate functions that use comparison based sorting #2012
2018-03-14 08:03:51 +03:00
Alexey Milovidov
688d277ad4
Adaptation #2012
2018-03-14 07:36:41 +03:00
Alexey Milovidov
b4f1ecb7f8
clang-format #2012
2018-03-14 06:02:18 +03:00
Alexey Milovidov
d29e35d666
Merge branch 'master' of https://github.com/furmur/ClickHouse into furmur-master
2018-03-14 06:00:25 +03:00
alexey-milovidov
cbab87f18e
Update AggregateFunctionIntersectionsMax.cpp
2018-03-14 05:59:27 +03:00
Alexey Milovidov
3f8ef38b41
Fixed wording #245
2018-03-10 02:23:15 +03:00
Michael Furmur
8cb5733b44
add aggregate functions IntersectionsMax and IntersectionsMaxPos
2018-03-08 15:23:28 +02:00
Alexey Milovidov
c897e5ca39
Better [#CLICKHOUSE-2]
2018-03-03 18:36:20 +03:00
Alexey Milovidov
16bef55d0e
Fixed bad translation [#CLICKHOUSE-2]
2018-02-23 22:07:38 +03:00
Alexey Milovidov
03c3b18e96
Fixed error with dynamic compilation of quantile family of aggregate functions #1931
2018-02-22 20:32:06 +03:00
Alexey Milovidov
95d2d68c7d
Header in every stream: development [#CLICKHOUSE-2]
2018-02-18 05:22:32 +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
0bfea2f52c
Miscellaneous [#CLICKHOUSe-2]
2018-01-10 03:04:08 +03:00
alexey-milovidov
45c913ccc8
Update AggregateFunctionMinMaxAny.h
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
Alexey Milovidov
798299ba89
Merge branch 'aavdonkin-master'
2017-12-28 07:33:55 +03:00
Alexey Milovidov
104b09604a
Merging [#CLICKHOUSE-3114]
2017-12-28 00:45:05 +03:00
proller
68850012bd
Embedded compiler fixes
2017-12-27 23:07:16 +03:00
proller
da1233fe3f
Fix missing includes
2017-12-26 22:02:00 +03:00
Alexey Milovidov
8ff93487e3
Miscellaneous [#CLICKHOUSE-2].
2017-12-25 07:01:46 +03:00
Alexey Milovidov
f87cc75734
Fixed build [#CLICKHOUSE-2].
2017-12-24 13:12:49 +03:00
Alexey Milovidov
90aa544573
Unification of aggregate function combinators [#CLICKHOUSE-3511].
2017-12-24 09:51:23 +03:00
Alexey Milovidov
acb341b2c9
Unification of aggregate function combinators [#CLICKHOUSE-3511].
2017-12-24 09:50:11 +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
Alexey Milovidov
1ba80c6768
Fixed typo [#CLICKHOUSE-2].
2017-12-24 02:06:59 +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
2f8a79eee6
Kahan summation: development [#CLICKHOUSE-2].
2017-12-23 01:02:52 +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
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
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
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
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
Alexey Milovidov
342f0e431a
Better semantic of sharing columns: development [#CLICKHOUSE-2].
2017-12-16 09:08:33 +03:00
Alexey Milovidov
7284a64740
Better semantic of sharing columns: development [#CLICKHOUSE-2].
2017-12-16 00:32:25 +03:00
Alexey Milovidov
fb38ef9a8e
Better semantic of sharing columns: development [#CLICKHOUSE-2].
2017-12-14 06:56:56 +03:00
Alexey Milovidov
c3015bece3
Miscellaneous [#CLICKHOUSE-2].
2017-12-11 01:44:04 +03:00
Alexey Milovidov
52088c9c07
Various fixes [#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
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
1b60106333
Simplification of Nullable [#CLICKHOUSE-2]
2017-12-08 09:58:48 +03:00
Alexey Milovidov
9962035ef4
Simplification of Nullable [#CLICKHOUSE-2]
2017-12-08 08:09:08 +03:00
Alexey Milovidov
8cc0bae1bc
Simplification of Nullable [#CLICKHOUSE-2]
2017-12-08 02:07: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
d36d7170ed
Better [#CLICKHOUSE-2].
2017-12-02 06:42:21 +03:00
Alexey Milovidov
c748493a86
Better [#CLICKHOUSE-2].
2017-12-02 05:47:12 +03:00
Alexey Milovidov
7196602e12
Better [#CLICKHOUSE-2].
2017-12-02 00:51:50 +03:00
Alexey Milovidov
54e601019c
Better [#CLICKHOUSE-2].
2017-12-02 00:40:58 +03:00
Alexey Milovidov
acd78e4891
Better [#CLICKHOUSE-2].
2017-12-02 00:13:25 +03:00
Alexey Milovidov
bdd25b15bd
Better [#CLICKHOUSE-2].
2017-12-01 22:34:51 +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
proller
aa3dd03389
Split lib dbms to dbms + dbms_common_io
2017-11-17 22:19:49 +03:00
Иванов Евгений
e846d62410
Added support UUID type for distinct, uniq* functions and joins
2017-11-12 04:07:05 +03:00
Alexey Milovidov
c99f82538c
Miscellaneous [#CLICKHOUSE-2].
2017-10-28 08:43:20 +03:00
Marek Vavruša
e936c4d066
AggregateFunctionSum: implemented sumWithOverflow(x)
...
By default sum(x) promotes the result type to
largest possible integral type to avoid
arithmetic overflow when summing values from
smaller data types.
This is generally desirable behaviour, but it doesn’t
work with summing merge tree, as the result is
expected to be of same type as the input.
2017-10-25 22:21:59 +03:00
Marek Vavruša
fa098b469c
AggregateFunctionSumMap: compact keys with zero value
...
This allows `sumMap(k, v)` to compact all keys
for which the values are all zero.
2017-10-25 22:21:59 +03:00
Marek Vavruša
927c0f7b74
dbms: Partially revert previous change
...
Instead of trying to convert long/unsigned long to Poco types, just
don't use them.
2017-10-13 23:46:10 -07:00
Marek Vavruša
8a0571af24
dbms: Better fix for missing unsigned long to Poco::UInt64 alias
2017-10-13 21:39:14 -07:00
Marek Vavruša
70543200be
dbms: Fix build with clang after Poco update
...
In the current version of Poco, unsigned long no longer aliases to
UInt64 with LP64. The size_t aliases to unsigned long with clang,
so all the uses of size_t instead of UInt64 when interacting with
Poco interfaces are gone. I replaced uses with UInt64 where it makes
sense, and added an overloaded function for readVarUInt() to support size_t.
2017-10-13 18:26:24 -07:00
Alexey Milovidov
f42c6014ce
Merge branch 'master' of github.com:yandex/ClickHouse
2017-10-14 02:06:11 +03:00
alexey-milovidov
6405620dfb
Update AggregateFunctionSumMap.h
2017-10-13 21:51:03 +03:00
alexey-milovidov
a5955d527d
Update AggregateFunctionSumMap.h
2017-10-13 21:51:03 +03:00
alexey-milovidov
4124465d0b
Update AggregateFunctionSumMap.h
2017-10-13 21:51:03 +03:00
alexey-milovidov
725379e23d
Update AggregateFunctionSumMap.h
2017-10-13 21:51:03 +03:00
alexey-milovidov
9eca78273f
Update AggregateFunctionSumMap.h
2017-10-13 21:51:03 +03:00
alexey-milovidov
1984782321
Update AggregateFunctionSumMap.h
2017-10-13 21:51:03 +03:00
Marek Vavruša
2edf5492d0
AggregateFunctionSumMap: support variardic arguments, specialized keys
...
The function is rewritten to avoid allocations on every insert with
Field deserialising each array. The key type is now specialized,
so it can be accessed directly. The value type is variant type,
but only individual values are deserialised (which is cheap, since they're PODs).
The function also support summing of multiple columns by the same key.
The SummingSortedBlockInputStream uses the function in case of
Nested structure with one numeric key and many values to sum.
2017-10-13 21:51:03 +03:00
Alexey Milovidov
1405415f94
Miscellaneous [#CLICKHOUSE-3].
2017-10-09 01:53:38 +03:00
alexey-milovidov
2dfb3fa463
Update AggregateFunctionTopK.h
2017-10-09 01:12:38 +03:00
alexey-milovidov
6e5ea5cc10
Update AggregateFunctionTopK.h
2017-10-09 01:12:38 +03:00
Marek Vavruša
28bb5e25cf
AggregateFunctionTopK: read alphaMap for generic
...
* the alpha_map vector always (de)serialises
the actual version (could empty sometimes)
* AggregateFunctionTopK generic variant deserialises
it as well instead of ignoring it
* AggregateFunctionTopK generic variant clears the
array before deserialising
refs #1283
2017-10-09 01:12:38 +03:00
Alex Bocharov
e99c969a1c
Aggregate function sumMap: improve insertResultInto method and change return type to Tuple(Array(K), Array(V)).
2017-09-19 13:35:25 +01:00
Alex Bocharov
07cd6829d0
Aggregate function sumMap: fix compilation error regarding getHeaderFilePath after merge with master.
2017-09-18 19:37:44 +01:00
Alex Bocharov
1f70d0e163
Resolve conflict in SummingSortedBlockInputStream when moving FieldVisitorSum.
2017-09-18 18:43:47 +01:00
Alex Bocharov
c1feea159e
Aggregate function sumMap: optimize serialize/deserialize.
2017-09-18 18:11:16 +01:00
Alex Bocharov
6e74602e45
Aggregate function sumMap: use FieldVisitorSum instead of += operator.
2017-09-18 16:41:07 +01:00
alexey-milovidov
edb66bfffe
Merge branch 'master' into master
2017-09-18 10:31:31 +03:00
Alexey Milovidov
ff1598c8d1
Improved performance of dynamic compilation [#CLICKHOUSE-2].
2017-09-17 23:22:39 +03:00
Alexey Milovidov
156d48f3ee
Removed aggregate function "debug" [#CLICKHOUSE-2].
2017-09-17 23:12:02 +03:00
Alexey Milovidov
dd3e74c0eb
Fixed weird translation [#CLICKHOUSE-2].
2017-09-17 21:17:04 +03:00
Alexey Milovidov
86c46ad1bd
Unification [#CLICKHOUSE-2].
2017-09-15 15:16:12 +03:00
Alex Bocharov
591cd5c009
Add new aggregate function sumMap(key, value).
2017-09-15 12:14:19 +01:00
Alexey Milovidov
cd540c2674
Replaced Mersenne Twister to PCG-Random [#CLICKHOUSE-2].
2017-09-10 02:17:38 +03:00
Alexey Milovidov
be79166199
Using pcg-random instead of boost::random::taus88 [#CLICKHOUSE-3174].
2017-09-09 02:58:42 +03:00
Alexey Milovidov
c0324aeb66
Removed useless header [#CLICKHOUSE-3174].
2017-09-09 02:40:48 +03:00
proller
aa1f27553e
Header compile fixes
2017-09-01 22:05:29 +03:00
proller
1a8e22c37f
Allow compile on 32bit systems ( #1175 )
...
* Trying compile under 32bit..
* PerformanceTest: use getMultiple*FromConfig, fix debug helpers
* Missing file
* clnag-format of Split ComplexKeyCacheDictionary
* wip
* Requested changes
* wip
* wip
* Fix boost 1.64 and gcc7+ compile errors
* More fixes
* wip
* Fix arm build
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* clean
* fix
* wip
* wip
* clean
* clean
* wip
* wip
* Update MergeTreeSettings.h
* Requested changes
* Requested changes
* Requested changes
* Requested changes
2017-09-01 20:21:03 +03:00
Alexey Milovidov
1531268281
Added aggregate functions groupBitAnd, groupBitOr, groupBitXor [#CLICKHOUSE-2].
2017-08-30 21:52:14 +03:00
Alexey Milovidov
495daffa16
Miscellaneous [#CLICKHOUSE-2].
2017-08-30 21:13:32 +03:00
Alexey Zatelepin
eec6a3ecb9
add forgotten aggregate functions to SpecializedAggregator.h [#CLICKHOUSE-3247]
2017-08-23 17:00:36 +03:00
Alexey Zatelepin
ec96183f59
put AggregateFunctionStatistics implementation out of anonymous namespace [#CLICKHOUSE-3247]
2017-08-23 17:00:36 +03:00
Alexey Zatelepin
8620dd6876
runtime compilation fix: put groupArray implementation out of anonymous namespace [#CLICKHOUSE-3247]
...
Demangled symbols from anonymous namespace contain "::(anonymous namespace)::" string
and thus cannot be used with runtime compilation of aggregation functions.
2017-08-23 17:00:36 +03:00
Alexey Milovidov
75f1df36e4
Miscellaneous [#CLICKHOUSE-2].
2017-08-22 20:29:02 +03:00
Vadim Skipin
5f4e833925
Cleanup function factories:
...
* Switch to std::function to allow more complex creator logic
* Cleanup headers
2017-08-18 21:15:57 +03:00
Vitaliy Lyudvichenko
f36caa9c99
Parameter rename. [#CLICKHOUSE-3213]
2017-08-12 03:46:42 +03:00
Vitaliy Lyudvichenko
04dcec32b4
Specialized implementation of groupArray() for Date and DateTime. [#CLICKHOUSE-3213]
2017-08-12 03:46:42 +03:00
Alexey Milovidov
ce4349b6cd
Fixed error when huge sets for IN, JOIN, DISTINCT cannot be created with exception message "Cannot mremap... Bad address" [#CLICKHOUSE-2].
2017-08-11 02:25:51 +03:00
proller
ac178bde1f
Cmake: link ltdl with pocoodbc static only. rename ARM -> ARCH_ARM ( #1083 )
...
* Cmake: link ltdl with pocoodbc static only. rename ARM -> ARCH_ARM
* Fix lib find order
* Allow define non-contrib cityhash farmhash metrohash
* Fix message
* Cmake: fixes
* clean
* Update CMakeLists.txt
2017-08-09 23:52:55 +03:00
proller
8f6c2d4e47
Fix .h compile
2017-08-01 18:02:16 +03:00
Alexey Milovidov
3502d36d7d
Fixed build [#CLICKHOUSE-2].
2017-07-28 02:23:13 +03:00
Alexey Milovidov
e4af70149f
Fixed build [#CLICKHOUSE-2].
2017-07-28 00:27:10 +03:00
Alexey Milovidov
6851a7754a
Fixed linkage [#CLICKHOUSE-2].
2017-07-25 21:32:52 +03:00
Vitaliy Lyudvichenko
870b1aefcb
Get rid of of PODArray copypaste. [#CLICKHOUSE-3084]
2017-07-25 20:04:10 +03:00