Commit Graph

443 Commits

Author SHA1 Message Date
29f14d4178 *: change default charset and collation from 'utf8 utf8_bin' to 'utf8mb4 utf8mb4_bin' (#7965) 2018-11-09 16:32:21 +08:00
fffb49bce6 *: modify tests to work with only-full-group-by on (#8163) 2018-11-05 10:41:48 +08:00
761365b31c *: avoid using columnEvaluator for the Projectin build by buildProjtion4Union (#8142) 2018-11-02 17:28:09 +08:00
dd65caac31 planner: fix issue#8135 (#8143) 2018-11-02 14:31:11 +08:00
8ed433036b planner: refine PhysicalProjection.ResolveIndices during neighbouring Proj (#8073) 2018-11-02 13:42:12 +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
c23a30c1bb planner/core: fix index resolution on PhysicalIndexReader (#8118) 2018-10-31 16:13:18 +08:00
3febc22811 expression: fix cast json to decimal bug. (#8030) 2018-10-29 17:02:32 +08:00
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
76f84f4536 executor, planner: clone proj schema for different children in buildProj4Union (#7999) 2018-10-23 13:34:03 +08:00
1d3bb7b47f executor: fix panic when limit is too large (#7936) 2018-10-18 14:33:18 +08:00
de931ca953 planner, executor: refine ColumnPrune for LogicalUnionAll (#7930) 2018-10-18 13:30:32 +08:00
1bb15f14fa admin: fix admin check table bug of byte compare (#7887)
* admin: remove reflect deepEqual
2018-10-16 18:24:58 +08:00
dbdd806c0e *: add session variable "tidb_enable_cascades_planner" (#7879) 2018-10-12 13:21:51 +08:00
d7a59ec5a3 executor: remove some useless code and avoid some redundancy check (#7639) 2018-10-12 12:56:02 +08:00
db151bb66f domain: fix memory leak for stats (#7864) 2018-10-11 10:58:22 +08:00
fd71236e41 ddl: fix alter add index on virtual column bug (#7575) 2018-10-10 13:50:20 +08:00
8917a15fe1 util/timeutil: fix get tz at mojave (#7784) 2018-09-27 09:43:18 +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
b3d4ed79b9 server, mysql: return correct column name and column label name (#7600) 2018-09-08 13:06:14 +08:00
b2bfd8f91a executor: support load data with ignore lines (#7576) 2018-09-06 22:58:06 +08:00
3d891d9c26 executor: fix update join result when join table order changed (#7571) 2018-09-03 14:12:35 +08:00
333ead673f ddl: fix admin check bug (#7359) 2018-08-21 15:34:17 +08:00
6e7d75299d test: refine test (#7414) 2018-08-16 17:05:59 +08:00
7f286f5c12 types: add one more space to make json pretty (#7389) 2018-08-16 11:04:39 +08:00
1f8710762d execute/insert: refine data truncate error msg (#7401) 2018-08-16 00:02:45 +08:00
5404e2eaae ddl: add admin check before drop table using building flag. (#7343) 2018-08-14 21:44:57 +08:00
fc89a6421a expression,ddl: fix fraction part handle of current_timestamp (#7355) 2018-08-14 13:20:01 +08:00
9667eca8e4 executor: MaxOneRow operator should keep its promise (#7375) 2018-08-14 12:44:07 +08:00
702a116a5e admin: fix admin check table false alarm in the case that index contains pkIsHandle column (#7317) 2018-08-09 17:37:47 +08:00
22519aefc2 *: update import path from coreos/gofail to etcd-io/gofail to fix ci (#7329) 2018-08-09 15:48:01 +08:00
18aae131bf test: fix data race in executor_test.go/checkRequestClient (#7326) 2018-08-09 10:02:13 +08:00
cd458038f5 infoschema: fix information schema data race (#7318) 2018-08-08 21:55:51 +08:00
359df6ecc2 variable, ddl: add session variable 'tidb_ddl_reorg_priority' to set operation priority of ddl reorg (#7116) 2018-08-08 17:16:05 +08:00
6178cfd225 *: fixed some typo. (#7277) 2018-08-05 13:50:51 +08:00
67e724a5fe executor: fix a bug of update with outer join (#7177) 2018-08-02 13:47:56 +08:00
8739d80db0 executor: fix big_unsigned_int union decimal sign bug (#7202) 2018-07-31 21:21:22 +08:00
343cb849b8 *: fast path point select (#6937) 2018-07-30 18:13:47 +08:00
a8012590dc *: fix union result when mix signed/unsigned columns (#7112) 2018-07-30 13:48:44 +08:00
b5f9b35a45 plan: refactor the code of building Insert. (#7068) 2018-07-25 22:41:42 +08:00
9cf670a324 *: cut off duration.fsp in chunk (#7043) 2018-07-17 15:36:27 +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
5f6e36241c support generation_expression (#7017) 2018-07-09 20:06:27 +08:00
8db5811cb6 *: 'load data' should not use latches (#6927)
'load data' is not retryable when it meets conflicts, while latches may result in
false positive transaction conflicts. so enable latches will lead to 'load data'
abort abnormally, even there are no conflicts.
2018-07-02 11:53:12 +08:00
dd37138dc0 *: support parallel hash agg (#6658) 2018-06-29 22:59:47 +08:00
ab332eba2a executor: BadNullError should be ignored by insert ignore statement (#6465) 2018-06-29 13:15:31 +08:00
e2c8c4e975 executor: init builder startTS in buildTableDual (#6830) 2018-06-13 20:03:57 +08:00