Commit Graph

354 Commits

Author SHA1 Message Date
174ff27943 *: fix static check issues (#14286) 2020-01-06 16:07:15 +08:00
d006443194 type: encapsulate Time API (#14288) 2019-12-31 12:41:09 +08:00
f0d313470f executor: record lockkeys waited flag and duration in stmtctx (#14209) 2019-12-24 20:24:12 +08:00
8cbacf0d7c wasm: fix compile error for wasm (#14160)
Signed-off-by: 5kbpers <tangminghua@pingcap.com>
2019-12-23 15:17:46 +08:00
fce9870208 ddl,executor: add auto_random column option (#13127) 2019-12-23 14:51:51 +08:00
f0282d32ca executor: trace the memory usage of Selection executors (#13927) 2019-12-22 21:18:02 -06:00
352adc5b00 executor: replace the flag CastStrToIntStrict with InSelectStmt (#14115) 2019-12-18 20:45:17 +08:00
438d39ebcd *: revert #10124 and remove sql mode PadCharToFullLength (#14007) 2019-12-17 15:25:06 +08:00
a94cff903c *: refactor LockKeys API (#14020) 2019-12-11 15:05:59 +08:00
01a7d00053 executor: change pessimistic lock wait start for one statement (#13922) 2019-12-06 15:17:49 +08:00
78e3c4d885 extract hot system variables from map (#13810) 2019-12-05 10:32:39 +08:00
8fab2548d0 executor: show operators' disk consumption in results of EXPLAIN ANALYZE (#13764) 2019-12-02 17:04:29 +08:00
596fb64233 planner: support a hint to force using a IndexMerge path (#12843) 2019-11-27 15:44:25 +08:00
17ffc8031b executor: do not set priority when tidb_force_priority is set (#13633) 2019-11-22 10:51:38 +08:00
60bfdf5ba4 Revert "executor, util: rename original List to ListInMemory and add a new interface List (#13353)" (#13363)
This reverts commit 2b5f81add11497b5b5595b3ba16ac88cddf33a65.
2019-11-11 18:30:34 +08:00
2b5f81add1 executor, util: rename original List to ListInMemory and add a new interface List (#13353) 2019-11-11 15:50:43 +08:00
5fd8b4d251 executor: support innodb_lock_wait_timeout for pessimistic transaction (#13103) 2019-11-05 17:26:40 +08:00
f12403ef08 executor: support select for update no wait (#12775) 2019-11-04 17:01:40 +08:00
cb99508347 executor: change indexLookupJoin.outerResult to chunk.List (#12972) 2019-10-30 17:53:33 +08:00
9ed376ada2 util/admin: support admin check table on partition table (#12796) 2019-10-29 20:16:37 +08:00
4907685ed2 *: fix bug that the kill command doesn't work when the killed session is waiting for the pessimistic lock (#12852) 2019-10-24 17:26:12 +08:00
2dc472fc98 infoschema: add tidb_servers_info memory table (#12580) 2019-10-14 10:58:19 +08:00
f9724dbf3b executor: improve codes of stmt hints (#12246) 2019-09-18 23:50:25 +08:00
e98a869205 executor: make sure IndexReaderExecutor/TableReaderExecutor implement the Executor interface (#12020) 2019-09-17 21:34:45 +08:00
e173c7f5c1 executor: add several sql hint related to session variables (#11809) 2019-09-17 13:39:16 +08:00
304619a184 executor: fix execution info of explain analyze (#11967) 2019-09-02 16:45:35 +08:00
cc07b11082 executor: set the correct stmtCtx for explain statement (#11186) 2019-08-27 14:09:35 +08:00
1b998ce4f6 *: record index name in the slow log instead of index id (#11795) 2019-08-22 14:27:47 +08:00
b7422baebc executor: fix error check in EvalSubquery (#11802) 2019-08-21 18:19:47 +08:00
8a161721f1 planner, expression: remove TblID2Handle from Schema (#11152) 2019-08-16 13:02:16 +08:00
6d51ad33fd *: Optimize struct memory usage by adjust field order (#11629) 2019-08-13 17:20:53 +08:00
140718d230 executor: fix auto retry when transaction has select for update (#11714) 2019-08-12 16:32:15 +08:00
02ab1ed7ee executor,session: display the tree-like format of the trace statement (#11633) 2019-08-06 14:18:31 +08:00
265b654809 model: add schema name, table name to ddl job. (#11561) 2019-08-05 17:30:23 +08:00
cffd04518c executor: no need to wait for fetchInnerRows if buildHashTableForList fails, and clean code (#11571) 2019-08-02 17:07:43 +08:00
ea16273d44 executor: fix baseExecutor'children may not close (#11570) 2019-08-02 10:50:07 +08:00
576cdcdd0d executor: fix data race of "admin check table" (#11568) 2019-08-01 18:52:59 +08:00
59e3eb75cd *: speed up the operation of "admin check table" (#8572) 2019-07-31 17:11:30 +08:00
da8e7d267c executor: refactor union_scan executor by using txn_mem_buffer_reader (#10673) 2019-07-30 17:40:33 +08:00
1e1cc1f325 types: fix string to integer cast (#11295) 2019-07-26 19:10:30 +08:00
abbca5375e *: add trace support for subquery (#11182)
Test pass, auto merge by Bot
2019-07-24 19:03:47 +08:00
d244723a5e executor: remove unused structure RecordBatch (#10891) 2019-06-26 15:26:16 +08:00
dc378a2cff executor: tiny refactor the runtimeStats collection code (#10917) 2019-06-24 14:09:31 +08:00
8183f35563 executor: tiny clean up (#10875)
code refactor for the tracing related code
2019-06-20 16:35:59 +08:00
421de5ef20 executor,server: re-implement the kill statement by checking the Next() function (#10841) 2019-06-20 11:03:21 +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
7bf3d69313 *: split index region with lower upper syntax (#10409) 2019-06-06 10:47:24 +08:00
08e4bd988f store/tikv: support single statement rollback for pessimistic transaction (#10654) 2019-06-05 13:40:12 +08:00
c4db7b7655 planner, executor: fix show view privileges for explain (#10585) 2019-05-27 13:22:28 +08:00