Commit Graph

207 Commits

Author SHA1 Message Date
f1fbca8372 chunk: fix nil pointer when SortedRowContainer meet null type (#39254)
close pingcap/tidb#39252
2022-11-21 23:15:57 +08:00
6399e6cb5b planner: update some UTs from cost model1 to model2 (#39013)
ref pingcap/tidb#35240
2022-11-09 19:15:51 +08:00
5a8e1b2665 executor: exit all goroutines immediately when exceeded mem-quota (#37405)
close pingcap/tidb#37379
2022-09-14 14:12:58 +08:00
xhe
9a16a8dd19 *: replace defer clean with t.Cleanup (#36722)
close pingcap/tidb#36721
2022-08-01 17:34:05 +08:00
158ba1a1d9 *: enable part revive for all code (#36703) 2022-08-01 14:02:06 +08:00
8e7f97b9ff executor: close recordset in the aggregate_test (#36644) 2022-07-28 11:47:11 +08:00
065563a8ea executor: fix aggregating enum zero value gets different results from mysql (#36208)
close pingcap/tidb#26885
2022-07-22 14:05:09 +08:00
07afcb87d6 executor: Fix group_concat returns wrong results after set group_concat_max_len (#35852)
close pingcap/tidb#27751
2022-07-05 11:13:01 +08:00
d99b358225 *: only add default value for final aggregation to fix the aggregate push down (partition) union case (#35443)
close pingcap/tidb#35295
2022-06-28 12:08:39 +08:00
571d97bb16 planner: using the funcdep to check the only_full_group_by (#33567)
ref pingcap/tidb#29766
2022-04-21 00:44:04 +08:00
9bc9572754 planner: add the functional dependency for Datasource, proj, select, agg (#33071)
ref pingcap/tidb#29766
2022-03-17 20:02:30 +08:00
47e4b5bf31 *: revert #27021 to fix a bug that selection can not be pushed down when having clause above aggregation (#33168)
close pingcap/tidb#33166
2022-03-17 10:43:53 +08:00
7f7f095a45 executor: migrate test-infra to testify for set_test.go (#32684)
close pingcap/tidb#28608
2022-03-01 11:11:45 +08:00
e3c56b75ea executor: buildWindow cannot call typeInfer twice (#30773)
close pingcap/tidb#30402
2021-12-20 11:11:46 +08:00
2e79433b71 test: merge executor's serial tests to other tests (#30711) 2021-12-15 19:36:35 +08:00
b4df7ca4dc test: make all the tests run in serial (#30692) 2021-12-14 18:06:36 +08:00
9aa756336e executor: avoid sum from avg overflow (#30010) 2021-12-03 11:09:55 +08:00
bba5fee1e6 executor: migrate test-infra to testify for executor/write_test.go (#29953) 2021-11-23 16:33:51 +08:00
e030ff1155 *: fix unstable test caused by TestRandomPanicAggConsume (#30035) 2021-11-23 14:05:50 +08:00
e448d93cb9 executor: migrate test-infra to testify for aggregate_test.go (#29903) 2021-11-20 12:25:48 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
09ebd0d703 planner: fix wrong selection push down when having above agg (#27021) 2021-08-16 20:29:59 +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
0398c3f359 executor: add some simple tests to cover unparallel HashAgg (#26753) 2021-08-05 16:21:13 +08:00
2412437041 executor: support spill intermediate data for unparalleled hash agg (#25714) 2021-07-15 17:21:32 +08:00
8111d14c90 tests: make TestIssue20658 stable (#25092)
* tests: make TestIssue20658 stable
2021-06-03 18:15:35 +08:00
9865d51f79 planner: fix the ORDER BY column not match the GROUP BY clause (#24708) 2021-05-24 20:29:34 +08:00
db71d7fb83 test: record random seed in TestIssue20658 (#24782) 2021-05-20 21:54:21 +08:00
358c7975b1 test: fix unstable TestIssue20658 (#24425) 2021-05-07 18:50:41 +08:00
315c64456b executor: accelerate TestUpdateScanningHandles and TestIssue20658 and TestParallelStreamAggGroupConcat (#24132) 2021-04-20 10:31:52 +08:00
aee5819a20 *: change @@tidb_enable_clustered_index to ON/OFF/INT_ONLY (#23529) 2021-03-26 15:59:24 +08:00
6e00871551 excutor: fix the date precision of builtinCastDurationAsStringSig.vecEvalString #23314 #23286 (#23332) 2021-03-18 18:01:36 +08:00
f30108d88c executor, expression: fix the incorrect result of AVG function (#23285) 2021-03-17 13:42:55 +08:00
b298b86ba1 executor: group_concat aggr panic when session.group_concat_max_len is small (#23131) 2021-03-11 15:30:55 +08:00
83e70f74f0 executor: inject random panic to AggExec (#23139) 2021-03-09 16:38:55 +08:00
04e5137f48 *: use explain format = 'brief' for tests (#22677) 2021-02-22 17:50:06 +08:00
27db39b480 *: use CLUSTERED and NONCLUSTERED to control primary key type (#22409) 2021-02-05 20:41:41 +08:00
28c9e9290b *: gocritic fixes for commentFormatting (#21578) 2020-12-09 12:03:17 +08:00
61f076e14f executor: fix test problems in TestIssue20658 (#21442) 2020-12-03 11:45:17 +08:00
c94e0df372 executor: fix test problems in TestIssue20658 (#21405)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-12-01 13:06:22 +08:00
1c8fb2bd2d executor: fix test problems in TestIssue20658 (#21371) 2020-11-30 15:27:59 +08:00
ceefbf1591 executor: Add the HashAggExec runtime information (#20577) 2020-11-25 21:56:52 +08:00
f9cd7ed69d planner, executor: parallelize stream aggregation with shuffle. (#21095) 2020-11-25 15:37:51 +08:00
dy
a3facd0f71 expression, planner: fix decimal results for aggregate functions (#20017) 2020-11-11 14:46:22 +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
71d7262067 expression: Support distinct in select stddev_pop() (#19680) 2020-09-10 14:43:51 +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
dd24cbd1ac update tidb for stdddev_pop (#19384) 2020-08-24 12:41:04 +08:00
0448a54875 types: fix wrong hash key for decimal (#19131)
* types: fix wrong hash key for decimal

* fix bug

* fix & add test

* address comments and add test

* add test

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-13 19:29:17 +08:00
ace80c7411 planner: apply min-max eliminator on common handle columns (#18589)
* planner: apply min-max eliminator on common handle columns

* reuse AccessPath.IsTablePath()

* planner: apply min-max eliminator on common handle columns

* address comments

* address comment

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-07-17 18:01:47 +08:00