Commit Graph

399 Commits

Author SHA1 Message Date
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
6f43b37572 Add admin checksum table command (#6067) 2018-03-20 20:46:43 +08:00
090f7c5e12 admin: show more information on ddl history (#6035)
* admin:address comments

* output information limit number

* handling comment questions

* handling comment questions

* Address comments

* Address comments

* Address comments

* Address comments

* Address comments

* *: fix test case

* Address comments

* Address comments

* Address comments

* Address comments

* Address comments

* Address comments

* Address comments

* Address comments

* Address comments
2018-03-16 10:07:50 +08:00
98a2640286 *: support 'admin recover index' (#5980) 2018-03-15 18:04:35 +08:00
631141b22c *: remove Next function for RecordSet (#6040) 2018-03-13 21:05:10 +08:00
e7dda3245a table, executor: fix a unique key with null (#6032) 2018-03-12 21:37:10 +08:00
0d623bd33b plan, executor: fix check index bug (#6006) 2018-03-11 14:56:17 +08:00
bf127711e9 ddl:set the low priority for the adding the index (#5976) 2018-03-09 20:19:22 +08:00
8f0477dad5 executor,distsql: Add a test that check coprocessor streaming flag (#5973) 2018-03-07 20:42:13 -06:00
86af180267 plan: decorrelation enhancement. (#5953) 2018-03-06 23:55:16 +08:00
3e1a8ed36d executor, infoschema: return a pseudo profiling table when system var profiling is set to 1 (#5960)
try fix mysql compability
2018-03-06 18:06:03 +08:00
3b1884e473 *: support check an index (#5932)
* *: check index
2018-03-05 12:30:31 +08:00
e1121814d2 *: don't import golang.org/x/net/context as goctx alias (#5895)
Now that there is no conflict with sessionctx.Context, this can be
import directly
2018-02-24 03:40:56 -06:00
4e1a114e68 *: move package context to sessionctx (#5890) 2018-02-22 18:03:38 +08:00
fcbb4c53a2 parser: parse "select 1 order by 1" statement (#5881)
* parser: parse "select 1 order by 1" statement
2018-02-14 16:08:55 +08:00
e6eb3ae9f5 executor, metrics: add metrics for expensive executors and statement nodes (#5798) 2018-02-09 12:15:20 +08:00
de9c192cba *: move mocktikv from tikv pkg (#5834) 2018-02-08 23:31:29 +08:00