Commit Graph

42 Commits

Author SHA1 Message Date
aef905cb16 executor: convert json numeric value to float64 in hash (#38065)
close pingcap/tidb#38049
2022-09-22 11:39:02 +08:00
170dafc7e1 types: merge json and types pkg (#37578)
close pingcap/tidb#37577, close pingcap/tidb#37628
2022-09-05 19:42:55 +08:00
a1af5af862 executor: support single precision value in json agg (#37389)
close pingcap/tidb#37287
2022-08-29 14:56:22 +08:00
515de80a17 executor: track the memory usage of aggregate more accurate (#34732)
ref pingcap/tidb#33877
2022-05-23 10:58:45 +08:00
1bf64c60f4 *: Refactor FieldType structure (#33569)
close pingcap/tidb#32116
2022-04-26 19:28:51 +08:00
205d9ab910 executor, store: replace compareDatum by compare (#30044) 2021-11-23 16:19:50 +08:00
fb01f00d44 executor/aggfuncs: migrate test-infra to testify (#29764) 2021-11-15 20:01:08 +08:00
64681ddaed executor/aggfuncs: migrate test-infra to testify for func_count_test.go, func_group_concat_test.go, func_stddevpop_test.go, func_stddevsamp_test.go, and func_varsamp_test.go (#29529) 2021-11-15 12:29:06 +08:00
077cb47351 executor/aggfuncs: migrate test-infra to testify for func_json_arrayagg_test.go, func_first_row_test.go, func_avg_test.go, and func_bitfuncs_test.go (#28979) 2021-10-27 09:48:48 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
e3c7aab001 executor/aggfuncs: refactor: migrate test-infra to testify for func_varpop_test.go (#28548) 2021-10-08 12:57:23 +08:00
7755d25aba *: Integrate SkyWalking-eyes to check license headers in CI and fix licenses headers (#27198) 2021-08-16 18:52:00 +08:00
853c41e3fb executor: add builtin aggregate function json_arrayagg (#19957) 2021-08-04 16:15:07 +08:00
c6680e999b *: update client-go and update mocktikv usages (#25911) 2021-07-09 10:57:32 +08:00
cc5e161ac0 *: use tikv/client-go/v2 (#25359) 2021-06-11 17:24:35 +08:00
b81e547e66 executor: fix err check (#22991) 2021-03-03 19:26:56 +08:00
b74dfaf810 mockstore: move mockstore/cluster to tikv/mockstore/cluster (#22856)
Signed-off-by: disksing <i@disksing.com>
2021-02-22 15:42:16 +08:00
1265a115f6 chunk: fix min/max for enum/set is incompatible with MySQL (#21566) 2020-12-21 17:07:00 +08:00
Ion
877fa6320b executor: support memory trace for group_concat (#20153) 2020-10-14 14:36:37 +08:00
aceecf0732 executor: support new aggregate funtion APPROX_PERCENTILE (#19799)
Signed-off-by: leiysky <leiysky@outlook.com>
2020-09-24 15:59:38 +08:00
1d5b724e82 executor: implement meldata for jsonobjectagg funcs to track memUsage (#19819) 2020-09-22 10:42:08 +08:00
80e04b55bb executor: trace memory usage of first_row() (#19757)
Signed-off-by: Howie <haoweili35@gmail.com>
2020-09-10 10:47:20 +08:00
b6b9b8a6df exector, planner: Improve the performance of the aggFuncMaxMin by using sliding window (#16819)
* temp

* temp

* unit test

* executor: Improve the performance of `aggFuncMin` by using sliding window

* executor: Improve the performance of `aggFuncMin` by using sliding window

* executor: Improve the performance of `aggFuncMin` by using sliding window

add ut

* fix: ResetPartialResult

* add maxMin4Time.Slide and maxMin4Duration.Slide

* add benchmark

* add var `dirty`

* add a comment

* fix Decimal

* newMyDecimalMaxMinQueue

* newMyDecimalMaxMinQueue

* newMyDecimalMaxMinQueue

* newMyDecimalMaxMinQueue

* newMyDecimalMaxMinQueue

* implementing the maxMinQueue using heap

* fix import check

* fix import check

* fix check

* remove PushMyDecimal

* refactor maxMinHeap

* 尝试优化heap

* 尝试优化heap

* fix benchmark

* fix:*

* solved pr comments

* solved pr comments

* fix

* fix

* fix

* 先回家

* maxMin4IntSliding

* fix import

* fix

* new builder

* fix ut

* fix

* fix

* fix ut

* fix ut

* fix fmt

* add benchmark

* fix

* fix

* lazyload

* lazyload

* fix frame

* fix check_dev

* add a unit test

* sliding aggFunc

* sliding aggFunc

* fix

* move ut

* fix dev_check

* fix dev_check

* resolved comments

* refactor ut

* refactor ut

* refactor ut

Co-authored-by: Yuanjia Zhang <zhangyuanjia@pingcap.com>
2020-09-09 14:31:41 +08:00
bcfaaf5595 executor: implement meldata for rank funcs to track memUsage (#19766) 2020-09-07 11:09:06 +08:00
f3c8b008df executor: accelerate TestMemCount (#19581)
* test

* executor: accelerate TestMemCount

* refine

* fix ci

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-29 21:03:21 +08:00
b4f0854d19 executor: implement memDelta for avg funcs to track memUsage (#18901) 2020-08-28 14:01:41 +08:00
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
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
5192c26150 executor: optimize count distinct with single column (#15323) 2020-03-31 15:04:12 +08:00
0ddfe0716f *: fix datum's collation behavior to build correct logical ranges (#14963) 2020-03-05 22:34:46 +08:00
ebc6a2d39d *: add builtin aggregate function json_objectagg (#11154) 2020-02-04 21:41:55 +08:00
9bf17e6c9e executor: fix wrong behavior when ENUM column meet Aggregati… (#14035) 2020-01-07 11:26:26 +08:00
c59028a2b5 *: let baseFuncDesc.typeInfer return error instead of panic (#10910) 2019-06-24 13:09:14 +08:00
13290a239a executor/aggfuncs: add test for window functions (#10131) 2019-04-18 12:34:43 +08:00
0effd63b99 executor/aggfuncs: add test for aggregation functions (#10002) 2019-04-04 13:20:42 +08:00
366bc8dedf executor/aggfuncs: add test for merge partial results (#9909) 2019-03-28 19:35:28 +08:00
5c65128632 ddl: make the leak test stable (#9139) 2019-01-23 13:01:55 +08:00
98b96cc769 executor: speedup unit tests by spliting them into separate suites (#8618) 2018-12-24 21:37:12 +08:00
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
f98ef22ded expression, executor: add a new interface MergePartialResult for the new aggregation framework (#7281) 2018-08-13 14:54:06 +08:00