Commit Graph

2103 Commits

Author SHA1 Message Date
04cfda8699 *: add show table regions syntax (#10612) 2019-07-10 11:54:52 +08:00
89baed8e17 ddl: scatter the regions of table when creating them (#10980) 2019-07-10 11:09:14 +08:00
bd4130d1f3 executor: fix privilege check for 'show create user current_user()' (#11142) 2019-07-09 19:45:33 +08:00
8104494b91 plugin: support dynamic enable/disable plugins (#11122) 2019-07-09 13:02:50 +08:00
2ef4c5c35d executor, test: skip TestPBMemoryLeak to reduce unit test time cost (#11073) 2019-07-08 22:47:31 +08:00
a737d26e4f *: add tidb_enable_noop_functions to default disable get_lock()/release_lock() (#10987)
* issue#4100 add new variable to default disable usage of get_lock and release_lock functions
2019-07-08 13:47:36 +08:00
58f5632b90 executor: make TestShowAnalyzeStatus more stable (#11090)
If TestShowAnalyzeStatus run parallelly with others, the results would be affected.
use a new testShowStatsSuite for it.
2019-07-05 10:56:27 +08:00
9eb2379565 executor: fix invalid key error of fast analyze (#11072) 2019-07-04 19:51:34 +08:00
ray
862a2beba5 - make generated column ref in insert set available (#11042)
- change generated column calculation later in fillValue, resolve related compatible problems
2019-07-04 17:43:58 +08:00
53a1ce6075 executor, infoschema: fix display of default CURRENT_TIMESTAMP with decimal (#11070) 2019-07-04 16:44:12 +08:00
e1f2b3728d *: make assertion check more reasonable (#10424)
Make sure there are no "ASSERTION fail" logs in session and executor unit test
2019-07-04 16:20:38 +08:00
ce0312bd43 executor: handle unsigned primary key for fast analyze (#11074) 2019-07-04 16:08:39 +08:00
ea6b865c08 executor: fix a logical error which is introduced in a previous refactor (#11060) 2019-07-04 11:46:03 +08:00
027851fe3b executor: fix two data races in tests (#11062) 2019-07-04 10:41:48 +08:00
ff82b62b97 *: refactor the optional arguments for table.AddRecord and index.Create (#11018) 2019-07-02 15:51:29 +08:00
cb23b524ac *: directly save prepare execute args as datums in binary proto (#10884) 2019-07-02 13:49:06 +08:00
5886bb90d1 executor: let flush privileges do nothing when skip-grant-table is configured (#10986)
When skip-grant-table is enabled, privilege handle is not initialized, calling flush privileges
would meet nil pointer panic
2019-07-02 10:44:30 +08:00
08d821931d executor: fix point get snapshot TS for pessimistic transaction. (#11012) 2019-07-01 19:26:25 +08:00
1916effb04 *: fix oom action cancel bug (#10993) 2019-07-01 13:40:54 +08:00
f29b36ca1d *: fix malformed SQL statements in test (#10992) 2019-07-01 10:37:35 +08:00
b63a8bfedf meta: make auto increment id can be adjust. (#10978) 2019-06-28 22:26:08 +08:00
2e369cd520 planner,executor: relax the restrictions of trace format='row' (#10979) 2019-06-28 16:47:33 +08:00
0d984d8ffc executor: locks key in point get executor for pessimistic transaction (#10972) 2019-06-28 14:06:43 +08:00
0d563f1e2d stats: fix unstable test (#10953) 2019-06-27 13:51:16 +08:00
d244723a5e executor: remove unused structure RecordBatch (#10891) 2019-06-26 15:26:16 +08:00
a57b6e60a6 *: Add support for MAX_EXECUTION_TIME. (#10541) 2019-06-25 01:18:11 +08:00
c5a157a883 *: revert all of the radix-join-related commits (#10926) 2019-06-24 23:35:15 +08:00
a935d93990 *: support IF EXISTS/IF NOT EXISTS for some DDLs (#10723) 2019-06-24 19:46:26 +08:00
91b889d2b5 store/tikv: fix insert on dup update for pessimistic transaction (#10905) 2019-06-24 14:56:46 +08:00
dc378a2cff executor: tiny refactor the runtimeStats collection code (#10917) 2019-06-24 14:09:31 +08:00
c59028a2b5 *: let baseFuncDesc.typeInfer return error instead of panic (#10910) 2019-06-24 13:09:14 +08:00
b26cb0d93c stats: fix the index cm sketch for fast analyze (#10839) 2019-06-22 12:55:14 +08:00
c8d1ff7ca6 *: replace 'logutil.Logger(context.Background())' with 'logutil.BgLogger()' (#10866) 2019-06-21 19:13:31 +08:00
8183f35563 executor: tiny clean up (#10875)
code refactor for the tracing related code
2019-06-20 16:35:59 +08:00
9dd32e84c6 *: rename and add tidb_wait_split_region_timeout session variable to set wait split region timeout. (#10797) 2019-06-20 14:57:35 +08:00
8c81e434db stats: correct fast analyze stats caclulation (#10766) 2019-06-20 14:01:55 +08:00
75b9470a74 *: add a column describing memory usage for table information_schema.processlist (#10837)
*: add a column describing memory usage for table information_schema.processlist

Closes #10199
2019-06-20 11:48:49 +08:00
421de5ef20 executor,server: re-implement the kill statement by checking the Next() function (#10841) 2019-06-20 11:03:21 +08:00
711582a674 executor: log inconsistent handles when inconsistent-check fail in IndexLookupReader (#10838) 2019-06-19 20:07:31 +08:00
90096b3da5 executor: fix wrong row count in fast analyze (#10859) 2019-06-19 19:45:58 +08:00
f6be085bc6 executor: tiny refactor the Executor interface (#10846)
Introduce a base() method to get the baseExecutor, so we don't need to add
method from baseExecutor to the Executor interface any more

Before:
```
type Executor interface {
	Open(context.Context) error
	Next(ctx context.Context, req *chunk.RecordBatch) error
	Close() error
	Schema() *expression.Schema

	retTypes() []*types.FieldType
	newFirstChunk() *chunk.Chunk
}
```

After:
```
type Executor interface {
        base() *baseExecutor
	Open(context.Context) error
	Next(ctx context.Context, req *chunk.RecordBatch) error
	Close() error
	Schema() *expression.Schema
}
```
2019-06-19 15:55:28 +08:00
b0d6c5b35b *: print an expensive query log when a query is out of memQuota (#10799) 2019-06-18 16:18:48 +08:00
beb8268d85 executor: fix the issue that pb memory cannot be released quickly (#10815) 2019-06-18 15:51:34 +08:00
612936bbd4 *: Support LOCK/UNLOCK TABLES feature (#10343) 2019-06-18 15:38:04 +08:00
c59a108c28 ddl, expression: Disallow add stored generated columns through ALTER TABLE (#10758) 2019-06-13 21:14:40 +08:00
2b611274e3 domain: load stats when stats lease is 0 (#10771) 2019-06-13 15:28:56 +08:00
7d27fa63d3 ddl, table: allow using SHARD_ROW_ID_BITS with auto_incremental columns (#10759) 2019-06-12 20:43:29 +08:00
cd8c4e6e37 *: add a blacklist to disallow pushing down specific expressions (#10688) 2019-06-12 13:54:33 +08:00
fbf58fc9b5 planner: fix wrong selectivity for inner selection in index join (#10633) 2019-06-12 12:50:14 +08:00
980f5bbf4f executor: speed up unit tests in executor package (#10769) 2019-06-12 11:26:24 +08:00