Commit Graph

82 Commits

Author SHA1 Message Date
b178de06ad executor: Trace the memory usage of AggFunc in HashAggExec (#18257) 2020-07-06 20:48:41 +08:00
978370f7cb executor: add new agg function APPROX_COUNT_DISTINCT (#17175) 2020-06-18 22:00:14 +08:00
09af066c54 *: fix a bug that collation does not work for enum and set (#17635) 2020-06-05 12:14:42 +08:00
bcbc25db68 executor: make the aggregation function distinct consider collations (#17182) 2020-05-15 15:59:15 +08:00
a1763c1b6e executor: fix memory corrupt in COUNT/JSON_OBJECTAGG/GROUP_CONCAT (#17106) 2020-05-13 16:58:20 +08:00
7ebcc20398 executor: support GROUP_CONCAT(ORDER BY) (#16591) 2020-05-06 18:41:22 +08:00
26e208b9df executor, types: copy enum/set instead of refer the underlying data (#16858) 2020-04-28 13:00:40 +08:00
25580ea5f4 *: Use a function to get the ONE, ZERO and NULL and fix the clone. (#16512) 2020-04-17 19:11:52 +08:00
8cd377dd07 executor: Improve the performance of aggFuncBitXor by using… (#16091) 2020-04-15 15:03:11 +08:00
c561d5aa99 *: remove useless conversions and omit some types (#16262) 2020-04-10 00:23:06 +08:00
a93e91fc57 executor: Improve the performance of aggFuncAvg by using sliding window (#15606) 2020-04-03 14:02:38 +08:00
5192c26150 executor: optimize count distinct with single column (#15323) 2020-03-31 15:04:12 +08:00
bbac2b2fe4 executor: Improve the performance of aggFuncSum by using sliding window (#14887) 2020-03-23 13:29:44 +08:00
34ff2b9a1d executor: use deep copy for maxMin4JSON (#15242) 2020-03-11 17:35:32 +08:00
0ddfe0716f *: fix datum's collation behavior to build correct logical ranges (#14963) 2020-03-05 22:34:46 +08:00
1771fff928 expression: make field and findInSet support collation (#15100) 2020-03-04 18:12:53 +08:00
f2fa5c5fd5 expression: consider collations when comparing strings (#14913) 2020-02-25 15:06:37 +08:00
4755a9b9ef util: revert util/mathutil (#14744) 2020-02-13 11:33:04 +08:00
17da140f15 executor: Improve the performance of WindowExec by using sliding window (#14294) 2020-02-07 18:38:54 +08:00
ebc6a2d39d *: add builtin aggregate function json_objectagg (#11154) 2020-02-04 21:41:55 +08:00
86ff21b076 *: add builtin aggregate function VAR_POP (#14101) 2020-01-07 20:55:29 +08:00
9bf17e6c9e executor: fix wrong behavior when ENUM column meet Aggregati… (#14035) 2020-01-07 11:26:26 +08:00
174ff27943 *: fix static check issues (#14286) 2020-01-06 16:07:15 +08:00
d006443194 type: encapsulate Time API (#14288) 2019-12-31 12:41:09 +08:00
8cbacf0d7c wasm: fix compile error for wasm (#14160)
Signed-off-by: 5kbpers <tangminghua@pingcap.com>
2019-12-23 15:17:46 +08:00
4b830aa7f6 *: Remove unused code (#13674) 2019-11-22 11:37:07 +08:00
609b52998f executor: revert mostly changes in #11678 (#12481) 2019-10-16 21:22:49 +08:00
8d165f0fd2 executor: copy row data instead of refereeing chunk.Row in some window functions. (#11678) 2019-08-22 10:57:54 +08:00
c59028a2b5 *: let baseFuncDesc.typeInfer return error instead of panic (#10910) 2019-06-24 13:09:14 +08:00
f26edbf15c executor: use EncodeBytes in countOriginDistinct (#10225) 2019-04-22 23:26:24 +08:00
e4aee76587 executor, util: fix wrong behavior of group_concat(distinct) (#10108) 2019-04-22 15:12:16 +08:00
13290a239a executor/aggfuncs: add test for window functions (#10131) 2019-04-18 12:34:43 +08:00
e9653675dd *: remove errors.Trace in main handle path (#10033) 2019-04-04 14:27:15 +08:00
0effd63b99 executor/aggfuncs: add test for aggregation functions (#10002) 2019-04-04 13:20:42 +08:00
833ccf8454 util,executor: use MutableString as key for DecimalSet (#9913) 2019-04-01 10:47:06 +08:00
366bc8dedf executor/aggfuncs: add test for merge partial results (#9909) 2019-03-28 19:35:28 +08:00
538587a4a8 executor: fix group_concat for cases like group_concat(123,null) (#9921) 2019-03-28 14:24:23 +08:00
26029778a5 executor: deep copy json into partial result (#9833) 2019-03-28 12:54:19 +08:00
7cabaac61d executor: using ToHashKey to check equality of decimal when count(distinct) (#9901) 2019-03-27 18:12:25 +08:00
915b12c968 executor: fix window function when order by item contain NULL (#9800) 2019-03-20 21:06:08 +08:00
3a48d9c877 executor: add window function NTILE (#9682) 2019-03-15 16:01:56 +08:00
4422a23d9b executor: support window function lead and lag (#9672) 2019-03-14 14:40:51 +08:00
f5a4dd986a executor: add window function PERCENT_RANK (#9671) 2019-03-13 11:34:09 +08:00
6e8cd3c7dd executor: support window function nth_value (#9596) 2019-03-12 00:42:37 +08:00
f0aca29fff executor: support window function cume_dist (#9619) 2019-03-11 19:30:54 +08:00
247777d870 executor: support window function first_value and last_value (#9560) 2019-03-06 21:43:14 +08:00
9259785455 executor: support window function rank and dense_rank (#9500) 2019-02-28 14:44:08 +08:00
cc085693f1 executor: support window function row number (#9098) 2019-02-18 17:14:37 +08:00
5c65128632 ddl: make the leak test stable (#9139) 2019-01-23 13:01:55 +08:00
ec833bc4d2 *: fix some lints produced by golangci-lint (#8999) 2019-01-16 16:44:49 +08:00