Commit Graph

22 Commits

Author SHA1 Message Date
122195718b executor: fix log format and add transaction start TS. (#2469) 2017-01-15 13:34:37 +08:00
554293a73e executor: add more information on slow dist sql. (#2451) 2017-01-13 14:41:11 +08:00
dd4dcfee36 fix primary key's type (#2222)
* executor: fix primay key type error

When we do single read index scan, primay key's type should be determined
by it's flag.

* executor: add test

* executor: format code:

* executor: address comment
2016-12-12 01:35:22 -06:00
1b8051d3c5 *: set and use Flags to properly handle truncate error (#2212) 2016-12-12 11:45:58 +08:00
379363266e plan: optimize the filter condition push down logic when do index double read (#2166)
Origin design will put index conditions into table scan, but it can
be pushed down into index scan.
2016-12-07 17:02:16 +08:00
8d42cc059e vendor: update tipb, add flags and warnings. (#2189) 2016-12-07 16:25:21 +08:00
74a1c9935d *: add StatementContext argument to functions. (#2157)
Add StatementContext argument to more functions where it is needed.
2016-12-02 23:28:11 +08:00
5230f5eabd variable: define StatementContext. (#2121)
StatementContext is used to hold statement execution mode and state.
As every computation need this, there are many API changes.
2016-11-29 14:25:38 +08:00
0af8520a78 sessionctx/variable: remove dependency on context package. (#2064)
Makes using session variable easier and faster.
Prepare for use session variable to handle data truncated error.
2016-11-23 14:39:48 +08:00
5b21b001da executor: when we fetch 100000 records from index scan, log it. (#1990) 2016-11-14 13:16:22 +08:00
cbf024e8f7 *: clean code. (#1987) 2016-11-10 15:38:22 +08:00
88a66a57ea *: Improve test for push down. (#1927) 2016-11-07 11:42:05 +08:00
1f1a60c02a *: improve log (#1944)
Add logging for set system variable.
Add connection ID in log.
Adjust some log level.
Improve readability.
2016-11-04 17:11:10 +08:00
5d1a069ada executor: set scanConcurrency varialbe for distsql Executor on building. (#1943)
Prevent worker goroutines from reading session variable map, Fixes race.
2016-11-04 09:46:00 +08:00
1550e76e6c executor: add comments in executor package. (#1876)
* executor: add comments in executor package.
2016-10-31 10:51:17 +08:00
efc96a73a6 *: Support set dist sql concurrency by set system variable (#1795) 2016-10-17 15:12:17 +08:00
8935bf90ec executor: set time zone offset in tipb.SelectRequest. (#1816)
The time zone offset will be used by TiKV to compare timestamp type.
2016-10-11 17:13:45 +08:00
9b9c01100e plan: support topn push down in plan phase. (#1769) 2016-10-11 15:17:00 +08:00
b7e826e0e1 executor: remove aggregate and push down functions. (#1777)
The logic has been move to plan.
2016-09-28 22:29:19 +08:00
2456804b25 remove useless code. (#1745) 2016-09-20 21:42:57 +08:00
ade11fe9f4 *: support history read. (#1734)
* *: support history read.

This commit only handles the case when scheme does not change.
Use history schema will be supported in the following PR.
2016-09-19 15:37:30 +08:00
efa2db0b05 *: Rename xapi to distsql (#1725)
distsql is a more clear name.
2016-09-14 10:20:33 +08:00