Commit Graph

397 Commits

Author SHA1 Message Date
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
b4746797fc *: clone AggDesc before modifying its Mode in AggDesc.Split (#8328) 2018-11-16 15:53:22 +08:00
3742a0d602 *: Txn() function signature refactor and remove ActivePendingTxn() (#8327)
* change Txn() function signature to Txn(active bool)
* ActivePendingTxn() is not used any more because Txn() does the work
* change executor builder getStartTS() uint64 to getStartTS() (uint64, error)
2018-11-16 11:10:39 +08:00
0c3e9c1652 session,executor: run statement without transaction (#8260)
`set @@autocommit = 0`
`select 1` // This statement should not make the session enter a transaction,
because it never need Txn().
Make txn lazy initialize
2018-11-14 20:10:58 +08:00
f3a9745e2c executor: support for "admin show next_row_id" (#8242) 2018-11-09 22:08:42 +08:00
761365b31c *: avoid using columnEvaluator for the Projectin build by buildProjtion4Union (#8142) 2018-11-02 17:28:09 +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
d606b0d55f executor: fix wrong result when index join on union scan. (#8031)
Do not modify Plan of dataReaderBuilder directly, because it would
impact next batch of outer rows, as well as other concurrent inner
workers. Instead, build a local child builder to store the child plan.
2018-10-25 11:38:35 +08:00
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
d8b52b82a8 executor: improve wide table insert & update performance (#7935) 2018-10-23 18:07:54 +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
5efcacbff8 plan,executor: support IndexJoin over UnionScan (#7877) 2018-10-12 19:18:42 +08:00
d7a59ec5a3 executor: remove some useless code and avoid some redundancy check (#7639) 2018-10-12 12:56:02 +08:00
f6f03db6dd expression: fix warning/error info of group_concat() (#7799) 2018-10-11 17:01:47 +08:00
f3a9390d18 executor: refine the precision for avg (#7860) 2018-10-11 14:51:56 +08:00
05b37de16e *: use chunk grow for simple executor (#7540) 2018-09-27 09:07:51 +08:00
081920da93 planner,executor: support admin show slow command (#7785) 2018-09-26 19:28:53 +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
b2bfd8f91a executor: support load data with ignore lines (#7576) 2018-09-06 22:58:06 +08:00
e7afbb2713 *: make analyze buckets number configurable (#7619) 2018-09-06 17:16:23 +08:00
3d891d9c26 executor: fix update join result when join table order changed (#7571) 2018-09-03 14:12:35 +08:00
341dc1009c *: tidb tracing prototype (#7016) 2018-08-31 05:25:16 +08:00
bc97e2d616 plan, util/admin: fix admin check table error when a column of index is virtual generated (#6817) 2018-08-28 12:42:55 +08:00
4836aa33c3 executor: support new aggregate framework for HashAggExec (#7268) 2018-08-21 15:17:25 +08:00
d4e08853e4 executor,statistics: make query feedback work for partitioned table (#7394) 2018-08-21 11:43:48 +08:00
82a6c1085c *: introduce the concept of physical ID, code refactory (#7374) 2018-08-16 10:33:24 +08:00
cf5e392b24 executor: change joinResultGenerator to joiner (#7323) 2018-08-13 19:03:58 +08:00
be2c276fe4 executor, plan: remove Exists (#7207) 2018-08-09 22:45:24 +08:00
9eb197f754 executor: remove the old evaluate logic of stream agg (#7251) 2018-08-03 08:34:28 +08:00
67e724a5fe executor: fix a bug of update with outer join (#7177) 2018-08-02 13:47:56 +08:00
1285088127 executor, plan: support analyze partition table (#7190) 2018-08-01 16:39:08 +08:00
0ca4cc6dc8 executor, util: wrap cast upon the args for AggFunction (#7180) 2018-07-31 17:51:44 +08:00
a816f7882a table,plan,executor: support delete operation for table partition (#7147) 2018-07-30 18:25:51 +08:00
343cb849b8 *: fast path point select (#6937) 2018-07-30 18:13:47 +08:00
e3ba021f5a *: make system variable 'group_concat_max_len' work (#7080) 2018-07-26 20:02:56 +08:00
cef80b3da3 plan: converting plan to pb should not rely on Column's Position (#7105) 2018-07-24 15:59:00 +08:00
387a53a719 executor: move tidb_reader code to its named files. (#7065) 2018-07-19 22:36:07 +08:00
44e34bd304 *: index refactor for table partition (#7062) 2018-07-17 14:01:50 +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
461663652d *: support 'admin show ddl jobs <number>' grammar (#7028) 2018-07-12 14:49:14 +08:00
ab46569a50 executor: refine StreamAggExec when child is empty (#7002) 2018-07-11 14:33:48 +08:00
5bdf34b9bb plan: fix "INSERT ... ON DUPLICATE KEY UPDATE" (#6593) 2018-07-09 13:25:23 +08:00
dd37138dc0 *: support parallel hash agg (#6658) 2018-06-29 22:59:47 +08:00
3c05d77a17 executor: introduce a new execution framework for aggregate functions (#6852) 2018-06-29 16:52:56 +08:00
5a5aeb813a expression, plan: no longer call expression.Clone in plan package except ResolveIndices (#6866) 2018-06-29 16:25:26 +08:00
c5524cb238 plan, executor: use CorrelatedColumn to calculate range. (#6779) 2018-06-28 16:23:05 +08:00