Commit Graph

1299 Commits

Author SHA1 Message Date
vdimir
91c93ba8f8
Update AggregateFunctionSparkbar 2023-02-02 13:23:46 +00:00
Yakov Olkhovskiy
f5811a3d5a
Merge branch 'master' into fix-unsorted-array 2023-02-01 22:36:52 -05:00
Alexey Milovidov
95e267561a
Update AggregateFunctionSparkbar.h 2023-02-01 00:46:37 +03:00
Alexey Milovidov
1cb7574498
Update AggregateFunctionSparkbar.h 2023-02-01 00:44:27 +03:00
FFFFFFFHHHHHHH
eb7df4e403 fix 2023-01-31 18:45:37 +08:00
FFFFFFFHHHHHHH
c64ffc6389 fix style 2023-01-31 15:59:35 +08:00
FFFFFFFHHHHHHH
0a6cc61fd9 Merge branch 'corrMatrix' of github.com:FFFFFFFHHHHHHH/ClickHouse into corrMatrix 2023-01-31 15:50:28 +08:00
FFFFFFFHHHHHHH
78f2d6fb25 fix 2023-01-31 15:44:33 +08:00
Duc Canh Le
e8ebd2e845 updateFrame returns size_t 2023-01-31 10:04:19 +08:00
Duc Canh Le
ae98847d31 Merge branch 'master' into ch_canh_fix_sparkbar 2023-01-31 10:01:16 +08:00
Junfu Wu
933bb5f42c fix: return unsorted array element in quantile function 2023-01-28 15:41:42 +08:00
Alexander Tokmakov
a584ad0eb1 forbid runtime strings 2023-01-26 10:52:47 +01:00
Vladimir C
5c845d1ab9
Merge branch 'master' into ch_canh_fix_sparkbar 2023-01-24 13:51:34 +01:00
Alexander Tokmakov
3f6594f4c6 forbid old ctor of Exception 2023-01-23 22:18:05 +01:00
Alexander Tokmakov
70d1adfe4b
Better formatting for exception messages (#45449)
* save format string for NetException

* format exceptions

* format exceptions 2

* format exceptions 3

* format exceptions 4

* format exceptions 5

* format exceptions 6

* fix

* format exceptions 7

* format exceptions 8

* Update MergeTreeIndexGin.cpp

* Update AggregateFunctionMap.cpp

* Update AggregateFunctionMap.cpp

* fix
2023-01-24 00:13:58 +03:00
Alexander Tokmakov
5cd90c1a3e Merge branch 'master' into exception_message_patterns 2023-01-17 20:04:04 +01:00
Alexander Tokmakov
72e8615bec formatting of some exception messages 2023-01-17 20:03:56 +01:00
Nikolay Degterinsky
70e79de69b
Merge pull request #38252 from bharatnc/ncb/weighted-quantile-approx
add quantileInterpolatedWeighted function
2023-01-16 13:41:13 +01:00
simpleton
babef5d990
fix: Solve the unique invalid problem of negative interval 2023-01-11 16:08:22 +08:00
Bharat Nallan Chakravarthy
24d3db1295 try binary search when selecting idx 2023-01-10 21:16:20 -08:00
Bharat Nallan Chakravarthy
e18a95719d review fix 2023-01-10 21:16:16 -08:00
Bharat Nallan Chakravarthy
750ce1eb48 review fixes first round 2023-01-05 22:47:58 -08:00
Duc Canh Le
d02227306c fix style check 2023-01-05 16:11:05 +08:00
Duc Canh Le
245bdd8e5e update column inplace 2023-01-05 14:47:23 +08:00
Duc Canh Le
03e6ef2a30 Merge https://github.com/ClickHouse/ClickHouse into ch_canh_fix_sparkbar 2023-01-04 22:11:19 +08:00
Dmitry Novik
a84318af5f
Merge branch 'master' into cleanup-resolved-function 2023-01-03 17:52:29 +01:00
Azat Khuzhin
b9125bb351
Introduce groupArrayLast() (useful to store last X values) (#44521)
* Cleanup DataTypeCustomSimpleAggregateFunction::checkSupportedFunctions()

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>

* Remove unused GroupArrayGeneralListImpl

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>

* Introduce groupArrayLast() (useful to store last X values)

Also do some refactoring to make code cleaner:
- rename insert() to insertWithSampler() (since it is used only for
  groupArraySample())
- split merge methods into Last/RNG/...

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-01-02 15:20:21 +01:00
FFFFFFFHHHHHHH
43a000c428
Merge branch 'master' into corrMatrix 2022-12-29 19:50:19 +08:00
FFFFFFFHHHHHHH
8366ac5232 fix style 2022-12-29 11:44:24 +08:00
Alexey Milovidov
4fce10940e
Merge pull request #44629 from Algunenano/revert_flamegraph
Revert "Merge pull request #38953 from ClickHouse/add-allocation-ptr-to-trace-log
2022-12-28 22:56:50 +03:00
FFFFFFFHHHHHHH
c34f306675
Merge branch 'master' into corrMatrix 2022-12-29 00:48:48 +08:00
fhbai
c559ffe5b9 add corrMatrix,covarSampMatrix,covarPopMatrix 2022-12-28 23:32:37 +08:00
Alexey Milovidov
14d7266e70
Merge branch 'master' into fix-30975 2022-12-27 23:21:10 +03:00
Kruglov Pavel
e981b2e78b
Merge pull request #43813 from Avogar/fix-sum-if
Better handling of NULL in aggregate combinators, fix possible segfault/logical error
2022-12-27 16:50:48 +01:00
Alexey Milovidov
4ce9732502
Update AggregateFunctionSumMap.h 2022-12-27 17:15:48 +03:00
Alexey Milovidov
611bb44288
Merge branch 'master' into fix-30975 2022-12-27 17:15:12 +03:00
Raúl Marín
948ce8db93 Revert "Merge pull request #38953 from ClickHouse/add-allocation-ptr-to-trace-log"
This reverts commit e99849d031, reversing
changes made to 7ad3ff8a9e.
2022-12-27 14:28:13 +01:00
Duc Canh Le
d65f23b2f6 update frame in-place 2022-12-27 19:24:59 +08:00
Duc Canh Le
c315ed354c Merge branch 'master' into ch_canh_fix_sparkbar 2022-12-27 17:50:19 +08:00
Bharat Nallan Chakravarthy
cda37e73ba fix test failure 2022-12-26 09:05:21 -08:00
Alexey Milovidov
71633bd341
Update AggregateFunctionSparkbar.h 2022-12-24 05:14:50 +03:00
Dmitry Novik
e481c0bae5 Cleanup code 2022-12-23 18:23:01 +00:00
Duc Canh Le
da14883715 fix spark bar OOM 2022-12-21 22:17:09 +08:00
Dmitry Novik
51ba12ca0d Fix ubsan failures 2022-12-20 17:10:27 +00:00
avogar
00be9639f7 Fix compiled functions 2022-12-20 15:21:41 +00:00
Alexey Milovidov
8b6092b321 Fix support for complex parameters of parametric aggregate functions, #30975 2022-12-19 07:26:54 +01:00
avogar
22e70fa71e Try fix tests 2022-12-16 18:09:42 +00:00
Dmitry Novik
f725ec9a73 Update AggregateFunctionFlameGraph 2022-12-16 16:18:11 +00:00
Dmitry Novik
875a24a650 Merge remote-tracking branch 'origin/master' into refector-function-node 2022-12-16 16:07:30 +00:00
avogar
3f17d05a30 Merge branch 'master' of github.com:ClickHouse/ClickHouse into fix-sum-if 2022-12-16 14:47:07 +00:00
Nikolai Kochetov
e99849d031
Merge pull request #38953 from ClickHouse/add-allocation-ptr-to-trace-log
Track allocation ptr in system.trace_log. Add aggregate function flamegraph
2022-12-15 18:16:05 +01:00
Bharat Nallan Chakravarthy
aa03712b6d fix build failure 2022-12-14 23:49:51 -08:00
Bharat Nallan Chakravarthy
e4023b3b90 Merge remote-tracking branch 'upstream/master' into ncb/weighted-quantile-approx 2022-12-13 09:34:26 -08:00
Dmitry Novik
3d2fccab87
Merge branch 'master' into refector-function-node 2022-12-12 21:36:39 +01:00
Nikolai Kochetov
e451137040 Add comments. 2022-12-12 18:26:07 +00:00
Alexey Milovidov
bca18298a1
Merge pull request #44067 from ClickHouse/fix-quantiles-msan
Fix undefined behavior in `quantiles` function
2022-12-12 04:19:00 +03:00
Alexey Milovidov
80cb90dac1
Merge pull request #44091 from ClickHouse/fix_44084
Fix another bug in AggregateFunctionMinMaxAny
2022-12-11 07:49:56 +03:00
Alexey Milovidov
0acadc6724 Fix one more UB 2022-12-11 04:29:06 +01:00
Nikolai Kochetov
d27f61b4a2 Fix style. 2022-12-09 19:54:21 +00:00
Nikolai Kochetov
9cbae9e977 Fix style. 2022-12-09 18:55:52 +00:00
Alexander Tokmakov
e9fa1accf1 fix another bug in AggregateFunctionMinMaxAny 2022-12-09 17:32:28 +01:00
Alexey Milovidov
6f69200662 Fix undefined behavior in quantiles function 2022-12-09 04:17:54 +01:00
Dmitry Novik
36ad3fd7a0
Merge pull request #43763 from ClickHouse/fix-null-variadic
Fix included_elements calculation in AggregateFunctionNullVariadic
2022-12-08 18:41:05 +01:00
Dmitry Novik
25ecb75ca8 Merge remote-tracking branch 'origin/master' into refector-function-node 2022-12-07 18:36:50 +00:00
Nikolai Kochetov
9a4b3493fd Merge branch 'master' into add-allocation-ptr-to-trace-log 2022-12-06 17:09:54 +01:00
zhanglistar
dae51c7a00
Merge branch 'master' into constexpr 2022-12-05 10:09:58 +08:00
Dmitry Novik
6bc152c7a0 Fix AggregateFunctionForEach result type 2022-12-02 19:15:26 +00:00
Dmitry Novik
15b8c48ca9 Cleanup code 2022-12-02 19:15:26 +00:00
Dmitry Novik
4d5868d05d Fix AggregateFunctionMerge 2022-12-02 19:15:26 +00:00
Dmitry Novik
e6c283e7df Fix AggregateFunctionMinMaxAny::createResultType 2022-12-02 19:15:26 +00:00
Dmitry Novik
48e8aeac01 Clean up code 2022-12-02 19:15:26 +00:00
Dmitry Novik
2c70dbc76a Refactor FunctionNode 2022-12-02 19:15:26 +00:00
Kruglov Pavel
c35b2a6495
Add a limit for string size in RowBinary format (#43842) 2022-12-02 13:57:11 +01:00
Kruglov Pavel
ef8781e5ff
Merge branch 'master' into fix-sum-if 2022-12-01 12:49:10 +01:00
Nikolai Kochetov
7649a3c4d7 Merge branch 'master' into add-allocation-ptr-to-trace-log 2022-12-01 12:12:23 +01:00
zhanglistar
90c832c70f
Merge branch 'master' into constexpr 2022-12-01 14:07:59 +08:00
zhanglistar
470595f3fc AggregateFunctionNullBase add constexpr 2022-12-01 12:11:59 +08:00
Alexander Tokmakov
431f6551cb
Merge branch 'master' into fix_assertion_in_thread_status 2022-11-30 23:05:15 +03:00
Dmitry Novik
ba3663e600
Merge branch 'master' into fix-null-variadic 2022-11-30 17:10:05 +01:00
zhanglistar
e40398f5b9 add constexpr on if 2022-11-30 19:55:42 +08:00
avogar
61d864f846 Remove unneded check 2022-11-29 18:20:51 +00:00
avogar
c0c976b850 Better handling of NULL in aggregate combinators, fix possible segfault/logical error while using 2022-11-29 18:19:00 +00:00
Alexander Tokmakov
e45105bf44 detach threads from thread group 2022-11-28 21:31:55 +01:00
Alexander Tokmakov
9d6e8c67da yet another fix for AggregateFunctionMinMaxAny 2022-11-28 21:11:48 +01:00
Dmitry Novik
ec3e46b471 Fix included_elements calculation in AggregateFunctionNullVariadic 2022-11-28 16:07:48 +00:00
Vladimir C
4819bc24b0
Merge pull request #43414 from azat/func/sumMap-decimal-Nullable-fix
Fixes https://github.com/ClickHouse/ClickHouse/issues/43395
2022-11-24 11:58:02 +01:00
Alexander Tokmakov
4f28334b5c fix mess with signed sizes 2022-11-22 13:57:05 +01:00
Raúl Marín
a52bdca989 Detect the other corrupted state too 2022-11-21 13:33:16 +01:00
Azat Khuzhin
6f0e042914 Fix sumMap() for Nullable(Decimal())
Fixes: #43395
Follow-up for: #20970 (cc @kitaisreal)
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-11-21 09:43:21 +01:00
Alexander Tokmakov
854657d372 fix another issue 2022-11-19 23:14:53 +01:00
Alexander Tokmakov
09de30a51a fix overflow, add more tests 2022-11-19 18:58:40 +01:00
Alexander Tokmakov
9464c32bb8 Merge branch 'master' into revert_SingleValueDataString 2022-11-19 18:00:04 +01:00
Alexander Tokmakov
35f677d7d8 make read(...) compatible with buggy versions 2022-11-18 19:48:24 +01:00
Alexander Tokmakov
415eaff8d5 revert incompatible changes 2022-11-18 19:44:47 +01:00
Alexander Tokmakov
6a3b57c27d revert changes in AggregateFunctionMinMaxAny.h 2022-11-18 19:44:36 +01:00
Nikita Taranov
7beb58b0cf
Optimize merge of uniqExact without_key (#43072)
* impl for uniqExact

* rm unused (read|write)Text methods

* fix style

* small fixes

* impl for variadic uniqExact

* refactor

* fix style

* more agressive inlining

* disable if max_threads=1

* small improvements

* review fixes

* Revert "rm unused (read|write)Text methods"

This reverts commit a7e7480584.

* encapsulate is_able_to_parallelize_merge in Data

* encapsulate is_exact & argument_is_tuple in Data
2022-11-17 13:19:02 +01:00
Vladimir C
a29c5b9e3a
Merge pull request #43232 from ClickHouse/vdimir/max_map_null_totals_bug 2022-11-17 13:10:05 +01:00
Raúl Marín
78d4a4b5c2 Add a detailed comment about the change 2022-11-16 13:59:37 +01:00
Raúl Marín
4e7ccd1c06 Merge remote-tracking branch 'blessed/master' into revert_SingleValueDataString 2022-11-16 12:59:47 +01:00
Raúl Marín
d49b65cf1e Fix capacity check 2022-11-15 16:31:12 +01:00