Commit Graph

38 Commits

Author SHA1 Message Date
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
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
ee1f79e2fc expression: fix a bug in baseFuncDesc.clone() (#9254) 2019-02-10 10:35:46 +08:00
3835bef7ae executor: support window func for aggregate without frame clause (#8899) 2019-01-15 15:23:17 +08:00
1cc9d4d53c expression: split aggregation descriptor for reuse (#8559) 2018-12-04 16:22:15 +08:00