Commit Graph

1030 Commits

Author SHA1 Message Date
30a080db5c *: build and use count-min sketch (#5042) 2017-11-08 22:34:01 +08:00
49f2a908a6 remove read-only statement from transaction auto retry (#5026)
* *: Ignore readonly statement when retrying

* remove explain statement from retry
* remove all select statement from retry except It has setvar functions
* remove execute statement from retry if it is read-only statement
2017-11-08 19:03:05 +08:00
7891b638bc util/testkit: fix Sort (#5044) 2017-11-08 01:33:38 -06:00
0977fd07e6 *: begin opentracing from dispatch() and change interface to Execute(ctx, sql) (#5027) 2017-11-07 02:52:15 -06:00
f3cc26e2a1 executor: make batch size of index join increasing slowly. (#5022) 2017-11-07 14:29:05 +08:00
1aa2a69f92 expression: remove type assertion on types.DatumRow. (#5005) 2017-11-07 14:17:53 +08:00
bbf0b92240 executor,store/tikv: opentracing for TableReader, IndexReader, IndexLookup executor (#4937) 2017-11-06 21:20:37 -06:00
7a71b14ac1 executor: remove joinBuilder (#5019) 2017-11-06 16:01:28 +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
62433663e5 util/types: change types path (#5007)
* util/types: change types path
2017-11-04 10:37:14 -05:00
ad1c532ea5 *: remove unused package and functions (#5003)
* *: remove unused package and functions
2017-11-04 03:36:25 -05:00
c70ed24253 plan, executor: clean code. (#4994) 2017-11-02 23:32:04 +08:00
0616a2fd15 executor, distsql: remove useless code. (#4991) 2017-11-02 19:40:59 +08:00
2339a703d8 *: remove useless code in executor. (#4982) 2017-11-02 15:48:59 +08:00
e34fc447fc plan: remove old planner. (#4979) 2017-11-02 14:47:21 +08:00
5ad1eb8e24 distsql: remove xeval (#4978) 2017-11-02 14:06:54 +08:00
030b3628d5 *: Remove the check of initialized auto ID (#4971) 2017-11-02 12:24:19 +08:00
0b24d6022e plan, executor: improve index join to support all join types (#4944) 2017-11-01 15:44:22 +08:00
29153d7b20 *: opentracing for Execute,ParseSQL,Compile,runStmt (#4929) 2017-10-31 05:13:59 -05:00
35fe2cae42 ddl, statistics: resolve the package dependency. (#4960) 2017-10-31 17:13:30 +08:00
ecf07101b2 parser: Fix the bug of alter table table_options, other_alter_specification (#4931) 2017-10-31 15:07:49 +08:00
d122f5826c tidb-server,executor: add command option and log success/fail for slow-query (#4934) 2017-10-30 11:49:08 +08:00
e6f86e35d2 plan: build prepared statement plan in Optimize phase. (#4914)
When we build the `Execute` plan, the underlying plan is not built, so we don't know what the plan is before we execute it.
This PR move the plan building for prepared statement to optimizer, so we know what plan we are going to execute before we execute it.
2017-10-28 23:04:07 +08:00
25879d3649 expression: support builtin function ROW_COUNT (#4853) 2017-10-28 09:18:58 +08:00
e40ad67efa parser, executor: truncate info field for show processlist and show full processlist support (#4739) 2017-10-26 22:52:13 +08:00
d036f0ef25 plan, executor: improve merge join to support all join types (#4869) 2017-10-26 18:39:02 +08:00
37681cf435 *: opentracing for two phase commit (#4900) 2017-10-26 17:43:45 +08:00
4550e91919 ddl: Fix rename table bug (#4862) 2017-10-26 12:41:47 +08:00
2285e65cd9 excutor: tiny code cleanup (#4899) 2017-10-25 21:15:08 +08:00
a84bf5bf35 executor: use max uint64 as analyze's start timestamp (#4892) 2017-10-25 16:51:26 +08:00
3d7167273b plan: join's default value length should be changed when do column pruning. (#4882) 2017-10-25 15:44:03 +08:00
1f4fc35320 executor, plan: correct the schema type of ShowStmt (#4886) 2017-10-25 13:55:20 +08:00
b0d20c9d6b *: parse and ignore REPLICATION CLIENT/SLAVE, USAGE privileges in grant statement (#4870) 2017-10-25 00:26:53 -05:00
e96321b3f1 ranger: simple improvement for range calc for pk. (#4767) 2017-10-24 20:21:23 +08:00
ebf090b0dc plan, executor: remove some XXStmt from resolver.go (#4823)
* plan, executor: remove AdminStmt, AlterTableStmt, AnalyzeTableStmt, DropStatsStmt, CreateIndexStmt,
CreateTableStmt, DoStmt, DropTableStmt, DropIndexStmt, RenameTableStmt, SetStmt, ShowStmt from resolver.go
2017-10-24 06:16:34 -05:00
0306bb0070 tidb: support a plan cache for prepared statements (#3956)
* tidb: support a plan cache for prepared statements
2017-10-24 00:55:51 -05:00
ed7f68ca9b *: Add Row interface (#4859) 2017-10-23 11:36:28 +08:00
e15238423f executor, plan: add cast for the expr of assignments of updateList (#4850) 2017-10-20 08:58:33 -05:00
7afae3f89c *: support write slow query log into seperate files (#4804) 2017-10-20 14:22:10 +08:00
1b87bc1d55 executor: fix a select bug when handle is MaxInt64 (#4835) 2017-10-19 21:38:55 -05:00
c49c2d333d inspectkv: rename package inspectkv to admin (#4815) 2017-10-19 21:33:24 -05:00
16eb0ae33b executor: fix bug when auto_increment meets unsigned. (#4824) 2017-10-19 15:31:16 +08:00
1a987dd825 *: Support the operation of cancel DDL jobs (#4753)
* *: support cancel the DDL job
2017-10-18 22:28:04 -05:00
b9bf914312 *: dummy implementation for show profiles statement (#4795)
* *: dummy implementation for show profiles statement

* address comment
2017-10-17 03:27:12 -05:00
d5a26905ef parser: add int1, int2, int3, int4, int8 type support (#4803) 2017-10-17 03:15:33 -05:00
e452dc51aa *: add schema state check (#4801) 2017-10-17 15:52:20 +08:00
21c21973c0 executor: make slow-query log more terminal friendly (#4764) 2017-10-16 06:03:03 -05:00
4bfa5faf63 executor: Add unit test case for ShowExecutor. (#4763) 2017-10-16 10:50:14 +08:00
a34964a36a *: improve the column info for client (#4770)
Add table/database info in the response message.
2017-10-15 08:27:13 -05:00