Commit Graph

415 Commits

Author SHA1 Message Date
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
f994f4f987 *: clean up MvccStore in mocktikv (#6256)
* *: clean up MvccStore in mocktikv
2018-04-11 10:30:27 +08:00
ccf6da1a46 *: rename NextChunk to Next (#6214) 2018-04-03 20:00:30 +08:00
a6976c0ca9 ddl:support alter table comment (#6127) 2018-04-02 11:43:12 +08:00
8e431aab3f executor,store: make leak test more stable (#6196) 2018-03-30 20:30:29 +08:00
0d785473d2 executor, plan: convert Limit to TableDual when meet limit 0 (#6185) 2018-03-29 21:56:35 +08:00
3ff51fb7e9 store/tikv: fix a potential goroutine leak problem in copIterator (#6140)
copIterator.Close() closes finished channel and wait for worker goroutines to
exit, worker goroutine send response to channel but nobody receive from the
channel (copIterator already closed), so those goroutine leak and Close() function
hang forever.

Change the worker goroutine to check both response channel and finished channel.
2018-03-26 02:48:29 -05:00
4ac14515bd store/tikv,mocktikv: tikv.Client.SendRequest API tiny refactor (#6103)
rename SendReq to SendRequest, add a timeout parameter,
and more elegant code for timeout API
2018-03-26 00:42:18 -05:00
f287451eed tidb: move tidb/*.go to session directory (#6062)
This change makes our top level directory clean.
2018-03-20 09:06:11 -05:00