Commit Graph

113 Commits

Author SHA1 Message Date
4836aa33c3 executor: support new aggregate framework for HashAggExec (#7268) 2018-08-21 15:17:25 +08:00
6e7d75299d test: refine test (#7414) 2018-08-16 17:05:59 +08:00
1d567efcca executor: fix group_concat when chunk size is set to 1 (#7328) 2018-08-13 15:59:30 +08:00
f98ef22ded expression, executor: add a new interface MergePartialResult for the new aggregation framework (#7281) 2018-08-13 14:54:06 +08:00
af7fed9b38 executor: fix group_concat(a) when a is null (#7287) 2018-08-08 15:38:37 +08:00
5e7aa1d97d infoschema,executor: add PROCESSLIST table to INFORMMATION_SCHEMA database (#7236) 2018-08-01 22:48:33 +08:00
d5c5115220 executor: fix firstrow/max/min(bit col) error (#7206) 2018-08-01 12:59:40 +08:00
b29d52ba9c executor: support group_concat under new aggregation evaluation framework (#7032) 2018-07-17 20:22:13 +08:00
63c4562c27 *: remove non-prepared plan cache (#7040)
* *: remove non-prepared plan cache

non-prepared plan cache is not usable if we can only do full string match.
And further development doesn't worth the effort.
2018-07-13 18:15:05 +08:00
4a7869e807 aggfuncs: implement Count with new aggregation framework (#7009) 2018-07-12 17:11:33 +08:00
0ef52acf82 executor: support MAX/MIN in new evaluation framework partially (#6971) 2018-07-12 15:01:16 +08:00
ab46569a50 executor: refine StreamAggExec when child is empty (#7002) 2018-07-11 14:33:48 +08:00
5f6e36241c support generation_expression (#7017) 2018-07-09 20:06:27 +08:00
dd37138dc0 *: support parallel hash agg (#6658) 2018-06-29 22:59:47 +08:00
0ab0b50f25 stats: refine the pseudo condition for stats (#6565) 2018-06-27 17:05:37 +08:00
a9360655e8 plan: fix a bug when 'only_full_group_by' is set in sql_mode (#6734)
when 'only_full_group_by' is set in sql_mode, raise error for non-aggregated column in query without GROUP BY.

mysql> create table t(a bigint, b bigint, c bigint);                                                                                           Query OK, 0 rows affected (0.02 sec)

mysql> select a, max(b) from t;
ERROR 1140 (42000): In aggregated query without GROUP BY, expression #1 of SELECT list contains nonaggregated column 'dc_test.t.a'; this is incompatible with sql_mode=only_full_group_by
2018-06-25 17:03:00 +08:00
48719d2019 stats: refine index row count estimation (#6869) 2018-06-22 15:48:36 +08:00
35b68b63ac expression, executor: extract expression to ProjExec from AggExec (#6839) 2018-06-22 15:25:44 +08:00
9150b0f25e executor, expression: fix a panic of MAX/MIN (#6632) 2018-05-24 18:28:32 +08:00
10e57a5cef *: save gc_delete_range items that is done in another table instead of deleting them. (#6512) 2018-05-14 07:09:15 -05:00
e2b033d1c0 *: add a tidb system variable tidb_hash_join_concurrency (#6244) 2018-04-12 20:28:19 +08:00
19573c6754 *: update stats using query feedback (#6197) 2018-04-10 19:12:38 +08:00
13a7f1943c *: fix data race in plan cache (#6234) 2018-04-09 08:24:38 +08:00
ca0e0dbe75 Improve the aesthetics of code review (#6130) 2018-04-01 18:09:35 +08:00
501de19821 stats: add average column size for the histogram (#5974) 2018-03-23 13:44:24 +08:00
4241d70646 types: support converting json to float64 (#6081) 2018-03-22 13:37:53 +08:00
eec1c524dc util: refine Row.GetDatum when tp is MyDecimal (#6087) 2018-03-19 17:11:07 +08:00
c2c85b3102 executor, util: refine row.GetMyDecimal (#6077) 2018-03-16 22:55:16 +08:00
00a2d8d719 infoschema: add missing columns in collations_information_applicability (#6025) 2018-03-13 11:17:01 +08:00
dc2bbc8c4f expression: correct the behavior of bit aggregate function. (#5954) 2018-03-05 21:44:01 +08:00
69881b55ff executor: make sure "plan.GlobalPlanCache" is initialized before "plan.PlanCacheEnabled" set to true (#5806) 2018-02-07 16:20:16 +08:00
5bf8972460 aggregation: "group_concat" should not modify the argument during execution (#5664) 2018-01-17 22:01:36 +08:00
b10a65dca1 plan: covert max/min to topN. (#5516) 2018-01-02 22:30:17 +08:00
95a5c8ce5a expresion, executor: correct the type inference of function "sum" and "avg" (#5495) 2017-12-26 18:16:52 +08:00
a7beb99d75 *: support pushing down stream aggregation on mocktikv (#5444) 2017-12-25 15:40:53 +08:00
f8c0aaf0c9 parser, expression: support SEPARATOR in group_concat aggregate function (#5420) 2017-12-15 16:36:13 +08:00
cd5c665c8c executor: use baseExecutor for all Executors (#5087)
Makes it easy to add new method on Executor interface.
2017-11-13 21:06:31 +08:00
15212587e1 *: remove resolver.go (#4988) 2017-11-10 14:42:10 +08:00
30a080db5c *: build and use count-min sketch (#5042) 2017-11-08 22:34:01 +08:00
63347051d7 executor,util/testkit: fix data race in test TestOnlyFullGroupBy (#5020) 2017-11-06 00:59:12 -06:00
b7c722aab6 Support SQLMode ONLY_FULL_GROUP_BY and fix a join panic bug (#4613) 2017-11-06 10:53:29 +08:00
5a47a06dbf *: move tests (#4651) 2017-09-27 14:38:45 +08:00
069cc8b222 expression: open new expression framework by default (#4595) 2017-09-22 15:29:42 +08:00
3636563eeb perf_schema: add required tables of mysqlx (#4521) 2017-09-14 13:58:27 +08:00
188dd8c06f session_test: move out some tests. (#4490) 2017-09-12 20:22:43 +08:00
6f9457e373 executor: use tearDownTest instead of defer (#4499) 2017-09-12 01:02:41 -05:00
c7c248eb91 executor: change struct row to []types.Datum (#4072) 2017-08-09 18:37:57 +08:00
1eebb87156 ddl: remove backgroud worker, use delete-range to speed up something. (#3993) 2017-08-09 16:59:25 +08:00
3c11ac5128 *: fix race with atomic global variables. (#4076)
* fix race.
2017-08-08 14:30:04 +08:00
77c7e0037a tidb: add some privilege columns to mysql.db (#3532)
* tidb: add some privilege columns to mysql.db

Create_tmp_table_priv
Lock_tables_priv
Create_view_priv
Show_view_priv
Create_routine_priv
Alter_routine_priv
Execute_priv
Event_priv
Trigger_priv
2017-06-27 10:18:11 +08:00