Commit Graph

2212 Commits

Author SHA1 Message Date
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
0d979a24e0 ddl: fix 'show create table' result not correct when the table with a compression option (#7793) 2018-09-27 18:39:13 +08:00
86416be62f executor: fix point get null values (#7790) 2018-09-27 18:21:15 +08:00
8917a15fe1 util/timeutil: fix get tz at mojave (#7784) 2018-09-27 09:43:18 +08:00
05b37de16e *: use chunk grow for simple executor (#7540) 2018-09-27 09:07:51 +08:00
081920da93 planner,executor: support admin show slow command (#7785) 2018-09-26 19:28:53 +08:00
af3b782231 planner: fix compatibility issue that update subquery table should be forbidden (#7783) 2018-09-26 18:59:55 +08:00
cfd4544801 ddl:support show create table with compression (#7782) 2018-09-26 18:13:03 +08:00
4b5d83bcc4 domain: add recent slow queries queue and ShowSlowQuery() function (#7692) 2018-09-26 15:09:31 +08:00
0f8ee9df48 metric: add slow log metric (#7759) 2018-09-25 13:26:29 +08:00
e79bd946ed *: change package name from plan to planner (#7760) 2018-09-25 11:16:39 +08:00
1c5adf402f fix show processlist (#7765) 2018-09-21 14:59:21 +08:00
334e9254d3 *: add a variable to force statement priority of TiDB server (#7694) 2018-09-20 23:48:40 +08:00
cc09ecab22 util: add WithRecovery util method (#7666) 2018-09-20 20:21:02 +08:00
56713821ff plan: fix a problem caused by union's schema (#7680)
Before this commit. Union use the schema of its `Children[0]`.
The `Columns` information is correct.
But the `unique key information` is not, obviously.
2018-09-20 19:36:14 +08:00
4a444efa9a ddl: fix add index on timestamp column bug (#7724) 2018-09-20 15:49:10 +08:00
d47e303887 executor,sessionctx:Add correctness for system variable: sync_binlog,… (#7716) 2018-09-17 14:58:46 +08:00
9f25032666 plan: fix predicate push down for UnionScan (#7695) 2018-09-17 14:44:53 +08:00
7f6babb2b4 plan: fix mistaken conversion from outer join to inner join (#7689)
exclude upper level join conditions from predicates when simplifying
embedded outer join
2018-09-17 13:39:15 +08:00
b6a540a0f0 reuse chunk to reduce memory usage in union scan (#7717) 2018-09-17 11:34:19 +08:00
33a30cc780 executor: Fix a bug in 'INSERT ... ON DUPLICATE KEY UPDATE' (#7675) 2018-09-14 22:49:17 +08:00
29441950a3 *: write system timezone into mysql.tidb in bootstrap stage. (#7638) 2018-09-14 22:15:00 +08:00
7de83a3c8f plan: use the inferred type as the column type in the schema (#7624) 2018-09-12 20:29:50 +08:00
cb03f2bec1 move from juju/errors to pkg/errors (#7151) 2018-09-12 15:42:20 +08:00
6604e33c21 domain,executor: store topN slow query in domain (#7646) 2018-09-12 11:01:48 +08:00
b58a977289 type: make decimal default precision visible in show create table (#7667) 2018-09-12 10:29:07 +08:00
27047a0e2f executor: remove *MVMap from agg executor (#7541) 2018-09-11 21:31:48 +08:00
96e44a80f8 executor, expression: calculating the default value for datetime should consider the time zone (#7655) 2018-09-10 16:11:07 +08:00
2d62584a0c executer: make updateRecord easier to understand (#7557) 2018-09-10 16:00:32 +08:00