Commit Graph

1690 Commits

Author SHA1 Message Date
696ef7bae2 plan: convert in subquery to agg and inner join (#7531) 2018-10-30 19:19:32 +08:00
a37417e72c executor: fix show columns panic (#8082) 2018-10-30 13:29:11 +08:00
2a3c4da0b7 sessionctx, executor: add max_allowed_packet verification (#8090) 2018-10-29 22:44:20 +08:00
a6123eaf62 *: Change privilege to use Auth* identity (#7954) 2018-10-29 20:01:31 +08:00
33a0b0c900 planner: fix a sporadic panic due to the PR #7684 when using the prepared plan cache (#7956) 2018-10-29 19:05:04 +08:00
3febc22811 expression: fix cast json to decimal bug. (#8030) 2018-10-29 17:02:32 +08:00
736c3130e6 executor: fix update float panic (#8045) 2018-10-29 16:38:56 +08:00
5831de291d *: enable range typed table partition (#8011) 2018-10-26 20:04:07 +08:00
3024a5af73 plan: disable plan cache for query containing SubqueryExpr (#8064) 2018-10-26 11:37:23 +08:00
38274c39c3 *: fix the issue of executing DDL after executing SQL failure in txn (#8044)
* ddl, executor: fix the issue of executing DDL after executing SQL failure in txn
2018-10-25 15:52:13 +08:00
d606b0d55f executor: fix wrong result when index join on union scan. (#8031)
Do not modify Plan of dataReaderBuilder directly, because it would
impact next batch of outer rows, as well as other concurrent inner
workers. Instead, build a local child builder to store the child plan.
2018-10-25 11:38:35 +08:00
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
cc1da16878 stats: support show stats for partition table (#8023) 2018-10-24 15:49:01 +08:00
d8b52b82a8 executor: improve wide table insert & update performance (#7935) 2018-10-23 18:07:54 +08:00
1434fa9b89 admin: refine admin check decoder (#7862) 2018-10-23 17:55:58 +08:00
32aafa67c1 executor: add unit test for aggfuncs (#7966) 2018-10-23 16:53:18 +08:00
e81f855549 executor: let information_schema be the first database in ShowDatabases (#7938) 2018-10-23 14:28:45 +08:00
76f84f4536 executor, planner: clone proj schema for different children in buildProj4Union (#7999) 2018-10-23 13:34:03 +08:00
cde6a083d0 executor/aggfuncs: split unit tests to corresponding file (#7993) 2018-10-23 10:43:52 +08:00
edaec7bdaf *: move Statement and RecordSet from ast to sqlexec package (#7970) 2018-10-21 13:21:26 +08:00
25118db843 *: move ast.NewValueExpr to standalone parser_driver package (#7952)
Make the ast package get rid of the dependency of types.Datum
2018-10-19 19:37:55 +08:00
b7a8f91e0a executor: add the slow log for commit (#7951) 2018-10-18 22:59:04 +08:00
ec9672cea6 stats: update delta info for partition table (#7947) 2018-10-18 18:42:41 +08:00
6220692e3b stats: limit the length of sample values (#7931) 2018-10-18 15:30:43 +08:00
1d3bb7b47f executor: fix panic when limit is too large (#7936) 2018-10-18 14:33:18 +08:00
de931ca953 planner, executor: refine ColumnPrune for LogicalUnionAll (#7930) 2018-10-18 13:30:32 +08:00
a4edb58dd2 executor: fix a bug in point get (#7934) 2018-10-18 12:05:04 +08:00
f3148da27f executor: add an variable to compatible with MySQL insert for OGG (#7863) 2018-10-17 10:19:04 +08:00
458c0d1c27 executor: refine explain analyze (#7888) 2018-10-16 20:02:43 +08:00
1bb15f14fa admin: fix admin check table bug of byte compare (#7887)
* admin: remove reflect deepEqual
2018-10-16 18:24:58 +08:00
c520132962 plan: move projEliminate behind aggEliminate (#7909) 2018-10-16 17:25:17 +08:00
1aa2528d40 planner: not convert to TableDual if empty range is derived from deferred constants (#7808) 2018-10-16 17:05:54 +08:00
6064d6482f plan: propagate constant over outer join (#7794)
- extract `outerCol = const` from join conditions and filter conditions,
  substitute `outerCol` in join conditions with `const`;
- extract `outerCol = innerCol` from join conditions, derive new join
  conditions based on this column equal condition and `outerCol` related
  expressions in join conditions and filter conditions;
2018-10-16 14:54:09 +08:00
a8f2909d40 *: remove kv.BypassLatch option and enable latch scheduler by default (#7882)
kv.BypassLatch was introduced to handle the fake transaction confliction problem
in the old implementation. After redesign of the latch scheduler, it's not
needed any more.

Enable latch scheduler makes CI to run it, we can fix bugs and make this feature
more stable.
There is a small performance penalty, less than 5%, users are free to disable it.
2018-10-15 13:49:38 +08:00
7229b32a25 *: support auto analyze partition table (#7789) 2018-10-12 20:57:59 +08:00
d21f294393 *: make explain support explain anaylze (#7827) 2018-10-12 20:01:19 +08:00
5efcacbff8 plan,executor: support IndexJoin over UnionScan (#7877) 2018-10-12 19:18:42 +08:00
48704b8420 *: fix Command and Time in show processlist (#7844) 2018-10-12 14:06:54 +08:00
dbdd806c0e *: add session variable "tidb_enable_cascades_planner" (#7879) 2018-10-12 13:21:51 +08:00
d7a59ec5a3 executor: remove some useless code and avoid some redundancy check (#7639) 2018-10-12 12:56:02 +08:00
508a83607a Changed FTWRL to produce error (#7712) 2018-10-12 10:04:22 +08:00
f6f03db6dd expression: fix warning/error info of group_concat() (#7799) 2018-10-11 17:01:47 +08:00
f3a9390d18 executor: refine the precision for avg (#7860) 2018-10-11 14:51:56 +08:00
db151bb66f domain: fix memory leak for stats (#7864) 2018-10-11 10:58:22 +08:00
38f2fe0b60 executor,infoschema: check privilege for 'show processlist' (#7858)
"show processlist" requires the PROCESS privilege.
Otherwise, the user can see only his own threads.
2018-10-10 17:50:37 +08:00
fd71236e41 ddl: fix alter add index on virtual column bug (#7575) 2018-10-10 13:50:20 +08:00
c19f8fba5c store/tikv,executor: redesign the latch scheduler (#7711)
Check maxCommitTS on each key, instead of each slot, so hash collision
will not lead to transaction retry.
2018-10-09 16:31:37 +08:00
ee0d4d6c64 executor: print arguments in execute statement in log files (#7684) 2018-10-09 15:24:25 +08:00
75d6a3ee9e executor, sessionctx: calculate radix bit number before building hash table (#7816) 2018-10-09 13:48:11 +08:00
bb8ba440e8 admin: fix admin check table compare bug (#7818) 2018-09-30 11:42:06 +08:00