Commit Graph

1088 Commits

Author SHA1 Message Date
01f77b0693 plan, executor: no longer treat dml as logical/physical plan. (#5230) 2017-11-30 18:46:28 +08:00
ba1979c2de executor: support Chunk for SelectionExec (#5211) 2017-11-30 16:30:28 +08:00
db270fc661 plan, executor: remvove hasAgg field. (#5265) 2017-11-30 11:13:14 +08:00
5f468489ab util: add kvencoder package, make transfer sql to key-values be possible. (#5236) 2017-11-29 18:01:31 +08:00
cbceac701d *:fix the bug about auto-increment key after renaming a table from old DB to the another DB (#5248) 2017-11-29 15:31:16 +08:00
f49413ec86 executor: show warning for kill pid statement (#5210) 2017-11-29 13:07:37 +08:00
d8fa8ef362 *: fix lint warnings (#5259) 2017-11-29 12:57:38 +08:00
69c9e4efe4 *: limit chunk size to MaxChunkSize (#5252) 2017-11-28 21:05:30 +08:00
2e5405dc8f mock-tikv: fix table scan with point ranges (#5251) 2017-11-28 18:54:54 +08:00
5b736237fe executor: support Chunk in LimitExec (#5200) 2017-11-28 16:33:00 +08:00
6d5bb7c23e plan, executor: split selection to logical plan and physical plan. (#5235)
* plan, executor: split selection to logical plan and physical plan.
2017-11-27 22:01:45 -08:00
ae9d7f5dab *: set session variable MaxChunkSize to 2 for test (#5238) 2017-11-28 13:48:36 +08:00
4c904639cf *: add a session variable to control max chunk size (#5233) 2017-11-28 10:41:22 +08:00
f3d2a62200 executor: add test for rebuilding prepared statement plan. (#5220) 2017-11-28 01:12:07 +08:00
4f91997b56 executor: improve show full processlist tests (#5222) 2017-11-27 07:10:52 -06:00
20bd1b6842 executor: support chunk for Sort (#5221) 2017-11-27 20:39:26 +08:00
ee0d3f37a2 types, ranger: move Range to package ranger. (#5231) 2017-11-27 18:17:29 +08:00
e440ac32f4 executor: notify TiDB update privilege after alter/drop user (#5226) 2017-11-26 21:45:24 -06:00
fb610e6429 *: change executor Next() interface to Next(goctx.Context) (#5223) 2017-11-26 21:17:33 -06:00
a428e9d820 executor: support chunk for IndexLookupReader. (#5206) 2017-11-25 16:33:43 +08:00
af4e73c43a tidb: always rebuild plan for retry. (#5218)
Fixes a bug that results in index and record inconsistency.

We build UnionScan based on if transaction is dirty, but this is a runtime property, may change during retry.

To simplify the logic and avoid potential bug, always rebuild the plan for retrying statements.
2017-11-25 09:50:32 +08:00
ced6efc7f4 expression: support vectorized execution of expressions (#5184) 2017-11-22 23:41:36 +08:00
02f6bb27c7 *: remove goCtx from session struct (#5174)
1. go context should not be stored
2. change Executor interface to Open(goctx.Context)
3. many other changes forced by this refactor
2017-11-22 02:17:38 -06:00
0ff13ce876 executor: simplify logic (#5185)
* : simplify
2017-11-22 00:55:56 -06:00
aba165718c ddl: limit the length of the index name (#5161) 2017-11-22 14:08:57 +08:00
f828016e9f *: move sessionctx/domainctx.go to domain package (#5168) 2017-11-22 13:41:58 +08:00
55b8f9f1ee executor, expression: support Chunk in ProjectionExec (#5178) 2017-11-22 13:34:03 +08:00
8b15cb52b7 *: move StatementContext to its own package. (#5177) 2017-11-22 00:11:14 +08:00
16003f0d82 executor: fix missing index update when automatic updating for timestamp 5172 (#5176) 2017-11-21 19:04:54 +08:00
cd914b6611 plan, executor: remove NeedHandle field (#5144) 2017-11-21 15:20:24 +08:00
dd2812fa55 mysql, expression: support sql_mode 'PAD_CHAR_TO_FULL_LENGTH' (#5065) 2017-11-21 13:22:29 +08:00
a32b8dbcf6 *: use Chunk for TableReader. (#5142) 2017-11-21 10:08:50 +08:00
726c3a0fa9 executor: tiny refine for join (#5099) 2017-11-20 23:05:57 +08:00
b9ca00ad5f plan, executor: deep clone TopN when push it down through Join (#5158) 2017-11-20 17:24:12 +08:00
c459da6887 *: refactor executor.checkHandleExists to tables.CheckHandleExists to reuse code (#5157) 2017-11-20 16:50:22 +08:00
4a75a103e4 executor: some clean up. (#5156) 2017-11-20 15:41:12 +08:00
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