84432823b3
refactor the logic of load data batch insert, make batchCheckGet happen once per transaction ( #11132 )
2019-07-12 13:36:58 +08:00
5c436bb1d6
planner: support subquery in SHOW statement ( #10942 )
2019-07-11 23:56:51 +08:00
4a1374d93a
planner: fix bug when pruning columns for TableDual ( #11054 )
2019-07-11 20:26:03 +08:00
9385c6eca0
executor: fix a bug of 'insert on duplicate update' statement on partitioned table ( #11204 )
...
In this statement: insert into t1 set a=1,b=1 on duplicate key update a=1,b=1
Batch checker find a=1,b=1 is duplicated, then in the "on duplicate update" step,
it uses the non-partitioned table to get the old row, which is a bug.
getOldRow returns this error: (1105, u'can not be duplicated row, due to old row not found. handle 1 not found')
2019-07-11 15:24:27 +08:00
53f8a2c366
executor, metrics: add metrics for fast analyze. ( #11079 )
2019-07-11 14:36:28 +08:00
47f449a07d
executor: explain analyze panic when processing explain analyze insert ... select ... ( #11162 )
2019-07-11 11:18:00 +08:00
b43668da82
planner: fix union scan on partition table bug ( #11187 )
2019-07-11 11:00:44 +08:00
66f5754c68
*: add trace support for the AllocAutoIncrementValue function ( #11158 )
2019-07-10 15:07:42 +08:00
c8794803b5
*: add admin cleanup table lock syntax support ( #10423 )
2019-07-10 12:54:09 +08:00
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
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