Commit Graph

1366 Commits

Author SHA1 Message Date
achimbab
316f6986cf Replaced the stat library with the boost library. 2021-12-30 07:24:07 +09:00
achimbab
760288590b Add confidence intervals to ttests 2021-12-28 23:49:51 +09:00
Nikita Mikhaylov
6d0881ead6 Fix 2021-12-24 14:00:36 +00:00
freedomDR
fbddbebca8 fix bitmapData rb_contain rb_remove 2021-12-24 06:21:13 +00:00
Nikita Mikhaylov
0d463ffc2d Fix build 2021-12-23 15:59:00 +00:00
Nikita Mikhaylov
768c746fe4
Merge branch 'master' into merging-dev-sum-bug 2021-12-23 11:52:06 +03:00
Maksim Kita
51477adf1b Updated additional cases 2021-12-20 15:55:07 +03:00
alexey-milovidov
d3a1ffd05d
Merge pull request #32529 from dmthuc/fix_groupBitmapAnd_function_distributed_table
fix groupBitmapAnd function on distributed table
2021-12-19 08:28:26 +03:00
Vladimir C
778cd76987
Merge pull request #32914 from vdimir/issue_32487 2021-12-18 10:18:51 +03:00
alexey-milovidov
8571501cf7
Update AggregateFunctionTopK.cpp 2021-12-18 07:49:35 +03:00
Dao
2fb554c61f increase version to resolve conflict with master branch 2021-12-17 23:09:08 +08:00
vdimir
1eb032ac83
Style AggregateFunctionTopK.cpp 2021-12-17 18:04:59 +03:00
minhthucdao
001900655e
Merge branch 'master' into fix_groupBitmapAnd_function_distributed_table 2021-12-17 23:03:47 +08:00
Dao
52af96627c introduce new version and add test 2021-12-17 22:59:02 +08:00
vdimir
5c487b3bdc
Fix types for topKWeightedState 2021-12-17 17:54:12 +03:00
Anton Popov
16312e7e4a Merge remote-tracking branch 'upstream/master' into HEAD 2021-12-14 18:58:17 +03:00
mergify[bot]
f5e2c38452
Merge branch 'master' into fix_groupBitmapAnd_function_distributed_table 2021-12-13 09:18:45 +00:00
Azat Khuzhin
837ff82312 Suppress UBSan errors for avg() function
CI: https://s3.amazonaws.com/clickhouse-test-reports/0/dd2ccd3b17e7c59ed9c8184f00f8dae85ee87d1f/fuzzer_astfuzzerubsan,actions//report.html
2021-12-10 22:23:39 +03:00
Dao
505fbc78c7 fix groupBitmapAnd function on distributed table 2021-12-11 00:18:11 +08:00
Anton Popov
d8367334a3 Merge remote-tracking branch 'upstream/master' into HEAD 2021-12-08 18:26:19 +03:00
tavplubix
6c16348faa
Fix division by zero in avgWeighted with Decimal argument (#32303)
* fix division by zero

* Update src/AggregateFunctions/AggregateFunctionAvg.h

Co-authored-by: Dmitry Novik <n0vik@clickhouse.com>

* remove trash

* Update AggregateFunctionAvg.h

Co-authored-by: Dmitry Novik <n0vik@clickhouse.com>
2021-12-07 13:32:26 +03:00
kssenii
5a273d4dda Update version 2021-12-02 08:02:07 +00:00
kssenii
8edf146687 Merge branch 'master' of github.com:ClickHouse/ClickHouse into versioning 2021-12-02 07:57:14 +00:00
kssenii
95f0cd47eb Fixes 2021-12-01 21:34:32 +00:00
Anton Popov
54f51444c0 Merge remote-tracking branch 'upstream/master' into HEAD 2021-12-01 15:49:02 +03:00
kssenii
71bfc72e37 Fix 2021-11-30 14:42:37 +00:00
Raúl Marín
f3a22166a1 Merge remote-tracking branch 'blessed/master' into speedup_avg_sumcount 2021-11-29 19:50:28 +01:00
kssenii
d81fd72895 Fix 2021-11-29 09:35:38 +00:00
Vladimir C
7a356bee44
Merge pull request #31806 from Algunenano/speedup_count 2021-11-29 10:48:40 +03:00
kssenii
be3b4ca8fe Merge branch 'master' of github.com:ClickHouse/ClickHouse into versioning 2021-11-27 09:44:31 +00:00
kssenii
515261f5dd Better 2021-11-27 09:40:46 +00:00
alexey-milovidov
d51cf591ed
Merge branch 'master' into CramersV 2021-11-27 00:47:40 +03:00
Raúl Marín
91bf938075 Reduce dependencies on ASTLiteral.h
590 -> 537
2021-11-26 17:54:57 +01:00
Raúl Marín
a22f7c159e Implement AggregateFunctionCountNotNullUnary::addBatchSinglePlace 2021-11-25 16:41:48 +01:00
Raúl Marín
b398a7bab6 Avg: Use countBytesInFilter 2021-11-25 13:50:04 +01:00
Vladimir C
e835671c88
Merge pull request #31624 from nicelulu/fix_sparkbar 2021-11-25 11:01:25 +03:00
zhangxiao871
f8190b7074 Fix min_x max_x and AST Fuzzer check 2021-11-24 23:25:30 +08:00
Raúl Marín
5dd3cc6595 Share code between Avg and SumCount 2021-11-24 13:13:54 +01:00
Raúl Marín
dde264cd53 Implement batching for SumCount 2021-11-24 11:14:31 +01:00
Raúl Marín
d2dcbdd1ee Implement batch operators for avg 2021-11-24 11:14:31 +01:00
tavplubix
7a43a87f5b
Use shard and replica name from Replicated database arguments (#31488)
* fix another issue

* use shard and replica name from Replicated database

* fix

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-11-23 12:41:54 +03:00
zhangxiao871
5f10159a7d Fix sparkbars are not aligned. 2021-11-22 18:07:08 +08:00
kssenii
1a9817f872 Correct merge 2021-11-18 07:56:10 +00:00
kssenii
37f482d478 Merge branch 'master' of github.com:ClickHouse/ClickHouse into versioning 2021-11-15 07:31:11 +00:00
Anton Popov
66973a2a28 Merge remote-tracking branch 'upstream/master' into HEAD 2021-11-08 21:27:45 +03:00
Yuriy Chernyshov
479ebc0652 Do not include unnecessary experimental/type_traits 2021-11-08 14:16:19 +03:00
Anton Popov
d50137013c Merge remote-tracking branch 'upstream/master' into HEAD 2021-11-01 16:55:53 +03:00
Kruglov Pavel
9f6af8501e
Fix build 2021-11-01 11:58:49 +03:00
mergify[bot]
00b1024d75
Merge branch 'master' into map_combinator 2021-10-29 13:36:47 +00:00
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
Maksim Kita
f17e212a72 Fixed build 2021-07-01 22:56:36 +03:00
Maksim Kita
7b3952adda Fixed tests 2021-07-01 22:56:36 +03:00
Maksim Kita
1e2f22a183 Aggregator compile part of aggregate functions 2021-07-01 22:56:36 +03:00
Maksim Kita
eb29490102 Fix AggregateFunctionAvg denominator type 2021-07-01 22:56:36 +03:00
Maksim Kita
e67198c144 Compile AggregateFunctionIfNull 2021-07-01 22:56:36 +03:00
Maksim Kita
507d9405e2 Compile AggregateFunctionAvgWeighted 2021-07-01 22:56:36 +03:00
Maksim Kita
56c1a4e447 Added tests 2021-07-01 22:56:36 +03:00
Maksim Kita
a7a7623b36 Fixed style check 2021-07-01 22:56:36 +03:00
Maksim Kita
44259736ed Compile AggregateFunctionMax 2021-07-01 22:56:36 +03:00
Maksim Kita
ddc96374c8 Compile AggregateFunctionMin 2021-07-01 22:56:35 +03:00
Maksim Kita
88d536ea5c Update compilation for AggregateFunctionAny, AggregateFunctionAnyLast 2021-07-01 22:56:35 +03:00
Maksim Kita
fdfb17370d Compile AggregateFunctionAnyLast 2021-07-01 22:56:35 +03:00
Maksim Kita
905f48ccce Compile AggregateFunctionAny 2021-07-01 22:56:35 +03:00
Maksim Kita
f93da5ed2b Compile AggregateFunctionNullUnary 2021-07-01 22:56:35 +03:00
Maksim Kita
f88d8ccb1f Compile AggregateFunctionAvg 2021-07-01 22:56:35 +03:00
Maksim Kita
a5ef0067b8 Compile AggregateFunctionIf 2021-07-01 22:56:35 +03:00
Maksim Kita
9b71b1040a Aggregate functions update compile interface 2021-07-01 22:56:35 +03:00
Maksim Kita
3fe559b31f Compile aggregate functions 2021-07-01 22:56:35 +03:00
tavplubix
b1263c18ee
Fix pcg deserialization (#24538)
* fix pcg deserialization

* Update 01156_pcg_deserialization.sh

* Update 01156_pcg_deserialization.sh

* Update 01156_pcg_deserialization.sh

* fix another bug

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: alexey-milovidov <milovidov@yandex-team.ru>
2021-06-24 10:40:00 +03:00
Alexey Milovidov
afeb562744 Small change in Roaring Bitmaps 2021-06-23 00:29:20 +03:00
Neng Liu
7ed1728a37 Merge branch 'master' into datatype-date32
# Conflicts:
#	src/DataTypes/IDataType.h
#	src/Functions/CustomWeekTransforms.h
2021-06-22 10:00:18 +08:00
Anton Popov
567043113c Merge remote-tracking branch 'upstream/master' into HEAD 2021-06-21 01:36:06 +03:00
Amos Bird
f2ed5ef42b
Nullable primary key with correct KeyCondition 2021-06-18 23:04:24 +08:00
neng.liu
45e9e9f8bb fix some compile problem 2021-06-17 08:08:29 -07:00
Vladimir
7a56ab8b1d
Merge pull request #25299 from mga-chka/equals_op_in_sequence_functions 2021-06-17 11:45:04 +03:00
Neng Liu
b6eab5fd2f add datetype32 function support 2021-06-17 16:05:30 +08:00
alexey-milovidov
0e16ddd7d9
Merge pull request #25313 from ClickHouse/fix-quantile-determinism
Fix behaviour of quantileDeterministic function
2021-06-17 01:24:52 +03:00
alexey-milovidov
5de9f6cdca
Merge pull request #25314 from ClickHouse/fix-ubsan-quantile-timing
Fix UBSan report in quantileTiming
2021-06-17 01:24:24 +03:00
Maksim Kita
67e9b85951 Merge ext into common 2021-06-16 23:28:41 +03:00
Anton Popov
6b264618aa
Merge pull request #25298 from Avogar/fix-min-map
Fix Logical Error in min/maxMap
2021-06-16 12:26:29 +03:00
Alexey Milovidov
d1bba10be0 Fix UBSan report in quantileTiming 2021-06-16 10:38:36 +03:00
Alexey Milovidov
ea7b5497c0 Fix behaviour of quantileDeterministic function 2021-06-16 09:50:21 +03:00
mergify[bot]
7959d92029
Merge branch 'master' into minor-changes-3 2021-06-15 18:07:24 +00:00
christophe.kalenzaga
2dae69a40b add == operators in sequence*() aggregate fuctions 2021-06-15 18:58:20 +02:00
Pavel Kruglov
7b9c8edaf5 Fix Logical Error in min/maxMap 2021-06-15 19:24:18 +03:00
Alexey Milovidov
447d7bb8cd Minor changes 2021-06-14 07:13:35 +03:00
Alexey Milovidov
dbff1edcd3 Fix memory tracking of aggregate function topK 2021-06-14 05:26:05 +03:00
Alexey Milovidov
93b907931d Fix the annoying ya.make. 2021-06-13 21:21:44 +03:00
alexey-milovidov
05d1af153c
Merge branch 'master' into rename-const-context-ptr 2021-06-12 03:25:09 +03:00
antikvist
2f54ed2c19 fixes 2021-06-11 01:11:41 +03:00
alexey-milovidov
7616216f10
Merge pull request #25015 from ClickHouse/fix-wrong-code-in-aggregate-functions
Remove a chunk of wrong code and look what will happen
2021-06-11 00:36:35 +03:00
Alexey Milovidov
6925105ba4 Give up 2021-06-10 02:18:50 +03:00
alexey-milovidov
4f54864a91
Merge branch 'master' into CramersV 2021-06-10 00:53:56 +03:00
antikvist
40ce278af5 add new aggregate functions 2021-06-10 00:14:36 +03:00
Alexey Milovidov
e1dd694830 Review fixes 2021-06-09 14:05:36 +03:00
Alexey Milovidov
e43105dac1 Fix wrong code in SerializationAggregateFunction 2021-06-09 02:40:29 +03:00
Maksim Kita
8e88e682c1
Merge pull request #25066 from kitaisreal/aggregate-function-any-heavy-data-use-fixed-size-type
AggregateFunctionAnyHeavyData use fixed size type
2021-06-08 21:59:19 +03:00
Maksim Kita
efc8ecf982 AggregateFunctionAnyHeavyData use fixed size type 2021-06-08 10:29:18 +03:00
Alexey Milovidov
14ef6f4039 Review fixes 2021-06-08 03:11:36 +03:00
Alexey Milovidov
d6513b22cb Merge remote-tracking branch 'origin/master' into fix-wrong-code-in-aggregate-functions 2021-06-08 03:08:03 +03:00
Anton Popov
b3b29be02f Merge remote-tracking branch 'upstream/master' into HEAD 2021-06-07 19:03:24 +03:00
mergify[bot]
b8dcce68b5
Merge branch 'master' into rename-const-context-ptr 2021-06-07 09:46:24 +00:00
Kruglov Pavel
ee683ea90e
Merge pull request #24729 from vdimir/segment-lenght-sum-fixes
Minor fixes in AggregateFunctionSegmentLengthSumData
2021-06-07 11:01:29 +03:00
Alexey Milovidov
e275fc9c29 Fix trash 2021-06-07 03:15:11 +03:00
Alexey Milovidov
406285dad1 Regenerate ya.make 2021-06-07 01:31:08 +03:00
Alexey Milovidov
710bf3c9c4 Add missing file 2021-06-07 01:30:27 +03:00
Alexey Milovidov
885ce194e0 Making fundamentals correct 2021-06-07 00:49:55 +03:00
Alexey Milovidov
84ced3ace0 Deliberately break the rules 2021-06-06 19:43:15 +03:00
Alexey Milovidov
6a652ef4f6 Remove a chunk of wrong code and look what will happen 2021-06-06 19:28:54 +03:00
Kirill Ershov
289c5d3ad6
Add SingleValueOrNull aggregate function 2021-06-04 18:55:46 +03:00
mergify[bot]
d68d5e0ef1
Merge branch 'master' into rename-const-context-ptr 2021-06-04 14:41:41 +00:00
Nikita Mikhaylov
af32228e9f
Merge pull request #24523 from Algunenano/i24461
Fix crash when chaining uniqStates
2021-06-04 17:26:34 +03:00
vdimir
bfb2b4838d
Remove not working DateTime64 support from AggregateFunctionIntervalLengthSum 2021-06-04 09:12:59 +03:00
vdimir
fbd8640911
Update AggregateFunctionIntervalLengthSum: exception messages, add support DateTime64 2021-06-04 09:09:06 +03:00
vdimir
494ee6eb41
Rename segmentLengthSum -> intervalLengthSum 2021-06-04 09:09:05 +03:00
vdimir
d8ba6167e9
Minor fixes in AggregateFunctionSegmentLengthSumData 2021-06-04 09:09:05 +03:00
Kruglov Pavel
8acf031c1b
Merge pull request #24398 from Avogar/fix-deltasum
Fix logical error AggregateFunctionFactory returned nullptr
2021-06-03 19:40:06 +03:00
kssenii
a2997535e1 Small improvement 2021-06-03 11:31:02 +00:00
kssenii
b209893cd1 Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into versioning 2021-06-03 11:30:47 +00:00
vdimir
dcc24c8816
fix style AggregateFunctionWindowFunnel.cpp 2021-06-02 11:57:01 +03:00
vdimir
1b936c8af6
Remove example usage of allow_experimental_funnel_functions from windowFunnel 2021-06-02 09:16:21 +03:00
Nikolai Kochetov
dbaa6ffc62 Rename ContextConstPtr to ContextPtr. 2021-06-01 15:20:52 +03:00
achimbab
7eeea06845 sequenceNextNode() uses settings passed by creator. 2021-06-01 20:32:40 +09:00
kssenii
7453d0ce58 Fxi checks 2021-06-01 08:45:04 +00:00
achimbab
99a5f1506a Merge remote-tracking branch 'origin' into pr_sequenceNextNode 2021-06-01 17:25:24 +09:00
kssenii
e510c3839e More correct 2021-05-31 22:09:54 +00:00
Anton Popov
018a303387 Merge remote-tracking branch 'upstream/master' into HEAD 2021-05-31 23:08:04 +03:00
kssenii
d18609467b First version 2021-05-30 13:57:30 +00:00
Alexander Kuzmenkov
3f57fc085b remove mutable context references from functions interface
Also remove it from some visitors.
2021-05-28 19:45:37 +03:00
Pavel Kruglov
42d57138f2 replace all isDateOrDateTime invocations to explicit calls to isDate and isDateTime and isDateTime64 2021-05-28 15:34:49 +03:00
Pavel Kruglov
c34d8ae7e7 Fix logical error AggregateFunctionFactory returned nullptr 2021-05-28 14:58:16 +03:00
Alexander Kuzmenkov
9fc51aef68 fix 2021-05-27 21:39:52 +03:00
Alexander Kuzmenkov
1c6479a7d9 Merge remote-tracking branch 'origin/aku/pure-window-or-null' into HEAD 2021-05-27 21:39:43 +03:00
Alexander Kuzmenkov
1c21281456 do not auto-apply -OrNull combinator to pure window functions 2021-05-27 18:21:08 +03:00
Vladimir
fc15cad7e0
Pass Settings to aggregate function creator 2021-05-26 14:58:31 +03:00
Raúl Marín
d9bc0266f7 Add missing error codes to fix style check 2021-05-26 13:48:33 +02:00
Vladimir
7224e25156
Revert "Pass Settings to aggregate function creator" 2021-05-26 14:46:42 +03:00
Vladimir
6650c67b01
Merge pull request #22762 from vdimir/create-aggregate-func-settings 2021-05-26 14:32:14 +03:00
Raúl Marín
46787bf51f Disallow building a uniqXXXXState on top of another aggregation state
Fixes https://github.com/ClickHouse/ClickHouse/issues/24461
2021-05-26 13:15:03 +02:00
Anton Popov
3e92c7f61a Merge remote-tracking branch 'upstream/master' into HEAD 2021-05-25 21:45:19 +03:00
Maksim Kita
3aa1dba6e1 Added AggregateFunctionSegmentLengthSum to ya.make 2021-05-22 00:13:27 +03:00
alexey-milovidov
7b38ad3a85
Merge pull request #23204 from RedClusive/feature-quantileBfloat16
Feature quantile bfloat16
2021-05-21 23:46:05 +03:00
Alexey Milovidov
2b01b46b25 Add comment 2021-05-21 09:33:00 +03:00
Alexey Milovidov
792dbbe6ae Refinements 2021-05-21 09:30:13 +03:00
Anton Popov
de4afb0cb9 ColumnSparse: add comments 2021-05-21 03:57:11 +03:00
vdimir
09d63545b0
Return float in segmentLengthSum for float args, add tests 2021-05-20 17:43:24 +03:00
feng lv
9de7399737 update
fix test
2021-05-19 14:51:54 +00:00
feng lv
5e4cde8540 fix 2021-05-19 10:24:53 +00:00
feng lv
6c064d62e9 add rangeSum udaf
fix
2021-05-18 12:48:08 +00:00
RedClusive
5e725510e7 Merge branch 'master' of github.com:ClickHouse/ClickHouse into feature-quantileBfloat16 2021-05-15 15:03:47 +00:00
Anton Popov
d8df0903b9 Merge remote-tracking branch 'upstream/master' into HEAD 2021-05-14 23:38:16 +03:00
Anton Popov
8ae1533f8f better serialization in native format 2021-05-14 23:29:48 +03:00
Pavel Kruglov
704bbe0aeb Raname uniqThetaSketch to uniqTheta 2021-05-11 17:39:35 +03:00
vdimir
7ccf47cdfd
Add Settings to AggregateFunctionSumCount/AggregateFunctionDeltaSumTimestamp 2021-05-11 12:22:00 +03:00
Kruglov Pavel
fb038c1985
Merge pull request #23894 from pingyu/datasketches-uniq-again
Add uniqThetaSketch again
2021-05-11 11:24:43 +03:00
vdimir
905e54a0af
Merge branch 'master' into create-aggregate-func-settings 2021-05-11 11:18:24 +03:00
Alexey Milovidov
f6be177540 Add TODO 2021-05-08 23:07:19 +03:00
Alexey Milovidov
e81eadab59 Support UUID and UInt256 in aggregate functions 2021-05-08 23:07:04 +03:00
Alexey Milovidov
604daa9581 Fix a bunch of warnings from PVS-Studio 2021-05-08 19:09:17 +03:00
Alexey Milovidov
2fbecf36ca More fixes for PVS-Studio 2021-05-08 18:20:40 +03:00
Alexey Milovidov
eeaf65c043 Fix low quality code in Qualtile (found by PVS-Studio) 2021-05-08 17:05:58 +03:00
Alexey Milovidov
9d9256d499 Suppressions for PVS-Studio 2021-05-08 17:01:25 +03:00
Alexey Milovidov
06e79e914c Overcome gcc limitation 2021-05-08 03:29:51 +03:00
Alexey Milovidov
923d20a70e Refuse to support covar/corr for extended numberic types (speedup build) 2021-05-08 01:16:17 +03:00
Alexey Milovidov
cc4f55b732 Miscellaneous 2021-05-07 01:38:33 +03:00
Alexey Milovidov
b461542388 If for UUID 2021-05-06 18:45:58 +03:00
Alexey Milovidov
2c9ae14cb0 Add 256 bit integers in some places 2021-05-06 03:31:09 +03:00
pingyu
46f809d07f Revert "Merge pull request #23334 from ClickHouse/revert-22609-datasketches-uniq"
This reverts commit af2499359b, reversing
changes made to db82e9e3d5.
2021-05-05 16:42:57 +08:00
Alexey Milovidov
43bd37b6cc Fix style 2021-05-04 02:46:11 +03:00
Alexey Milovidov
02ce9cc725 Untangle UUID 2021-05-04 01:46:51 +03:00
Alexey Milovidov
1fda866881 Merge branch 'master' into normalize-bigint 2021-05-02 21:24:45 +03:00
Maksim Kita
318c4bb80d Add examples folder filter to ya.make.in 2021-04-30 11:25:52 +03:00
RedClusive
f77506c9de remove useless includes 2021-04-28 14:59:31 +00:00
RedClusive
de2523cabd add weight and change logic 2021-04-28 14:54:10 +00:00
alexey-milovidov
fdc5a44202
Merge pull request #23644 from nikitamikhaylov/delete-unit-tests
Move non gtest unit tests to /examples folder
2021-04-28 07:28:18 +03:00
Nikolai Kochetov
5837fdabf2
Merge pull request #23681 from ClickHouse/devirt-agg-merge
A little bit faster merge of aggregating states.
2021-04-27 20:25:52 +03:00
RedClusive
6ee46fe936 fix style 2021-04-27 10:46:16 +00:00
Nikita Mikhaylov
02a53ff2c0
Merge pull request #23654 from nikitamikhaylov/mann-whitney-bug
`mannWhitneyUTest` same values in both samples
2021-04-27 13:42:52 +03:00
Nikolai Kochetov
5570b56cc3 A little bit faster merge of aggregating states. 2021-04-27 12:01:58 +03:00
RedClusive
6766dddbf4 fix logic 2021-04-27 07:40:29 +00:00
alexey-milovidov
013555907c
Merge pull request #23314 from excitoon-favorites/tdigest
Fixed `quantile(s)TDigest` inaccuracies
2021-04-27 06:57:44 +03:00
alexey-milovidov
b9337eac4c
Update QuantileTDigest.h 2021-04-27 06:56:13 +03:00
Nikita Mikhaylov
710921dc46 fix tests 2021-04-27 02:12:15 +03:00
Nikita Mikhaylov
9f55424250 move to examples everywhere 2021-04-27 01:51:42 +03:00
Nikita Mikhaylov
7dc0f27c88 done 2021-04-26 21:07:30 +03:00
RedClusive
8ed90864cb refactored 2021-04-26 09:39:08 +00:00
Kruglov Pavel
cb0bd3df5f
Merge pull request #21888 from rf/rf/deltasum-with-timestamp
add `deltaSumTimestamp` + docs, tests & minor improvement to `deltaSum`
2021-04-26 11:26:50 +03:00
Vladimir
fd777bcd4b
Merge branch 'master' into create-aggregate-func-settings 2021-04-26 11:12:09 +03:00
Vladimir Chebotarev
523f8f1743 Added clarification. 2021-04-26 10:21:06 +03:00
Vladimir Chebotarev
1febe4071e Style fix. 2021-04-26 10:21:06 +03:00
Vladimir Chebotarev
a5ed193d93 Added singletons to quantilesTDigest. 2021-04-26 10:21:06 +03:00
Vladimir Chebotarev
3911ef40e1 Added singletons to quantileTDigest. 2021-04-26 10:21:05 +03:00
Vladimir Chebotarev
7cac69c9a2 Removed perfect aggregation in quantileTDigest. 2021-04-26 10:21:05 +03:00
Alexey Milovidov
76a5d023e0 Attempt to normalize big integers 2021-04-25 12:51:18 +03:00
Alexey Milovidov
8f01af62d9 Merge branch 'master' into normalize-bigint 2021-04-25 06:57:44 +03:00
Alexey Milovidov
4ff812db7f Maybe better support for paths with whitespaces 2021-04-24 22:47:52 +03:00
RedClusive
dbb0a4aab7 fix style 2021-04-24 19:11:56 +00:00
Russ Frank
bc8581a4f0 fix style 2021-04-23 11:51:40 -04:00
Russ Frank
2e56bc2599 dont only add sum if edge difference is >0 2021-04-22 16:43:41 -04:00
Russ Frank
ce31a6e830 remove trailing whitespace 2021-04-22 16:41:20 -04:00
Russ Frank
de0155cf27 finish merge 2021-04-22 15:46:22 -04:00
Russ Frank
41546e0d4f Merge branch 'master' of github.com:ClickHouse/ClickHouse into rf/deltasum-with-timestamp 2021-04-22 11:23:24 -04:00
Russ Frank
1041bce10f add allocates in arena method 2021-04-22 11:22:21 -04:00
Maksim Kita
ceaf6d57b7
Merge pull request #23393 from ClickHouse/revert-17359
Revert argMin/Max for single Tuple argument.
2021-04-22 13:32:04 +03:00
Russ Frank
53f6a8f9a0 Merge remote-tracking branch 'origin/master' into rf/deltasum-with-timestamp 2021-04-21 13:52:50 -04:00
Russ Frank
822fc9b110 deltasum counter reset bugfix & test 2021-04-21 09:52:53 -04:00
Anton Popov
a842a599c4 ColumnSparse: fixes and better performance 2021-04-21 03:23:02 +03:00
Alexey Milovidov
054da0ea34 Revert #17359 2021-04-21 00:23:47 +03:00
Alexey Milovidov
502bc3575c Revert #17359 2021-04-21 00:22:29 +03:00
Anton Popov
0b65552e63 ColumnSparse: fixes 2021-04-20 17:20:39 +03:00
Anton Popov
aea93d9ae5 Merge remote-tracking branch 'upstream/master' into HEAD 2021-04-20 15:16:12 +03:00
alexey-milovidov
62899436db
Revert "add uniqThetaSketch" 2021-04-20 03:34:21 +03:00
Russ Frank
4a742a17be feedback on deltasumtimestamp 2021-04-19 18:28:31 -04:00
Alexey Milovidov
4ad4dbbc09 Regenerate Arcadia 2021-04-19 23:26:23 +03:00
alexey-milovidov
4cef8c68f7
Merge pull request #23258 from azat/wundef
Add -Wundef for gcc builds
2021-04-19 22:45:22 +03:00
Alexander Kuzmenkov
2a4bcb6e3f
Merge pull request #23159 from ClickHouse/aku/merge-fusecount
merging sumCount fusion PR #21337
2021-04-19 16:47:13 +03:00
Azat Khuzhin
2561a67fd8 Replace !__clang__ with !defined(__clang) to fix gcc builds
$ gg 'if !__clang__' | cut -d: -f1 | sort -u | xargs sed -i 's/#if !__clang__/#if !defined(__clang__)/g'
2021-04-18 23:37:50 +03:00
vdimir
7c237113d5
Fix style in AggregateFunctionMaxIntersections, AggregateFunctionWindowFunnel 2021-04-16 15:52:49 +03:00
Anton Popov
6ce875175b Merge remote-tracking branch 'upstream/master' into HEAD 2021-04-16 02:08:20 +03:00
redclusive
f286692497 fix typo 2021-04-15 20:13:45 +03:00
redclusive
8737c533c0 fix logic 2021-04-15 20:07:14 +03:00
redclusive
d8af0c5a23 fix typo 2021-04-15 17:45:11 +03:00
redclusive
be547193ae fix add method 2021-04-15 17:30:41 +03:00
Pavel Kruglov
847cd54c6b Add Y_IGNORE to includes 2021-04-15 15:06:40 +03:00
vdimir
33a9189151
Merge remote-tracking branch 'upstream/master' into create-aggregate-func-settings 2021-04-15 13:41:21 +03:00
vdimir
a2f1bde5cc
Pass Settings to all aggregate function creator 2021-04-15 13:39:59 +03:00
vdimir
48ab5f947b
Revert "Pass Settings to aggregate function creator"
This reverts commit ebc846b9f8.
2021-04-15 12:53:42 +03:00
redclusive
8db89e493b fix styles 2021-04-15 00:06:22 +03:00
redclusive
043af0a5ca add quantileBfloat16 2021-04-14 23:38:56 +03:00
hexiaoting
89d74e40ed Fix error for derived class 2021-04-14 16:45:05 +08:00
Kruglov Pavel
6350f734dc
Merge branch 'master' into datasketches-uniq 2021-04-13 19:34:15 +03:00
pingyu
8244e9fc94 address comments 2021-04-13 23:09:05 +08:00
hexiaoting
15f3a441e3 Fix error 2021-04-13 11:41:43 +08:00
hexiaoting
77c460e8d1 Merge remote-tracking branch 'origin/master' into dev-sumcount 2021-04-13 11:14:14 +08:00
Pavel Kruglov
baccd09efe Fix synchronization 2021-04-12 13:05:46 +03:00
vdimir
f2c109cc86
Merge branch 'master' into create-aggregate-func-settings 2021-04-12 11:38:20 +03:00
vdimir
f022f0744b
Add setting allow_experimental_funnel_functions and use in windowFunnel 2021-04-12 11:35:07 +03:00
Azat Khuzhin
0bf6b61b59 Fix combinators with common prefix name (State and SimpleState) with libstdc++
Previously sort order of the std::unordered_map in libstdc++ was
different and any *SimpleState() reports an error that function does not
exists.

Fix this by using proper order in container, and use std::vector over
std::unordered_map, since there linear traversing anyway in the single
method -- tryFindSuffix()

Note that test is not required, since it either fail with unknown
function or not.
2021-04-11 22:10:02 +03:00
pingyu
251804e9aa fix style check error 2021-04-11 14:23:39 +08:00
Ivan
495c6e03aa
Replace all Context references with std::weak_ptr (#22297)
* Replace all Context references with std::weak_ptr

* Fix shared context captured by value

* Fix build

* Fix Context with named sessions

* Fix copy context

* Fix gcc build

* Merge with master and fix build

* Fix gcc-9 build
2021-04-11 02:33:54 +03:00
pingyu
df78a1b3fd address review comments 2021-04-10 23:00:34 +08:00
Maksim Kita
8b34a54c2d
Merge pull request #22938 from kitaisreal/aggregate-function-allocates-memory-in-arena-default-impl-fix
IAggreagteFunction allocatesMemoryInArena removed default implementation
2021-04-10 14:08:59 +03:00
Maksim Kita
d9e9224188 IAggreagteFunction allocatesMemoryInArena removed default implementation 2021-04-09 20:12:06 +03:00
Nikita Mikhaylov
86933749bd done 2021-04-09 00:22:18 +03:00
achimbab
d13d69e246 Add allow_experimental_funnel_functions and fix argument order of sequenceNextNode 2021-04-08 00:26:51 +09:00
vdimir
ebc846b9f8
Pass Settings to aggregate function creator 2021-04-07 16:48:34 +03:00
Anton Popov
d46958a8d2 Merge remote-tracking branch 'upstream/master' into HEAD 2021-04-06 00:54:49 +03:00
pingyu
e05ee09621 Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into datasketches-uniq 2021-04-05 16:47:53 +08:00
pingyu
1ea74a1947 bug fix. add unit tests.# 2021-04-04 22:22:47 +08:00
Alexey Milovidov
54caa61af5 Fix comments 2021-04-04 12:33:06 +03:00
achimbab
63dc35780e More parameter checking and remove a useless function 2021-04-02 11:58:58 +09:00
Anton Popov
2a7a77e0a2 ColumnSparse: support of functions 2021-04-01 21:18:28 +03:00
vdimir
24c5241433
Minor style fixes in AggregateFunctionSequenceNextNode 2021-04-01 18:19:36 +03:00
pingyu
86d8bc1c54 Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into datasketches-uniq 2021-04-01 12:35:24 +08:00
alexey-milovidov
971167c68f
Merge pull request #22328 from CurtizJ/remove-code
Remove useless code
2021-03-30 13:14:00 +03:00
achimbab
7dd671fa8e Merge remote-tracking branch 'origin/master' into HEAD 2021-03-30 10:31:43 +09:00
alexey-milovidov
a6959584d5
Merge pull request #22235 from ClickHouse/quantile-deterministic-msan
Fix MSan report in `quantileDeterministic`
2021-03-30 03:48:58 +03:00
Anton Popov
43d9972f18 remove useless code 2021-03-30 01:34:02 +03:00
Anton Popov
5ada14082f
Merge pull request #22025 from vdimir/window-funncel-strict-increase
Add option strict_increase to windowFunnel
2021-03-30 01:20:17 +03:00
Anton Popov
372a1b1fe7 Merge remote-tracking branch 'upstream/master' into HEAD 2021-03-29 19:57:49 +03:00
Anton Popov
577d571300 ColumnSparse: initial implementation 2021-03-29 19:54:24 +03:00
Alexey Milovidov
f7662df06f Fix gcc build 2021-03-29 19:30:53 +03:00
Alexey Milovidov
c374be3ead Merge branch 'master' into quantile-deterministic-msan 2021-03-29 19:28:32 +03:00
achimbab
92ea481ee6 Merge remote-tracking branch 'origin/master' into HEAD 2021-03-29 17:57:09 +09:00
achimbab
808da33913 Include bitset and rename test 2021-03-29 17:52:51 +09:00
Alexey Milovidov
922265d28d Fix MSan report; add a test 2021-03-29 04:03:11 +03:00
pingyu
1ac42e003c wip #14893 2021-03-29 00:46:50 +08:00
pingyu
48b745206c wip #14893 2021-03-28 11:49:49 +08:00
Anton Popov
6a15431be7 Merge remote-tracking branch 'upstream/master' into HEAD 2021-03-25 15:57:35 +03:00
hexiaoting
90548d9c85 ReImplement AggregateFunctionSumCount 2021-03-25 11:15:03 +08:00
Russ Frank
fb68adc643 Merge remote-tracking branch 'origin' into rf/deltasum-with-timestamp 2021-03-23 15:24:32 -04:00
vdimir
38a6dba3e3
Add option strict_increase to windowFunnel 2021-03-23 14:23:48 +03:00
Alexander Kuzmenkov
d40f781b9a Merge origin/master into tmp (using imerge) 2021-03-22 23:27:18 +03:00
Alexander Kuzmenkov
77a2f03d3b prevent accidental reinterpret_cast in Field::get<> 2021-03-22 23:23:44 +03:00
achimbab
a4e9cf26b0 Fix reverse indexing of TAIL in serialize() 2021-03-19 17:43:20 +09:00
Russ Frank
91715cb597 fix style 2021-03-18 17:50:32 -04:00
Russ Frank
29043e1adf remove trailing whitespaces 2021-03-18 16:46:39 -04:00
Nikolai Kochetov
66d5968cbc Batch aggregation for overflow rows. 2021-03-18 12:31:14 +03:00
achimbab
e8a435d2fb Add base condition 2021-03-18 11:00:09 +09:00
Russ Frank
e4f1cf530d add deltaSumTimestamp AggregateFunction, docs&test 2021-03-17 13:42:53 -04:00
Russ Frank
521fea62ef remove uneeded bool in deltaSum impl 2021-03-17 13:41:10 -04:00
Anton Popov
81ac6382a3 slightly better performance 2021-03-13 21:05:18 +03:00
achimbab
bf01eeb883 Fix a bug in sequenceNextNode 2021-03-11 16:44:02 +09:00
achimbab
1ec927e766 Fix special-build-failure and add argument validation 2021-03-11 12:48:24 +09:00
achimbab
34ccad75dc Remove insertion_requires_nullable_column 2021-03-10 21:14:30 +09:00
achimbab
e41c731f0f Change the behavior of sequenceNextNode. 2021-03-10 21:08:35 +09:00
Anton Popov
bc417cf54a refactoring of serializations 2021-03-09 17:46:52 +03:00
vdimir
f32a388fed
Minor changes, add comments 2021-03-09 16:56:29 +03:00
vdimir
5808bf24e2
Fix strict weak ordering, return always lower string in sequenceNextNode 2021-03-09 16:40:32 +03:00
vdimir
07dc7e81e3
Remove MAX_EVENTS_SIZE from AggregateFunctionSequenceNextNode.h 2021-03-09 16:39:06 +03:00
achimbab
4965312849 Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into HEAD 2021-03-07 22:53:42 +09:00
achimbab
a6c7ddbcdf Fix comparator 2021-03-07 22:52:23 +09:00
philip.han
fad1a4ccb3 Fix comparator of sequenceNextNode for more deterministic sorting 2021-03-05 21:46:09 +09:00
hexiaoting
4fe75ad168 fix error 2021-03-03 17:18:53 +08:00
hexiaoting
e116346cbb Merge remote-tracking branch 'origin/master' into dev-sumcount 2021-03-02 10:11:50 +08:00
Maksim Kita
7ed5900251
Updated style 2021-03-01 19:18:56 +03:00
Maksim Kita
019a2090c7
Fix unused variable 2021-03-01 19:18:14 +03:00
Maksim Kita
3764a2a2be AggregateFunctionSumMap better comment message 2021-03-01 19:15:59 +03:00
hexiaoting
8cd5c36664 Fix style error 2021-03-01 18:10:38 +08:00
hexiaoting
16333e9f3a Suppport fuse aggregate functions:sum/avg/count to sumCount 2021-03-01 18:04:34 +08:00
achimbab
ee5d76a82b Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into HEAD 2021-02-27 18:33:13 +09:00
achimbab
66e9098e4e Fix comparator of NodeString 2021-02-26 14:56:59 +09:00
achimbab
7dc4b6d58e Add comments and fix AggregateFunctionSequenceNextNode 2021-02-25 19:31:20 +09:00
alexey-milovidov
89884797ab
Merge pull request #20879 from vitlibar/reservoir-sample-deterministic-ubsan-fix
Fix undefined-behavior in ReservoirSamplerDeterministic.h
2021-02-24 21:46:42 +03:00
vdimir
6f28b6c4a6
Minor changes in AggregateFunctionSequenceNextNode 2021-02-24 17:23:52 +03:00
vdimir
74f6ab798f
Add __restrict modifier to AggregateFunctionSequenceNextNode 2021-02-24 14:52:39 +03:00
alexey-milovidov
cb8cfdba77
Merge branch 'master' into fffix 2021-02-22 23:08:44 +03:00
alexey-milovidov
20a7ccf5b1
Merge pull request #20174 from amosbird/alias
Normalized function names (lower-case case-insensitive names)
2021-02-21 16:23:51 +03:00
alexey-milovidov
04f5b72391
Merge pull request #20995 from amosbird/ubsanfix2
Suppress signed overflow in AggregateFunctionGroupArrayMoving 2
2021-02-20 14:25:36 +03:00
Maksim Kita
c5643c47d0
Merge pull request #20970 from kitaisreal/function-sum-map-decimal-fix
Function sumMap decimal fix
2021-02-20 13:43:12 +03:00
Amos Bird
487fb09ff6
Suppress signed overflow in AggregateFunctionGroupArrayMoving 2 2021-02-20 14:11:01 +08:00
Maksim Kita
fc03c1013c
Fixed style check 2021-02-19 20:42:51 +03:00
Maksim Kita
0b5213c80d
Added comment 2021-02-19 19:49:19 +03:00
Maksim Kita
b84112a603 Function sumMap decimal fix 2021-02-19 19:25:50 +03:00
Vitaly Baranov
556dc81ab9 Fix undefined-behavior in ReservoirSamplerDeterministic.h 2021-02-18 16:32:01 +03:00
Amos Bird
77fd060665
Normalize function names 2021-02-18 20:20:28 +08:00
achimbab
717ba4364b Merge remote-tracking branch 'origin/master' into HEAD 2021-02-18 21:20:02 +09:00
achimbab
3409aea6f6 Fix registerAggregateFunctions.cpp 2021-02-18 21:18:44 +09:00
achimbab
44fddb2c29 Add some comments 2021-02-18 20:36:29 +09:00
Anton Popov
dcba99f4b1 fix usage of 'distinct' combinator with 'state' combinator 2021-02-18 02:19:58 +03:00
alexey-milovidov
a0fbc0656b
Merge pull request #20206 from ClickHouse/tavplubix-patch-3
Suppress signed overflow in AggregateFunctionGroupArrayMoving
2021-02-14 03:32:16 +03:00
Alexander Kuzmenkov
716a3df6eb
Merge pull request #20337 from ClickHouse/aku/window-prototype
window function rank() and friends
2021-02-13 03:03:49 +03:00
Alexander Kuzmenkov
d8f9a8d3cd first_value and last_value 2021-02-11 18:41:54 +03:00
Alexander Kuzmenkov
525400bc41 window function rank() and friends 2021-02-11 16:29:30 +03:00
Maksim Kita
86ff45c50e Aggregate function deltaSum use restrict keyword 2021-02-10 19:19:48 +03:00
Maksim Kita
85396fc82e
Merge pull request #20057 from rf/rf/add-deltasum
Add `deltaSum` aggregate function, docs & test
2021-02-10 13:28:48 +03:00
Russ Frank
6b80ae6c4f style fixes 2021-02-09 15:01:57 -05:00
Maksim Kita
a2560cecf4
Merge branch 'master' into fuse 2021-02-09 18:30:18 +03:00
Russ Frank
2cde36a155 dont allow col type to be decimal 2021-02-08 22:53:45 -05:00
Russ Frank
b297e0ef36 feedback: use references, dont support decimal, rearrange struct members 2021-02-08 22:51:03 -05:00
Russ Frank
746dc1ddae Merge remote-tracking branch 'origin/master' into rf/add-deltasum 2021-02-08 15:35:16 -05:00
lehasm
363aefb42e
DOCSUP-3908: mannWitneyUTest, welchTTest and studentTTest documentation (#19784)
* studentTTest function description

* welchttest description, links in studentttest

* mannWhitneyUTest description

* Text changed slightly

* Text changed slightly

* Text changed slightly

* Text changed slightly

* - First header is first level.
- sample_index type set to UInt64.
- Return values renamed.

- mannWhitneyUTest:
  - added continuity_correction parameter
  - optional parameters wrapped in braces [ ]
  - description refactored
  - example SQL placed on single line

* Improved formulations (hopefully)
General data type names used (Integer, Float, Decimal)
Removed names from return values

* Fixes

* Optional parameters stated explicitly

* New line at the end of files

* Russian function description

* Files moved in the right folder

* Translated 'Original article' to russian

* Typos are fixed

* fixed alowed parameter value: "two sided" -> "two-sided"
* duplicate word "require" is removed from exception messages

* mannWhitneyUTest description changed
Added Tuple link in return values
"samples from two populations" added in short descriptions

* Russian translation updated

* fix

Co-authored-by: Alexey Smirnov <alexey-sm@yandex-team.ru>
2021-02-08 15:58:27 +03:00
tavplubix
2daa403201
Update AggregateFunctionGroupArrayMoving.h 2021-02-08 14:59:51 +03:00
Amos Bird
1b32292dd0
bitmap function for all native integers 2021-02-07 11:32:54 +08:00
Russ Frank
2f31eabc13 turn off ubsan for deltasum functions 2021-02-04 21:22:05 -05:00
Russ Frank
bcf5a70e4f check arg type 2021-02-04 14:28:45 -05:00
Russ Frank
2bfeef23cf correct merge logic 2021-02-04 11:55:19 -05:00
Alexey Milovidov
15a529f6f7 Whitespace 2021-02-04 10:35:49 +03:00
achimbab
2cc69893f2 Add sequenceFirstNode 2021-02-04 16:15:04 +09:00
Russ Frank
f47ea31ef1 clang-format 2021-02-04 00:26:23 -05:00
Russ Frank
75ab05f80a correct conditional 2021-02-04 00:19:24 -05:00
Russ Frank
b36d20ef6e record seen first and last 2021-02-04 00:11:43 -05:00
Russ Frank
3913f39211 Add deltaSum aggregate function, docs & test 2021-02-03 22:49:28 -05:00
Azat Khuzhin
984445b44b Fix UBsan reports in quantileTiming
UBsan reports [1]:

    ../src/AggregateFunctions/QuantileTiming.h:442:27: runtime error: 1.84467e+19 is outside the range of representable values of type 'unsigned long' Received signal -3 Received signal Unknown signal (-3)

  [1]: https://clickhouse-test-reports.s3.yandex.net/19971/e15f5d9cb5b36482d1ae9ca069074fb200f2ab37/fuzzer_ubsan/report.html#fail1

Follow-up for: #19394
2021-02-04 02:01:48 +03:00
achimbab
19dd09ea8e Fix paramters for nulls 2021-02-02 17:50:08 +09:00
Alexey Milovidov
349d783089 Improve performance of aggregate functions 2021-02-01 20:12:12 +03:00
achimbab
753c32ee13 Use 0x80000000 as unmatched event 2021-02-01 14:01:18 +09:00
achimbab
841d9cbb09 Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into sequenceNextNode 2021-02-01 10:23:18 +09:00
Amos Bird
c39ee3f58c
Fix argMinMaxIf crash 2021-01-31 16:27:46 +08:00
achimbab
8db0caf901 Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into sequenceNextNode 2021-01-31 12:20:30 +09:00
achimbab
138c5ab644 For some functional stateless tests (ubsan) 2021-01-31 12:19:11 +09:00