Commit Graph

1052 Commits

Author SHA1 Message Date
14ed94132c executor: fix issue #5132, update handle id with some other unique keys report Duplicate keys. (#5138) 2017-11-20 11:06:28 +08:00
628751439a privileges: grant privilege identified by password should be hash string (#5129) 2017-11-20 10:05:46 +08:00
ee2168ed62 Remove ineffectual assignment to joinedRow (#5133) 2017-11-17 16:06:43 +08:00
81652dbeef *: remove returned value isNull in Row methods. (#5131) 2017-11-17 11:12:41 +08:00
fff58a812b executor: slow startup for double read. (#5123)
* executor: slow startup for double read.
2017-11-16 06:32:31 -06:00
693787b103 Revert "plan: covert max/min to Limit + Sort operators (#5105)" (#5127)
This reverts commit 4b669b749e437a43a8d5c2674c4bd6f8bdcdedea.
2017-11-16 19:25:22 +08:00
cf5a22b5fd *: replace *ast.Row with types.Row (#5124) 2017-11-16 18:36:28 +08:00
4b669b749e plan: covert max/min to Limit + Sort operators (#5105) 2017-11-16 15:53:36 +08:00
f8c96f1f92 plan, executor: build logical plan to check column name validation when doPrepare (#5116) 2017-11-16 13:49:55 +08:00
a67c4b1ee1 plan, executor: refine projection elimination when projection is the inner child of an outer join (#5086) 2017-11-15 04:28:07 -06:00
e362f1ed56 types: add deepcopy for update operation (#5098) 2017-11-15 14:46:24 +08:00
1ef93dc274 executor: Add debug logs (#5083) 2017-11-13 21:19:08 +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
6f8db3167c executor: pre-allocate memory for slices (#5071) 2017-11-12 21:37:00 -06:00
cedc35ca8c executor: add default database to query log (#5078) 2017-11-12 21:26:56 -06:00
a13d24cff5 executor: fix a data race in dataReaderBuilder (#5067) 2017-11-12 20:47:36 -06:00
ec9d1f0cc6 *: simplify RecordSet.Fields. (#5068) 2017-11-12 12:07:18 +08:00
7cdcc1d990 plan: return error instead of panic when subquery in join ON condition (#5062) 2017-11-10 18:27:03 +08:00
15212587e1 *: remove resolver.go (#4988) 2017-11-10 14:42:10 +08:00
ecbee2e81a executor: don't reuse Executor in IndexLookUpJoin, remove doRequestForDatums() (#5031) 2017-11-10 14:21:35 +08:00
03e23ee93a executor: refine the log msg when 'set character_set_results=null' (#5052) 2017-11-09 20:36:30 -06:00
68cd5b09c4 plan, executor: improve hash join to support all join types (#4987) 2017-11-09 10:22:35 +08:00
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