Commit Graph

376 Commits

Author SHA1 Message Date
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
c92b3056c0 *: refine code for StmtTxn (#5763) 2018-02-08 07:07:12 -06:00
ae8e5941ea *: clean up abandoned storage engine (#5808) 2018-02-07 00:19:32 -06:00
24333b3b29 *: don't record binlog when statement rollback (#5699) 2018-01-25 06:50:57 -06:00
88b8740724 *: avoid the generation of mysql.TypeNewDate (#5705) 2018-01-23 21:41:02 +08:00
0b23ff48a6 *: execute statement meets error should make no side effect (#5678) 2018-01-22 13:49:29 +08:00
6fb97e8f25 executor: correct the unsigned pk's behavior. (#5641) 2018-01-16 18:21:10 +08:00
0e61c85918 store/tikv: call Next() after copIterator closed lead to goroutine leak (#5624) (#5654) 2018-01-16 15:32:58 +08:00
4c63b26270 plan: fix issue#5570. (#5574) 2018-01-08 16:41:03 +08:00
8b149c3323 Prealloc / collides with package name (#5560) 2018-01-05 19:15:54 +08:00
04ef7d7992 *: shard implicit row ID (#5513) 2018-01-04 16:32:41 +08:00
36d9b61365 *: AddIndex skip checking unique constraint when TiDB is importing data. (#5535) 2018-01-02 20:08:49 +08:00
cc0c09820d executor, plan: reading from memtable should only take the needed columns (#5481) 2017-12-25 15:15:18 +08:00
6ca4382dba *: fix update JSON field. (#5345) 2017-12-11 11:39:14 +08:00
0604183023 executor: set priority for IndexLookupExecutor when reading table (#5288) 2017-12-03 23:46:52 +08:00
6c68e41f73 store/tikv: use go fail for some tests. (#5280)
* store/tikv: use go fail for some tests.
2017-12-01 08:20:30 -08:00
5f468489ab util: add kvencoder package, make transfer sql to key-values be possible. (#5236) 2017-11-29 18:01:31 +08:00
d8fa8ef362 *: fix lint warnings (#5259) 2017-11-29 12:57:38 +08:00
2e5405dc8f mock-tikv: fix table scan with point ranges (#5251) 2017-11-28 18:54:54 +08:00
ae9d7f5dab *: set session variable MaxChunkSize to 2 for test (#5238) 2017-11-28 13:48:36 +08:00
fb610e6429 *: change executor Next() interface to Next(goctx.Context) (#5223) 2017-11-26 21:17:33 -06:00
02f6bb27c7 *: remove goCtx from session struct (#5174)
1. go context should not be stored
2. change Executor interface to Open(goctx.Context)
3. many other changes forced by this refactor
2017-11-22 02:17:38 -06:00
f828016e9f *: move sessionctx/domainctx.go to domain package (#5168) 2017-11-22 13:41:58 +08:00
b9ca00ad5f plan, executor: deep clone TopN when push it down through Join (#5158) 2017-11-20 17:24:12 +08:00