Commit Graph

59 Commits

Author SHA1 Message Date
f8e861aa39 planner: PhysicalPlan memory trace 3 (#37731)
ref pingcap/tidb#37632
2022-09-13 17:14:58 +08:00
016dfd7015 expression: support lead/lag push down to tiflash (#37366)
close pingcap/tidb#37365
2022-09-05 09:52:55 +08:00
080a784a75 expression: forbid binary string to be json key (#37541)
close pingcap/tidb#37509
2022-09-02 18:50:25 +08:00
4c8c918c43 executor: add conversion to opaque value for json_objectagg and json_arrayagg (#37337)
close pingcap/tidb#25053
2022-08-25 17:20:22 +08:00
28c934cdae planner: finish todo in builtin_cast.go#L1945 (#36921)
close pingcap/tidb#36920
2022-08-09 16:16:47 +08:00
158ba1a1d9 *: enable part revive for all code (#36703) 2022-08-01 14:02:06 +08:00
f459bb3a86 planner: avoid change the type of the input of sum/avg (#36372)
close pingcap/tidb#36371
2022-07-29 16:21:12 +08:00
6baea73277 *: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (#36660) 2022-07-28 19:23:11 +08:00
61175e8a4d expression: fix return type of agg func bit_or when handling varbinary column (#36415)
close pingcap/tidb#36400
2022-07-22 14:59:09 +08:00
9a77892ac8 execution: avoid decimal overflow and check valid (#34399)
close pingcap/tidb#30347, close pingcap/tidb#34388
2022-06-17 21:42:36 +08:00
5b804ccfdf planner: firstrow agg func should infer return type as nullable for EQAll special case (#34585)
close pingcap/tidb#34584
2022-05-30 17:20:27 +08:00
c16291392a *: replace types.NewFieldTypeBuilder() API with NewFieldTypeBuilderP() to avoid misuse (#34494)
close pingcap/tidb#34490
2022-05-09 22:00:33 +08:00
f88dab92f9 util: use generics to implement max/min (#34197)
close pingcap/tidb#34247
2022-05-06 10:08:57 +08:00
1bf64c60f4 *: Refactor FieldType structure (#33569)
close pingcap/tidb#32116
2022-04-26 19:28:51 +08:00
df58e6c36c execution: refine precision of cast as decimal in agg func (#30805) 2021-12-23 16:53:47 +08:00
9aa756336e executor: avoid sum from avg overflow (#30010) 2021-12-03 11:09:55 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
32f96fef77 expression: make infer collation support the expressions with different charset (#27863) 2021-10-11 14:51:25 +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
cd5499e994 planner: Fix the problem that PlanBuilder.buildWindowFunctions may change sub operator's schema. (#27176) 2021-08-13 16:57:58 +08:00
853c41e3fb executor: add builtin aggregate function json_arrayagg (#19957) 2021-08-04 16:15:07 +08:00
0d76e899f4 expression: fix wrong type infer for agg function when type is null (#24290) 2021-04-28 17:25:56 +08:00
f30108d88c executor, expression: fix the incorrect result of AVG function (#23285) 2021-03-17 13:42:55 +08:00
355fdfee4b brie: update br pkg to latest master (#22528) 2021-01-28 23:49:45 +08:00
e8fb3eab2c expression: modify the mean result of time type (#21514) 2020-12-21 17:51:31 +08:00
28c9e9290b *: gocritic fixes for commentFormatting (#21578) 2020-12-09 12:03:17 +08:00
8f11e31685 expression: revert some changes to fix mysql_test (#21246) 2020-11-24 15:28:23 +08:00
b77a514ae9 expression: fix a bug that DML using caseWhen may cause schema change (#19857)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-11-24 13:27:02 +08:00
b6b4c67640 planner: the precision of a decimal type should not be more than MaxDecimalWidth (#21046) 2020-11-13 20:11:43 +08:00
dy
a3facd0f71 expression, planner: fix decimal results for aggregate functions (#20017) 2020-11-11 14:46:22 +08:00
a338e35932 expression: fix wrong inferred type for sum and avg (#20926) 2020-11-11 14:10:34 +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
205c40186a *: support aggregate function stddev_samp() and var_samp() (#19810)
Co-authored-by: Zhuomin(Charming) Liu <lzmhhh123@gmail.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-09-16 17:44:41 +08:00
9047a9c881 executor: fix wrong behavior for max/min on ENUM/SET column (#19552)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
Co-authored-by: Yiding Cui <winoros@gmail.com>
2020-09-01 21:18:03 +08:00
49af6a511f expression: Support stddev_pop function (#19195)
* add stddev_pop function

* fix for make check

* not push down

* add util test

* stddevpop inherit from varpop

* fix typo

* support std and stddev

* update go.mod

* uodate parser master

* fix ditto

* fix fix

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-27 19:42:53 +08:00
15ff461530 expression: set correct collation in InferType4ControlFuncs (#19483) 2020-08-27 16:52:55 +08:00
2627ca2116 executor: fix sum & avg on year type (#18318)
Signed-off-by: niedhui <niedhui@gmail.com>
2020-07-02 11:51:24 +08:00
978370f7cb executor: add new agg function APPROX_COUNT_DISTINCT (#17175) 2020-06-18 22:00:14 +08:00
06361c2d98 expression: fix type infer error for count (#17871) 2020-06-11 10:22:54 +08:00
583956dff5 expression: fix type infer for decimal property in count agg (#17368) 2020-06-05 12:43:49 +08:00
4755a9b9ef util: revert util/mathutil (#14744) 2020-02-13 11:33:04 +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
8cbacf0d7c wasm: fix compile error for wasm (#14160)
Signed-off-by: 5kbpers <tangminghua@pingcap.com>
2019-12-23 15:17:46 +08:00
829ba98907 expression: remove the NotNullFlag for aggregation func MAX/MIN when inferring type (#11343) 2019-08-05 17:41:40 +08:00
c59028a2b5 *: let baseFuncDesc.typeInfer return error instead of panic (#10910) 2019-06-24 13:09:14 +08:00
3a48d9c877 executor: add window function NTILE (#9682) 2019-03-15 16:01:56 +08:00
7a20e65e51 expression: fix panic when wrap cast for window func (#9719) 2019-03-15 11:06:48 +08:00
4422a23d9b executor: support window function lead and lag (#9672) 2019-03-14 14:40:51 +08:00