Commit Graph

967 Commits

Author SHA1 Message Date
Alexey Milovidov
8b4a6a2416 Remove cruft 2021-10-28 02:10:39 +03:00
Anton Popov
7aa6068fb2 Merge remote-tracking branch 'upstream/master' into HEAD 2021-10-14 19:44:08 +03:00
Mike Kot
8c8bada56e Non-recursive implementation for TL and its functions 2021-10-03 18:02:04 +02:00
Anton Popov
b64bbb54aa
Merge pull request #29203 from CurtizJ/fix-ubsan
Fix integer underflow in function `quantile`
2021-10-02 20:36:53 +03:00
Alexey Milovidov
fe6b7c77c7 Rename "common" to "base" 2021-10-02 10:13:14 +03:00
Anton Popov
914781052e Merge remote-tracking branch 'upstream/master' into HEAD 2021-09-29 17:37:07 +03:00
bharatnc
0e9af142df Fix one more comment 2021-09-25 18:21:47 -07:00
bharatnc
23b6ac82a7 Fix comments in AggregateFunctionFactory 2021-09-25 18:21:06 -07:00
Alexey Milovidov
cd7f9d981c Remove ya.make 2021-09-25 04:22:54 +03:00
vdimir
db5477e634
Fix style in QuantileTDigest.h 2021-09-24 13:08:46 +03:00
vdimir
58a756da9e
Handle overflow in quantileTDigest 2021-09-24 13:08:45 +03:00
万康
7201b2476e fix spell error 2021-09-22 13:26:05 +08:00
Anton Popov
c48a93a62f fix integer underflow in function 'quantile' 2021-09-20 21:21:40 +03:00
Alexey Milovidov
edb4c58ecc Fix build 2021-09-19 21:13:00 +03:00
Alexey Milovidov
7d24e110e4 Make something with more sense 2021-09-19 20:23:06 +03:00
Anton Popov
eef436fe22 Merge remote-tracking branch 'upstream/master' into HEAD 2021-09-16 18:07:42 +03:00
mergify[bot]
a8e9450d91
Merge branch 'master' into exp-smooth 2021-09-15 20:55:32 +00:00
Nikita Mikhaylov
58f2504a56 Update ya.make 2021-09-14 12:00:32 +00:00
alexey-milovidov
b73f71fc06
Merge pull request #28906 from Algunenano/sum_fp
Improve the performance of SUM of nullable floating point numbers
2021-09-13 10:55:51 +03:00
alexey-milovidov
1add234900
Update registerAggregateFunctions.cpp 2021-09-13 08:46:12 +03:00
alexey-milovidov
ad997cf51e
Merge branch 'master' into exp-smooth 2021-09-13 07:29:49 +03:00
Nikolay Degterinsky
b02c807346
Merge pull request #27481 from nicelulu/add_sparkbar
Add sparkbar aggregate function.
2021-09-12 21:29:24 +03:00
alexey-milovidov
ea13a8b562
Merge pull request #28659 from myrrc/improvement/tostring_to_magic_enum
Improving CH type system with concepts
2021-09-12 15:26:29 +03:00
Raúl Marín
893faa8425 Unroll the loop manually 2021-09-12 13:24:25 +02:00
Alexey Milovidov
9ea1d443ba Add exponentialMovingSum aggregate function 2021-09-12 12:26:13 +03:00
Alexey Milovidov
0745631bf7 Add aggregate function for exp smoothing 2021-09-12 08:26:07 +03:00
Raúl Marín
9fb8eeaea3 Use project types 2021-09-11 22:54:30 +02:00
Raúl Marín
940e075941 Remove notNull changes 2021-09-11 22:36:22 +02:00
Raúl Marín
46eb305eec T != Value 2021-09-11 20:46:16 +02:00
Mike Kot
3401b32e37 Adapted usage of is_decimal concept 2021-09-11 19:35:12 +02:00
Raúl Marín
a13b6f2a09 WIP: Speed up sum(floating point) 2021-09-11 15:37:52 +02:00
Mike Kot
bce011cb33 Replacing IsDecimalNumber 2021-09-11 00:40:18 +02:00
Azat Khuzhin
017dc9fa2a Remove unused ILLEGAL_AGGREGATION from AggregateFunctionIf 2021-09-11 00:48:17 +03:00
Azat Khuzhin
c362e7c541 Introduce IAggregateFunctionCombinator::supportsNesting() 2021-09-10 22:41:38 +03:00
Azat Khuzhin
d8bf2f81ec Allow Array/OrNull combinators regardless nesting 2021-09-10 22:35:25 +03:00
Azat Khuzhin
1e7714d56d Forbid nested identical (only) combinators
Nested identical combinators (i.e. uniqCombinedIfIf) is not
supported (since they even don't work -- silently).

But non-identical does supported and works, for example
uniqCombinedIfMergeIf, it is useful in case when the underlying
storage stores AggregateFunction(uniqCombinedIf) and in SELECT you
need to filter aggregation result based on another column for
example.
2021-09-10 21:03:24 +03:00
Azat Khuzhin
60df1e8800 Relax nested function for If-combinator check
Second If combinator can be useful to add condition based on another
column, when Merge combinator is applied for example (i.e.
uniqCombinedIfMergeIf(state_of_merge_that_is_stored_in_table, event_date = today())).
2021-09-10 21:03:24 +03:00
mergify[bot]
95be9c3571
Merge branch 'master' into add_sparkbar 2021-09-10 10:19:27 +00:00
Anton Popov
8203bd1ac6 Merge remote-tracking branch 'upstream/master' into HEAD 2021-09-09 14:04:37 +03:00
alexey-milovidov
4cc0b0298c
Merge pull request #28269 from amosbird/fixweirdcode
Better nullable primary key implementation
2021-09-01 00:48:45 +03:00
Anton Popov
268550cc4b
Merge pull request #28272 from Algunenano/faster_sumIF
Speed up sumIf/countIf
2021-08-31 15:00:46 +03:00
Raúl Marín
d3d8d4eae6 PVS Studio 2021-08-30 19:37:54 +02:00
Raúl Marín
92799f6cff Make gcc happy 2021-08-30 19:09:04 +02:00
Raúl Marín
11d242cf7d If: Check if work is necessary and combine flags 2021-08-30 14:28:09 +02:00
Raúl Marín
d0f8e2d063 Remove memcpy and use the heap 2021-08-30 13:31:51 +02:00
Kruglov Pavel
95fd6197dc
Merge pull request #27729 from ContentSquare/sequenceMatchQuickCheck
Sequence match quick check
2021-08-30 13:04:23 +03:00
zhangxiao871
0cf6506156 reserve for newPoints. 2021-08-30 17:29:25 +08:00
Raúl Marín
5ad8e93458 Speedup sumIf with Nullable types 2021-08-30 10:54:49 +02:00
Raúl Marín
a5c8af1e1b Speed up sumIf 2021-08-30 10:54:49 +02:00
zhangxiao871
a672c63225 Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into yandex-master 2021-08-30 16:26:24 +08:00
Dmitrii Kovalkov
9871ad70ff Exclude fuzzers 2021-08-30 11:12:25 +03:00
Dmitrii Kovalkov
8acf0fa16a run generate-ya-make 2021-08-30 10:57:40 +03:00
Amos Bird
f2374a6916
Better nullable primary key implementation. 2021-08-28 17:48:28 +08:00
Jakub Kuklis
c60e935830 Adding Format Null to performance test queries, style improvement for the test, additional comments in the code 2021-08-26 16:42:39 +02:00
Vladimir C
0858fdf113
Merge pull request #27036 from nickitat/nickitat_select_filter 2021-08-24 10:18:55 +03:00
RedClusive
1b7fe54f45 Merge branch 'master' of github.com:ClickHouse/ClickHouse into feature-quantileBfloat16 2021-08-22 12:41:11 +00:00
RedClusive
fd7002fcd5 fix weighted 2021-08-21 18:09:42 +00:00
zhangxiao871
3a8199c21e Try fix AST fuzzer (UBSan) check. 2021-08-22 00:28:17 +08:00
achimbab
e4aaa5c52d
Update src/AggregateFunctions/AggregateFunctionWindowFunnel.h
Co-authored-by: Alexey Boykov <33257111+mathalex@users.noreply.github.com>
2021-08-21 02:38:27 +09:00
achimbab
a516b8e843
Merge branch 'master' into bugfix_wf_strict 2021-08-21 00:00:13 +09:00
achimbab
f371151e18 Fix docs and comments for windowFunnel and remove strict option 2021-08-20 23:56:28 +09:00
zhangxiao871
4d59e0c8f9 Maybe fix AST fuzzer (UBSan) check. 2021-08-20 20:48:23 +08:00
zhangxiao871
9aadba98cf Better newPoints data struct and rename test. 2021-08-20 18:27:14 +08:00
zhangxiao871
2d47804af3 Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into yandex-master 2021-08-20 17:25:52 +08:00
Anton Popov
c3c3a06078 Merge remote-tracking branch 'upstream/master' into HEAD 2021-08-20 01:45:38 +03:00
Nikolai Kochetov
3e44ef437e
Merge pull request #26639 from ClickHouse/fix-bad-cast
Fix bad cast
2021-08-19 11:17:26 +03:00
zhangxiao871
644a268963 sparkbar map instead of HashMap and some optimize. 2021-08-17 17:28:54 +08:00
Nickita Taranov
3b13b79d65 throw in AggregateFunctionCombinatorIf instead 2021-08-16 12:10:51 +03:00
jkuklis
27e5001e89
Merge branch 'ClickHouse:master' into sequenceMatchQuickCheck 2021-08-16 10:00:52 +02:00
Kseniia Sumarokova
b024c215af
Merge pull request #24757 from zdikov/subquery-operators
Subquery operators
2021-08-15 21:33:59 +03:00
zhangxiao871
c7dbd0c297 Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into yandex-master 2021-08-15 19:53:09 +08:00
zhangxiao871
72ba479b26 Add tests. 2021-08-15 19:50:32 +08:00
kssenii
f125fb3fef Some fixes around any/all 2021-08-14 20:33:03 +03:00
kssenii
47fb923975 Some fixes, more tests 2021-08-13 15:07:44 +03:00
achimbab
9a7cce83b3 Bugfix for windowFunnel's "strict" mode. 2021-08-11 21:08:09 +09:00
Alexey Milovidov
c590a239d5 Merge branch 'master' into fix-bad-cast 2021-08-11 05:48:37 +03:00
Maksim Kita
12149d1ebb
Merge pull request #27234 from DHBin/add_bitmapSubsetOffsetLimit
add bitmapSubsetOffsetLimit function
2021-08-10 12:09:56 +03:00
zhangxiao871
deb2c4569f Avoid division by 0 problem. 2021-08-10 16:59:36 +08:00
zhangxiao871
e0f967dde8 Add sparkbar aggregate function. 2021-08-09 23:19:44 +08:00
mergify[bot]
316c254536
Merge branch 'master' into fix-bad-cast 2021-08-08 23:45:19 +00:00
Alexey Milovidov
24cef99065 Merge branch 'master' into fix-bad-cast 2021-08-08 04:00:29 +03:00
kssenii
729eba52ea Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into zdikov-subquery-operators 2021-08-07 15:59:58 +00:00
董海镔
3dcff2124c rename bitmapSubsetOffsetLimit to subBitmap and modify the rb_offset_limit function logic 2021-08-07 18:47:33 +08:00
董海镔
c5beecd0aa update code style 2021-08-06 09:59:18 +08:00
Alexey Milovidov
638b229e27 Remove debug headers 2021-08-05 23:50:09 +03:00
Alexey Milovidov
9a5533a088 Improve performance 2021-08-05 23:44:14 +03:00
Alexey Milovidov
7fa700de00 Merge branch 'master' into roaring-memory-tracker 2021-08-05 22:17:10 +03:00
董海镔
e8b6c0a227 add bitmapSubsetOffsetLimit function 2021-08-06 00:44:07 +08:00
Ildus Kurbangaliev
fd15fc5e4a Fix style errors, disable heterogeneous comparison lookup where it's not supported 2021-08-05 21:10:51 +05:00
Ildus Kurbangaliev
95f5a4d0fa Optimize string keys and fix string serialization in map combinator 2021-08-05 21:10:51 +05:00
Ildus Kurbangaliev
5a5cb238d8 Map combinator: add more arguments checks, fix memory align errors, support more key types, add some docs and tests 2021-08-05 21:10:51 +05:00
Ildus Kurbangaliev
715766d7ec Move validations to transformArguments 2021-08-05 21:10:51 +05:00
Ildus Kurbangaliev
c85aa0a4d6 Fix offsets in insertResultInto for map combinator 2021-08-05 21:10:51 +05:00
Ildus Kurbangaliev
0570c9db3f Fix allocation in Map combinator 2021-08-05 21:10:51 +05:00
Ildus Kurbangaliev
03be2c3133 *MappedArrays will return old name for backwards compability 2021-08-05 21:10:50 +05:00
Ildus Kurbangaliev
030e5e625e add Map combinator 2021-08-05 21:10:50 +05:00
Jakub Kuklis
b9bb2b577b Simplifying couldMatchDeterministicParts 2021-08-05 11:34:39 +02:00
Jakub Kuklis
edac57b08d Correction for style guidelines 2021-08-05 09:34:30 +02:00
Nikita Mikhaylov
8920f98dd4 Added a state to AggregateFunctionNothing 2021-08-04 17:34:02 +00:00
Nikita Mikhaylov
3a00a7f56e Style 2021-08-04 17:34:02 +00:00
Nikita Mikhaylov
276fec96d1 Better code 2021-08-04 17:34:02 +00:00
hexiaoting
1b3fc31904 fix error 2021-08-04 17:34:02 +00:00
hexiaoting
2c7eeea55c Fix bug when using null-AggregateFunction 2021-08-04 17:34:02 +00:00
Jakub Kuklis
3f813e700d Code clearance 2021-08-04 11:03:58 +02:00
Jakub Kuklis
5abf24df9e No sorting if unnecessary 2021-08-04 11:03:58 +02:00
Jakub Kuklis
24db6494de Events conditions met using bitsets 2021-08-04 11:03:58 +02:00
Jakub Kuklis
6a39546e5b Removing default placed after an exhaustive sweep through enum values 2021-08-04 11:03:58 +02:00
Jakub Kuklis
2fad1dd8c5 Adding a break before default in switch 2021-08-04 11:03:58 +02:00
Jakub Kuklis
e3a96cc870 Checking whether all deterministic parts can be matched in the right order in sequenceMatch 2021-08-04 11:03:58 +02:00
Anton Popov
16ed0f6ed4 Merge remote-tracking branch 'upstream/master' into HEAD 2021-08-02 17:55:17 +03:00
kssenii
58b3a3f3fc Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into versioning 2021-07-29 19:56:27 +00:00
tavplubix
4a3ade1aa5
Merge pull request #26814 from ClickHouse/fix_lost_aggregate_function_parameters
Fix lost parameters of aggregate functions
2021-07-29 13:43:05 +03:00
Alexander Tokmakov
764701c3f3 allow mismatching parameters for some functions 2021-07-28 20:55:13 +03:00
Alexander Tokmakov
a5d27ba6ad fix another bug 2021-07-27 20:16:40 +03:00
Alexander Tokmakov
304c367912 fix groupUniqArray 2021-07-26 17:57:49 +03:00
Alexander Tokmakov
5c9f69ea17 fix parameters with combinators 2021-07-26 17:37:47 +03:00
Alexey Milovidov
16eba6f0e7 Miscellaneous 2021-07-23 02:22:01 +03:00
Alexey Milovidov
2df3e14559 Attempt to add memory tracking to RoaringBitmaps 2021-07-22 02:56:17 +03:00
Alexander Kuzmenkov
6ae4031723
Merge pull request #26521 from ClickHouse/aku/lag-in-frame-nullable
fix lagInFrame for nullable types
2021-07-21 14:10:16 +03:00
Alexander Kuzmenkov
dadf1e192e fix whitespace 2021-07-21 12:38:56 +03:00
Alexander Kuzmenkov
a197511a96 fixes 2021-07-21 01:36:15 +03:00
Amos Bird
9fdae29421
Fix groupBitmapAnd/Or/Xor name 2021-07-20 20:55:18 +08:00
Anton Popov
c4b454494f Merge remote-tracking branch 'upstream/master' into HEAD 2021-07-20 15:41:01 +03:00
Alexander Kuzmenkov
61a01782a6 fix lagInFrame for nullable types 2021-07-19 19:31:57 +03:00
Kseniia Sumarokova
b0ddc4fb30
Merge pull request #26364 from kssenii/fixing-date32
Continuation of #25774
2021-07-18 21:44:45 +03:00
alexey-milovidov
b52411a715
Merge pull request #12455 from amosbird/npc
Nullable primary key with correct KeyCondition
2021-07-18 17:52:20 +03:00
kssenii
3ba2d114d5 Revert "Merge pull request #26352 from ClickHouse/revert-25774-datatype-date32"
This reverts commit 94a210650f, reversing
changes made to 0893b9ff8e.
2021-07-15 11:41:52 +00:00
alexey-milovidov
9ba4064c86
Revert "Datatype Date32, support range 1925 to 2283" 2021-07-15 10:53:35 +03:00
Maksim Kita
e6c8100f63
Merge pull request #26248 from Algunenano/fast_nullable
Speed up addition of nullable integers with native representation
2021-07-12 21:20:45 +03:00
Kseniia Sumarokova
4a6b4d6c26
Merge pull request #25774 from liuneng1994/datatype-date32
Datatype Date32, support range 1925 to 2283
2021-07-12 20:33:39 +03:00
Raúl Marín
36bc22df98 Speed up addition of nullable native integers 2021-07-12 13:38:54 +02:00
Maksim Kita
dc81ae7c6e Compile AggregateFunctionBitwise 2021-07-10 01:51:34 +03:00
neng.liu
e47aadfdef Merge branch 'datatype-date32' of https://github.com/liuneng1994/ClickHouse into datatype-date32 2021-07-08 00:09:48 -07:00
neng.liu
100d30a5ba fix pr comment 2021-07-08 00:06:36 -07:00
Anton Popov
14168b11f2 Merge remote-tracking branch 'upstream/master' into HEAD 2021-07-07 17:05:11 +03:00
Maksim Kita
577e69898a Compile aggregate functions perf tests fix 2021-07-05 12:17:01 +03:00
NengLiu
8b88988618 Merge branch 'master' into datatype-date32
# Conflicts:
#	src/DataStreams/PostgreSQLBlockInputStream.cpp
2021-07-05 10:18:38 +08:00
NengLiu
dc0c65ef4f Merge remote-tracking branch 'origin/master' into datatype-date32 2021-07-05 10:15:08 +08:00
alexey-milovidov
fef7c557f6
Merge pull request #24789 from kitaisreal/compile-aggregation-functions
Compile aggregate functions
2021-07-05 02:57:49 +03:00
Maksim Kita
55220d49f9 Fixed code review issues 2021-07-03 16:29:32 +03:00
Alexey Milovidov
132edc9e22 Allow quantiles* functions to work with aggregate_functions_null_for_empty 2021-07-02 22:47:43 +03:00
Maksim Kita
b3e3a3cde0 Fixed tests 2021-07-02 16:36:02 +03:00
Alexey Milovidov
0e621788c7 Allow constexpr parameters for aggregate functions 2021-07-02 03:53:08 +03:00
Maksim Kita
97e1ddbe94 Fix before merge 2021-07-01 22:56:36 +03:00
Maksim Kita
39ca0ceb81 Fixed tests 2021-07-01 22:56:36 +03:00
Maksim Kita
31fe3dad7a Fixed tests 2021-07-01 22:56:36 +03:00
Maksim Kita
f33a38381d Fixed tests 2021-07-01 22:56:36 +03:00
Maksim Kita
92a36e38f1 AggregateFunctionAvgWeighted fix accuracy 2021-07-01 22:56:36 +03:00
Maksim Kita
22491c8adc Compile AggregateFunctionCount 2021-07-01 22:56:36 +03:00
Maksim Kita
61a5c4f493 Fix min, max aggregate functions merge 2021-07-01 22:56:36 +03:00