Commit Graph

109 Commits

Author SHA1 Message Date
aa76a6eeba plan, executor: correlated column can be pushed down. (#6403) 2018-05-07 19:43:02 +08:00
357d5df66b remove useless alias (#6473) 2018-05-05 22:36:54 +08:00
12dbd32854 *: rename NewRange to Range. (#6368) 2018-04-25 13:13:04 +08:00
fb8efa5596 *: clean up code for set SQL statement priority, let it bypass plan (#6328) 2018-04-21 08:58:24 -05:00
ccf6da1a46 *: rename NextChunk to Next (#6214) 2018-04-03 20:00:30 +08:00
9c4cef8e04 executor: remove unused codes (#6193) 2018-03-30 19:38:07 +08:00
f89f48b799 executor: remove Next function of IndexReaderExecutor (#6165) 2018-03-30 14:20:07 +08:00
8941ba91a1 executor: Remove Next() in IndexLookUpExecutor (#6145) 2018-03-28 19:52:47 +08:00
936d7b7d29 executor, memory: detach from parent when executor is closed (#6148) 2018-03-28 15:52:34 +08:00
aa04cb6488 executor: delete the obsolete Next() function in TableReaderExecutor (#6146) 2018-03-26 21:50:32 +08:00
adfec7a822 executor: push some flags down to coprocessor (#6149) 2018-03-26 17:46:16 +08:00
4886dcb1c4 executor: track the memory usage of IndexLookUpExecutor (#6009) 2018-03-20 12:55:12 +08:00
0553deeb42 *:improve code readability and unified aliases (#5997) 2018-03-15 10:52:36 +08:00
6a826fd0aa *: collect query feedback (#5909) 2018-03-12 15:37:09 +08:00
025ff38edf executor: log the function stack when recovering from a panic (#6010) 2018-03-12 09:50:34 +08:00
2c3933464b plan, executor: remove the duplicate function of setPBColumnsDefaultValue (#5967) 2018-03-07 15:48:55 +08:00
5461718c65 executor,distsql: set streaming flag for coprocessor request based on executor's type (#5916)
Decide whether a executor support streaming, TableScan/IndexScan/Selection support it.
If a coprocessor request need some operations like aggregation or topn, it's meanless
to use streaming for the request.
2018-03-05 21:21:28 -06:00
3b1884e473 *: support check an index (#5932)
* *: check index
2018-03-05 12:30:31 +08:00
fb69fa9a91 executor: add recover mechanism for index lookup reader workers (#5913) 2018-02-28 13:46:48 +08:00
15cf32d4dc executor: some move some function position about index lookup reader (#5910) 2018-02-26 23:05:52 +08:00
27c65d25bb executor, distsql: move "requestBuilder" from package "executor" to "distsql" (#5903) 2018-02-26 12:46:51 +08:00
e1121814d2 *: don't import golang.org/x/net/context as goctx alias (#5895)
Now that there is no conflict with sessionctx.Context, this can be
import directly
2018-02-24 03:40:56 -06:00
12c87929b8 *:fix some golint && ineffassign && misspell to improve GoReport Result (#5867) 2018-02-23 19:31:05 +08:00
4e1a114e68 *: move package context to sessionctx (#5890) 2018-02-22 18:03:38 +08:00
6e33a6a081 distsql, executor: rename "SelectDAG" to "Select" (#5887) 2018-02-22 10:57:40 +08:00
08720d01f9 executor: add more comments (#5728) 2018-02-08 19:55:59 -06:00
5d91dbd5a1 executor: pass operator label from Plan to Executor (#5821) 2018-02-08 13:33:11 +08:00
23bff274a0 distsql, metrics: refine distsql metrics. (#5774)
Refine distsql metrics && Add scan keys metrics.
2018-02-02 21:53:22 +08:00
47cbc0bfce *: remove varsutil package, make Systems a private member of SessionVars (#5544) 2018-01-25 01:43:07 -06:00
307e642565 store/tikv: remove WithCancel in copIterator. (#5701)
Since we already have `finished` channel to make the worker exit, we don't need to select
on `ctx.Done`, instead, we can only select `ctx.Done` in `Next`, and close the `finished` channel.

This avoid the cost to create context by `WithCancel` and select on extra channel.
2018-01-23 17:56:13 +08:00
888bc2a602 *: uniform the way to iterate rows within a Chunk (#5674) 2018-01-22 11:34:04 +08:00
b020c7c564 executor: improve the sort efficiency on "lookupTableTask.rows" (#5675) 2018-01-18 20:32:13 +08:00
6fb97e8f25 executor: correct the unsigned pk's behavior. (#5641) 2018-01-16 18:21:10 +08:00
3ce567630b executor: store column's fieldType in executor (#5619) 2018-01-12 16:57:31 +08:00
4136b81c23 *: merge IntColumnRange with NewRange. (#5591) 2018-01-10 15:50:58 +08:00
ecbd60c3ff *: add arguement StatementContext to Encode functions. (#5566) 2018-01-06 17:31:08 +08:00
c19307c41c util, executor: refactor Chunk.AppendRow to handle virtual row (#5563) 2018-01-05 12:35:21 +08:00
fa62e9fd01 *: merge ranger.IndexRange and ranger.ColumnRange. (#5485) 2017-12-26 16:08:36 +08:00
90401445d2 *: collect and store query feedback (#5438) 2017-12-22 11:33:05 +08:00
103f6b37f0 plan, executor: index join enhancement. (#5425) 2017-12-21 16:47:44 +08:00
f1e89cde19 *: use lower-case of github.com/sirupsen/logrus (#5400)
*: rename github.com/Sirupsen/logrus to github.com/sirupsen/logrus

* vendor: update pd

* vendor: update github.com/pingcap/tipb/go-mysqlx
2017-12-14 16:25:58 +08:00
a2fb741191 *: Chunk add context parameter (#5348) 2017-12-09 11:23:40 +08:00
a1b1bb45e8 executor: support Chunk for TopN. (#5260) 2017-12-04 22:00:05 +08:00
0604183023 executor: set priority for IndexLookupExecutor when reading table (#5288) 2017-12-03 23:46:52 +08:00
69c9e4efe4 *: limit chunk size to MaxChunkSize (#5252) 2017-11-28 21:05:30 +08:00
4c904639cf *: add a session variable to control max chunk size (#5233) 2017-11-28 10:41:22 +08:00
ee0d3f37a2 types, ranger: move Range to package ranger. (#5231) 2017-11-27 18:17:29 +08: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
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