Commit Graph

133 Commits

Author SHA1 Message Date
fa37762c53 executor: tiny refactor, remove physicalTableID from the three reader (#9511) 2019-03-01 10:36:09 +08:00
40fa006cac *: collect coprocessor runtime stats for explain analyze (#9057) 2019-02-19 16:22:00 +08:00
ec833bc4d2 *: fix some lints produced by golangci-lint (#8999) 2019-01-16 16:44:49 +08:00
00c4ff4fa9 *: refactor Executor.Next() to receive RecordBatch (#8994) 2019-01-14 15:04:36 +08:00
68ddb7f0e6 *: fix the lower bound when converting numbers less than 0 to unsigned integers (#8544) 2019-01-10 16:04:07 +08:00
c137cada68 *: change golang.org/x/net/context to standard context (#8579) 2018-12-05 13:54:00 +08:00
322795439d *: record cop scan rows in explain analyze (#8423) 2018-11-28 15:43:59 +08:00
6fb260f8a6 *: redesign trace statement with json output (#8357) 2018-11-21 13:50:18 +08:00
32b1dbd8d5 *: rename "github.com/pkg/errors" to "github.com/pingcap/errors" (#8136)
We import "github.com/pkg/errors" in the code, and actually put
the "github.com/pingcap/errors" there in the vendor path.
That's a dirty hack, and prevent the introduce of Go module.
2018-11-01 16:09:07 +08:00
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
458c0d1c27 executor: refine explain analyze (#7888) 2018-10-16 20:02:43 +08:00
d21f294393 *: make explain support explain anaylze (#7827) 2018-10-12 20:01:19 +08:00
05b37de16e *: use chunk grow for simple executor (#7540) 2018-09-27 09:07:51 +08:00
e79bd946ed *: change package name from plan to planner (#7760) 2018-09-25 11:16:39 +08:00
29441950a3 *: write system timezone into mysql.tidb in bootstrap stage. (#7638) 2018-09-14 22:15:00 +08:00
cb03f2bec1 move from juju/errors to pkg/errors (#7151) 2018-09-12 15:42:20 +08:00
341dc1009c *: tidb tracing prototype (#7016) 2018-08-31 05:25:16 +08:00
82a6c1085c *: introduce the concept of physical ID, code refactory (#7374) 2018-08-16 10:33:24 +08:00
387a53a719 executor: move tidb_reader code to its named files. (#7065) 2018-07-19 22:36:07 +08:00
7c18d24933 executor, store: fixed daylight saving time issue (#6823)
Thank you for working on TiDB! Please read TiDB's [CONTRIBUTING](https://github.com/pingcap/tidb/blob/master/CONTRIBUTING.md) document **BEFORE** filing this PR.

## What have you changed? (mandatory)

During coprocessor dag task,  it first uses timezone `name`, if non-empty, to get legitimate timezone variable. To achieve this, we need to push down such data into tikv which leads to change the logic of building pushdown request. The logic I mentioned mainly resides in `executor` package. 

I change `timeZoneOffset` to `zone` and add second return parameter `name string`.  The intentioned of doing this to adopt the convention of `time` package. 

For the same purpose, I change `GetTimeZone` to `Location`. As you can see, in `time` package, timezone was bind to `Location`. 


## What are the type of the changes (mandatory)?
- Bug fix (non-breaking change which fixes an issue)


## How has this PR been tested (mandatory)?
unit-test
integration-test will be added shortly
2018-07-16 18:15:19 +08:00
afe45fd2ea mockstore,tikv: fix that mocktikv ignore latches config (#6932) 2018-06-29 17:57:43 +08:00
c5524cb238 plan, executor: use CorrelatedColumn to calculate range. (#6779) 2018-06-28 16:23:05 +08:00
fbba541156 *: move basic functions and definitions to model package, to make constructing dag request more easier. (#6652) 2018-05-26 20:39:22 +08:00
5c2d21eab4 *: remove function "NewChunk" (#6524) 2018-05-14 13:43:19 +08:00
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