Commit Graph

1637 Commits

Author SHA1 Message Date
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
b3d4ed79b9 server, mysql: return correct column name and column label name (#7600) 2018-09-08 13:06:14 +08:00
8c44f562f5 metrics: add different labels for restricted SQL and general SQL (#7631)
The newly added label is `sql_type`, it has value: `general` and `internal`,
users can use this label to filter metrics they have interest.

Also, add keyword `[INTERNAL]` for restricted SQL printed in slow log for
convenient identification.
2018-09-07 14:23:48 +08:00
b2bfd8f91a executor: support load data with ignore lines (#7576) 2018-09-06 22:58:06 +08:00
e7afbb2713 *: make analyze buckets number configurable (#7619) 2018-09-06 17:16:23 +08:00
92e6a5af4f executor: add batch copy to inner join, left and right outer join. (#7493) 2018-09-05 15:54:04 +08:00
ac8a61ea68 executor: parallel read inner table and build hash table. (#7544) 2018-09-04 15:24:37 +08:00
3d891d9c26 executor: fix update join result when join table order changed (#7571) 2018-09-03 14:12:35 +08:00
1f2841fbd4 ddl: year type should have an unsigned flag (#7542) 2018-08-31 16:45:38 +08:00
720e8230e2 executor: only rebase auto increment ID when needed (#7515) 2018-08-31 14:24:32 +08:00
8d1acc2407 Fix bit default value bug (#7249) 2018-08-31 10:43:02 +08:00
341dc1009c *: tidb tracing prototype (#7016) 2018-08-31 05:25:16 +08:00
5823fb5169 executor: break innerTable fetcher is error happend during fetching outer table (#7554) 2018-08-30 20:31:37 +08:00
9070bb6b86 executer: fix the last_insert_id in insert on duplicate key update (#7534) 2018-08-30 14:16:30 +08:00
55af7e1472 executor: forbid user to drop important system table (#7471) 2018-08-29 23:40:53 +08:00
69d5e36ac4 *: bump go version to 1.11 (#7491) 2018-08-29 21:48:50 +08:00
28fc781474 make load_data test clean (#7536) 2018-08-29 21:15:49 +08:00
360567b1e8 executor/join : use shallow copy for semi join. (#7433) 2018-08-29 15:57:45 +08:00
1255973764 tables: make duplicate error in update clearer (#7495) 2018-08-28 15:34:39 +08:00
bc97e2d616 plan, util/admin: fix admin check table error when a column of index is virtual generated (#6817) 2018-08-28 12:42:55 +08:00
1d0d0a6666 distsql: let analyze use RC level and low priority (#7496) 2018-08-27 18:46:51 +08:00
2d1fae8e56 plan: fix insert onduplicate key update (#7406) 2018-08-27 18:08:08 +08:00
333ead673f ddl: fix admin check bug (#7359) 2018-08-21 15:34:17 +08:00
4836aa33c3 executor: support new aggregate framework for HashAggExec (#7268) 2018-08-21 15:17:25 +08:00
1dc41d8b79 add logs for replace and insert on dup (#7436) 2018-08-21 12:43:41 +08:00
d4e08853e4 executor,statistics: make query feedback work for partitioned table (#7394) 2018-08-21 11:43:48 +08:00