Commit Graph

423 Commits

Author SHA1 Message Date
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
d2799801ae test: fix leak test (#6822)
make sure close dom/store in all test.
2018-06-12 17:14:22 +08:00
8e00ca98f4 plan, parser: fix wrong LIMIT/ORDER BY check of the UNION statement (#6783) 2018-06-08 10:52:08 +08:00
db4888a697 plan, parser: fix the wrong result of the UNION statement (#6752)
tidb diff result with mysql when mix use union and union-all fix #6731
- rename `selectStmt.UnionDistinct` to `selectStmt.IsAfterUnionDistinct`
- add explain test
- remove useless `unionStmt.Distinct` and `selectList.Distinct`
- refactor use golang slice, remove dup code
- return WrongNumColumnInSelect error and add test case
2018-06-07 17:08:26 +08:00
12a62e86b1 *: Fix select lock option for union statement (#6579)
If for update appears after order by or limit in union, then it is ignored.
If there is no order by or limit, it affects only the near select statement.

This locks both statements.
```
select * from t for update union select * from s for update;
```
This is syntax error:
```
(select * from t) union all (select * from s) for update;
```
2018-06-06 22:17:09 +08:00
7314bdc69c session: support tso when use tidb_snapshot (#6749) 2018-06-06 12:47:06 +08:00
30f16016d1 types: fix unsigned decimal check and negative overflow bugs (#6721) 2018-06-04 15:04:03 +08:00
f400c64e26 chunk: fix delete index in year type; (#6611) 2018-05-23 00:07:43 +08:00
f701c4a51d executor: rewrite TestNotFillCacheFlag to avoid data race in CI (#6543) 2018-05-18 16:36:10 +08:00
39e1db6b7b parser: fix the compatibility problem of UNION statement (#6335) 2018-05-14 15:22:49 +08:00
b3bb5e8c8f *: support warnings when using coprocessor streaming (#6544) 2018-05-13 22:10:58 -05:00
6248a74d6f plan: refactor errors (#6377) 2018-05-09 13:07:21 +08:00
60e7a50136 executor: fix a wrong result of limit operator when offset is a multiple of MaxChunkSize (#6498) 2018-05-08 16:16:31 +08:00
00d4831535 planner: Fix index name check when build plan for 'ADMIN CHECK INDEX' syntax (#6477) 2018-05-07 00:24:13 +08:00
3324d3b33c admin: admin show ddl jobs add tableName, schema name (#6276) 2018-05-06 20:53:08 +08:00
0fda3b408f executor: move IgnoreErr to StmtCtx (#6392) 2018-05-02 17:10:59 +08:00
284e70d920 ddl: enhance validation of column names when creating table (#6349)
Missed extra validation for column with dot in create table statement
2018-04-26 19:00:05 +08:00
e41b908c02 plan :fix the compatibility problem of UNION statement (#6370) 2018-04-25 14:29:15 +08:00
fb8efa5596 *: clean up code for set SQL statement priority, let it bypass plan (#6328) 2018-04-21 08:58:24 -05:00
1376b99096 session: cache global variable for a short while (#6315) 2018-04-20 16:56:52 +08:00
dbf16092b6 executor, plan: eliminate projection if the schema len is 0 (#6318) 2018-04-20 13:28:49 +08:00