Alexey Milovidov
4a45db2b9b
Fixed UB #3926
2018-12-26 07:40:16 +03:00
Alexey Milovidov
fc39ce8673
Fixed UB #3926
2018-12-26 07:12:14 +03:00
Alexey Milovidov
0ba7c1dd3a
Fixed UB #3926
2018-12-26 06:32:18 +03:00
Alexey Milovidov
665fc23f57
Fixed UB #3569
2018-12-26 06:27:26 +03:00
Alexey Milovidov
b1b1c676c9
Fixed error #3926
2018-12-26 03:30:11 +03:00
Alexey Milovidov
cfc1e207ab
Fixed UB #3926
2018-12-26 02:27:52 +03:00
Amos Bird
8736a3908f
left pad
2018-12-24 23:51:06 +08:00
Alexey Milovidov
1841634ae2
Removed accidential change [#CLICKHOUSE-2]
2018-12-20 20:49:37 +03:00
Alexey Milovidov
edc415857c
Removed accidential change [#CLICKHOUSE-2]
2018-12-20 20:46:31 +03:00
Alexey Milovidov
731d76821d
Merging abandoned pull request with "boundingRatio" function #3139
2018-12-20 18:14:32 +03:00
Alexey Milovidov
113ff56384
Merge branch 'master' into twosixlabs-add_rate_function
2018-12-20 17:19:06 +03:00
alexey-milovidov
6d27777b19
Merge branch 'master' into ubsan-fixes-3
2018-12-14 20:52:54 +03:00
Alexey Milovidov
f3c72daf50
Fixed name [#CLICKHOUSE-2]
2018-12-07 06:21:17 +03:00
Alexey Milovidov
c77930fe30
Whitespaces [#CLICKHOUSE-2]
2018-11-26 03:56:50 +03:00
alexey-milovidov
1002ed7487
Merge branch 'master' into 3958/many_templates
2018-11-23 01:48:42 +03:00
alexey-milovidov
2c2d75cceb
Don't allow exceptions without code ( #3645 )
...
* Don't allow exceptions without code #3633
* Don't allow exceptions without code #3633
2018-11-23 00:19:58 +03:00
proller
1d40c2c871
Better link and deps ( #3631 )
...
* try fix 1
* Better deps
* fix
* fix
* fix
* Update CMakeLists.txt
* Update CMakeLists.txt
* fix
* fix
* fix
* disable old
* Update find_odbc.cmake
2018-11-21 22:20:27 +03:00
Alexey Milovidov
78e72a1962
Little better #3624
2018-11-20 23:09:20 +03:00
alexey-milovidov
de5d4b6256
Update AggregateFunctionQuantile.h
2018-11-19 21:25:57 +03:00
Ivan Lezhankin
b63f0a5a9f
Minor refactoring
2018-11-19 17:25:42 +03:00
Ivan Lezhankin
fc272ecded
Some fixes to quantile*() functions related to DateTime argument type
2018-11-14 18:04:23 +03:00
Alexey Milovidov
accda8bed2
Fixed some code (incomplete) #3139
2018-11-01 20:55:11 +03:00
Alexey Milovidov
dd3f57dd5d
Fixed some code (incomplete) #3139
2018-11-01 20:54:53 +03:00
Alexey Milovidov
4a5fd44da2
Merge branch 'add_rate_function' of https://github.com/twosixlabs/ClickHouse into twosixlabs-add_rate_function
2018-11-01 20:41:32 +03:00
Ivan Lezhankin
0592081f2f
Reduce maximum allowable size of |HashSet|.
2018-10-25 16:17:29 +03:00
Ivan Lezhankin
aa6a69b635
Add TODO comment
2018-10-24 17:28:23 +03:00
Ivan Lezhankin
69ebaaeed6
Merge branch '3958/many_templates' of github.com:abyss7/ClickHouse into 3958/many_templates
2018-10-24 17:24:52 +03:00
Ivan Lezhankin
9296ef5008
Temporarily disable precalculated bias estimations for precisions other than 17.
2018-10-24 17:23:57 +03:00
Amos Bird
3cf2177268
Flexible fields assignment
...
Field f;
before:
f = Int64(-42);
after:
f = -42;
2018-10-24 08:47:33 +08:00
alexey-milovidov
fd86a6bea5
Update AggregateFunctionUniqCombined.cpp
2018-10-22 22:38:46 +03:00
alexey-milovidov
bd148bb082
Update AggregateFunctionUniqCombined.cpp
2018-10-22 22:37:55 +03:00
alexey-milovidov
f90783d885
Update AggregateFunctionUniqCombined.cpp
2018-10-22 22:36:32 +03:00
alexey-milovidov
c8868cffaa
Update AggregateFunctionUniqCombined.cpp
2018-10-22 22:34:39 +03:00
Ivan Lezhankin
2a53716043
Move the precision template argument one level up.
2018-10-22 20:18:08 +03:00
Ivan Lezhankin
19ed7b6ae9
Minor optimizations
2018-10-22 13:00:37 +03:00
proller
abfe675097
Build fixes ( #3419 )
2018-10-18 22:28:05 +03:00
Ivan Lezhankin
28ea773b9e
Use a single "place" for a default precision constant.
...
Also update stateless tests.
2018-10-18 21:38:45 +03:00
Ivan Lezhankin
45e6fd8cd2
Fix compilation with gcc and code style
2018-10-18 18:25:39 +03:00
Ivan Lezhankin
e16081d4d4
Fix initialization of precision.
2018-10-18 14:15:47 +03:00
Ivan Lezhankin
6d783ef013
Move-away "uniqCombined" as a separate aggregated function with HLL precision
2018-10-17 17:31:06 +03:00
Alexey Milovidov
f720a5bf95
Fixed typos in code #3373
2018-10-13 17:33:43 +03:00
chertus
5896e45dac
SummingMergeTree for Decimal128 [issue-3282]
2018-10-11 17:33:01 +03:00
chertus
5b987f02d7
sumMap for number-based types [issue-3277]
2018-10-03 17:22:28 +03:00
alexey-milovidov
a149233d99
Merge pull request #3246 from yandex/low-cardinality-fixes
...
Low cardinality fixes
2018-09-28 19:50:53 +03:00
chertus
292a885533
fix typo in quantiles func registration
2018-09-28 18:08:37 +03:00
Nikolai Kochetov
97add69825
Rename WithDictionary to LowCardinality.
2018-09-28 13:44:59 +03:00
chertus
3ff2cfb4af
fix div by zero in decimal var/stddev
2018-09-26 15:38:36 +03:00
alexey-milovidov
babc145f5f
Merge pull request #3188 from yandex/fix_segfault_3151
...
Add isState for array function combinator
2018-09-21 22:30:15 +03:00
alesapin
4d29141957
Add isState for array function combinator
2018-09-21 12:37:09 +03:00
Alexey Milovidov
16dacff488
Fixed build [#CLICKHOUSE-2]
2018-09-20 23:50:58 +03:00
chertus
f39d78b0bc
AVG() exception instead of division by zero
2018-09-19 15:11:21 +03:00
Karl Pietrzak
c44398212d
WIP: basic rate() function
2018-09-14 14:30:31 -04:00
alexey-milovidov
685560134a
Merge pull request #3129 from 4ertus2/decimal
...
var, stddev and math functions for decimal [CLICKHOUSE-3765]
2018-09-14 21:12:37 +03:00
chertus
0740804ce7
fix build
2018-09-14 13:15:56 +03:00
chertus
7adf8d29cf
var/stddev for decimal [CLICKHOUSE-3765]
2018-09-13 21:36:47 +03:00
Amos Bird
af369483a9
Simply Self.
...
> When the normal name of the template (i.e., the name from the enclosing scope, not the injected-class-name) is used, it always refers to the class template itself and not a specialization of the template
http://eel.is/c++draft/temp.local
2018-09-13 22:59:54 +08:00
alexey-milovidov
5998496790
Merge pull request #3116 from 4ertus2/decimal
...
Some aggregate functions for Decimal
2018-09-13 03:01:27 +03:00
chertus
45ec7e63aa
add static asserts for decimal [CLICKHOUSE-3765]
2018-09-12 20:50:51 +03:00
chertus
d301fcd004
decimal quantileExact [CLICKHOUSE-3765]
2018-09-12 19:36:13 +03:00
chertus
1c4825138a
decimal avg [CLICKHOUSE-3765]
2018-09-12 16:27:32 +03:00
chertus
dd5c55df2c
decimal sum [CLICKHOUSE-3765]
2018-09-11 21:42:06 +03:00
zhang2014
7af592d8e1
ISSUES-3059 fix nullable type argument for aggregate function
2018-09-11 19:33:14 +08:00
chertus
c693a73385
hotfix (helpers refactoring)
2018-09-10 20:51:25 +03:00
chertus
3cf39258a4
fewer type casts [CLICKHOUSE-2]
2018-09-10 20:09:07 +03:00
chertus
0b35cdae69
refactoring: add some sugar in type checks [CLICKHOUSE-0002]
2018-09-07 17:37:26 +03:00
Vadim
2dd0c4c594
Merge pull request #3032 from yandex/amosbird_window_funnel
...
[FIX TESTS] Support events qualified for multiple conditions in Window Funnel
2018-09-04 14:32:58 +03:00
Alexey Milovidov
c6275dd8e4
Respect alignment in groupArray function [#CLICKHOUSE-2]
2018-09-02 23:09:25 +03:00
Alexey Milovidov
6acd58ee60
Respect alignment in groupArray function [#CLICKHOUSE-2]
2018-09-02 22:53:35 +03:00
Alexey Milovidov
1c6d8e235c
Respect alignment in groupArray and maxIntersections aggregate functions [#CLICKHOUSE-2]
2018-09-02 22:20:27 +03:00
VadimPE
003ce833d1
Merge branch 'master' of https://github.com/amosbird/ClickHouse into amosbird_window_funnel
2018-09-02 17:49:59 +03:00
Alexey Milovidov
03038c75c4
Addition to prev. revision [#CLICKHOUSE-2]
2018-09-02 08:07:49 +03:00
Alexey Milovidov
77ccc8c65c
Addition to prev. revision [#CLICKHOUSE-2]
2018-09-02 07:58:55 +03:00
Alexey Milovidov
8d76be1dfd
Addition to prev. revision [#CLICKHOUSE-2]
2018-09-02 07:41:40 +03:00
Alexey Milovidov
538edbb8e2
Addition to prev. revision [#CLICKHOUSE-2]
2018-09-02 06:33:48 +03:00
Alexey Milovidov
6c61dbde26
Addition to prev. revision [#CLICKHOUSE-2]
2018-09-02 06:14:00 +03:00
Alexey Milovidov
fc27be314b
Avoid temporary nullptr references [#CLICKHOUSE-2]
2018-09-02 06:00:04 +03:00
Alexey Milovidov
f7107f12b4
Merge branch 'master' into extra-warnings
2018-09-02 03:13:36 +03:00
Alexey Milovidov
7d77d001f5
Full support for alignment of aggregate states #2808
2018-09-01 07:25:03 +03:00
Alexey Milovidov
fa6e364f68
Enabling -Wextra-semi [#CLICKHOUSE-2]
2018-08-26 03:51:37 +03:00
Alexey Milovidov
6043ea02de
Style #2913
2018-08-24 08:25:00 +03:00
Amos Bird
f422a15ae1
Support events qualified for multiple conditions.
...
Currently windowFunnel function only take the first qualified condition
into account when operating on one event. This patch extends the
ability.
2018-08-23 18:30:50 +08:00
Alexey Milovidov
246f1947c5
Improvement #2887
2018-08-23 04:06:21 +03:00
Alexey Milovidov
a2674d46fd
Fixed wrong code #2887
2018-08-23 03:49:18 +03:00
alexey-milovidov
bce94dae9b
Merge pull request #2887 from housepower/retention
...
Add AggregateFunctionRetention
2018-08-20 09:38:43 +03:00
alexey-milovidov
89ee237ee4
Update AggregateFunctionRetention.h
2018-08-20 07:22:04 +03:00
sundy-li
63d74978d8
add AggregateFunctionRetention
2018-08-18 20:39:07 +08:00
alexey-milovidov
3e9f25b1b4
Merge pull request #2830 from yandex/data-type-with-dictionary
...
LowCardinality data type.
2018-08-13 23:49:21 +03:00
sundy-li
65670bc33a
return nan when quantileExact with empty float column
2018-08-13 16:33:51 +08:00
Nikolai Kochetov
f4d9d50168
Merged with master.
2018-08-08 15:01:18 +03:00
Alexey Milovidov
a2101df25a
Fixed error in aggregate function "anyHeavy"; added a test [#CLICKHOUSE-3867]
2018-07-27 22:51:13 +03:00
zhang2014
4bc916029c
ISSUES-2700 fix windowFunnel NULL pointer
...
Co-authored-by: zhang2014 <coswde@gmail.com>
Co-authored-by: sundy-li <543950155@qq.com>
2018-07-27 15:19:29 +08:00
alesapin
9adb251689
CLICKHOUSE-3857: Add table table_engines, alias factory base class and columns alias_to and case_insensitive to functions
2018-07-25 19:08:23 +03:00
alesapin
670353895b
CLICKHOUSE-3772: Change base class of almost all StorageSystem* tables and fix remarks
2018-07-24 17:28:56 +03:00
Alexey Zatelepin
4c4da31cc2
check number of arguments for -Array combinator [#CLICKHOUSE-3853] #2703
2018-07-23 19:54:25 +03:00
Alexey Milovidov
a1684d4a4a
Miscellaneous #2687
2018-07-20 19:02:23 +03:00
Alexey Milovidov
09d22da9b9
Miscellaneous #2687
2018-07-20 18:59:11 +03:00
Nikolai Kochetov
3a74ec7c0c
Mergred with master
2018-07-20 14:08:54 +03:00
alesapin
73bcc95af9
CLICKHOUSE-3772: Change return type to const reference
2018-07-20 13:07:11 +03:00
alesapin
ec156e9f2b
CLICKHOUSE-3772: Add system tables formats, data_type_families, table_functions, aggregate_function_combinators
2018-07-20 13:00:56 +03:00
alexey-milovidov
d1eac37389
Update AggregateFunctionMaxIntersections.h
2018-07-16 19:04:35 +03:00
Michael Furmur
218a282f88
maxIntersections: add sorting by weight
2018-07-16 15:01:05 +03:00
Alexey Milovidov
6a2d8d4f3f
Added support for arbitary complex types in "uniq" family of aggregate functions #2010
2018-07-16 06:55:41 +03:00
Alexey Milovidov
b3b41c9661
Non significant changes #2521
2018-07-11 15:59:37 +03:00
Mikhail Surin
877acef7d5
remove temporary allocations
2018-07-08 16:56:33 +03:00
Mikhail Surin
69b8774611
ensure parameter type
2018-07-07 15:38:47 +03:00
Mikhail Surin
9f5e9d1389
epsilon
2018-07-07 15:09:21 +03:00
Mikhail Surin
ca837723ed
fix unique for empty point sets
2018-07-07 13:40:32 +03:00
Mikhail Surin
8c4f04c452
invalid values handler
2018-07-06 14:29:14 +03:00
Mikhail Surin
0418f179dc
merge review
2018-07-05 16:29:43 +03:00
Mikhail Surin
8bb17685fd
reduce memory footprint
2018-07-05 14:33:59 +03:00
Mikhail Surin
984fe8e4fd
implement n log(n) compression algorigthm
2018-07-05 12:53:42 +03:00
Mikhail Surin
b09323c547
naive implementation
2018-07-05 12:53:42 +03:00
Alexey Milovidov
c45aa180e8
Reviewing #2521
2018-07-05 02:24:36 +03:00
Alexey Milovidov
ac2d352203
Reviewing #2521
2018-07-05 01:28:15 +03:00
Alexey Milovidov
b18a0e3ec0
Reviewing #2521
2018-07-05 00:49:32 +03:00
Nikolai Kochetov
9f591b8d02
Merged with master.
2018-06-26 17:41:29 +03:00
Mikhail Surin
0188538b33
fix review
2018-06-22 21:30:13 +03:00
Mikhail Surin
7ee530a97d
implement n log(n) compression algorigthm
2018-06-22 21:30:13 +03:00
Mikhail Surin
511e608080
use arena
2018-06-22 21:30:13 +03:00
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