Commit Graph

2290 Commits

Author SHA1 Message Date
e80bab6d46 fix the STR_TO_DATE incompatible between MySQL and TiDB (#12623)
Signed-off-by: Lonng <heng@lonng.org>
2019-10-15 17:51:25 +08:00
4a43daa882 planner: handle single partition in IndexJoin correctly (#12581) 2019-10-15 11:26:03 +08:00
cc991d90d3 executor: support index lookup merge join in executor. (#12024) 2019-10-14 19:21:33 +08:00
a64ee14279 executor: support projection as inner child of index join (#12640) 2019-10-14 17:51:50 +08:00
99a4e602fb *: support split partition table region (#12213) 2019-10-14 15:40:45 +08:00
cf6dd376a3 table: avoid write untouched index in auto commit and avoid get untouched index key from tikv (#12609) 2019-10-14 11:02:54 +08:00
2dc472fc98 infoschema: add tidb_servers_info memory table (#12580) 2019-10-14 10:58:19 +08:00
03addcbf0f executor: do not return first row until the frame is completed. (#12480) 2019-10-12 19:38:03 +08:00
7ffa4500e6 planner: support a hint to read from tiflash in planner (#12479) 2019-10-11 16:36:35 +08:00
fbf0d90c06 executor: error processing refactor for load data (#12465) 2019-10-11 13:01:32 +08:00
ebc122bb48 *: support where in admin show ddl jobs statement (#12484) 2019-10-11 10:47:13 +08:00
c0d6185144 planner: implement the BatchPointGetPlan to improve the BatchPointGet performance (#12322) 2019-10-10 16:56:03 +08:00
01cddf63d9 dml : Multiple rows insert in a statement should have consecutive autoID if needed. (#11876)
* consecutive id

* add AllocN interface func for util/kvencoder/allocator.go

* fix allocN test

* fix allocN tests

* fix allocN test 1

* fix allocN test 2

* fix allocN test 3

* fix allocN test 4

* fix cache

* add auto consecutive increment id in insert executor

* add auto consecutive increment id comment in insert executor

* try fix test case

* fix session_test.TestAutoIncrementID autoid overflow

* fix session_test.TestAutoIncrementID unsighed autoid overflow

* fix autoid usigned computing overflow

* fix conflict with suli's PR

* fix index out of range

* merge similar function

* delete fillRowLazy

* fix commment

* fix bug of rebase

* fix auto.go maxUint64 will be allocated

* fix maxInt64 autoid allocated

* fix batch rowIdx update

* add maxUint64 and maxInt64 limit in allocN

* reconstruct the autoid lazy alloc

* fix format

* remove commnet

* use new kind of logutil.logger(ctx) instead of logutil.BgLogger()

* combine alloc() and allocN together

* remove cache of hasValue

* remove cache of hasValue

* remove cache of hasValue

* remove cache of hasValue

* add test : autoID can find in retryInfo

* add test : autoID can find in retryInfo

* extract retry logic

* extract retry logic

* Update executor/insert_common.go

Co-Authored-By: bb7133 <bb7133@gmail.com>

* Update executor/insert_common.go

Co-Authored-By: bb7133 <bb7133@gmail.com>

* fix comment

* fix comment

* fix comment

* fix comment

* fix comment

* return min and max instead of slice in alloc autoid

* return min and max instead of slice in alloc autoid

* return min and max instead of slice in alloc autoid

* add comment for alloc N
2019-10-10 10:34:44 +08:00
a177d46663 executor: add index hash join benchmark (#12564) 2019-10-09 17:02:46 +08:00
4642b54de4 log: move autocommit varable value into connection info (#12310) 2019-10-09 14:01:20 +08:00
253cd1f8ab session: remove the mockFail field from txnFuture (#12545)
Signed-off-by: Lonng <heng@lonng.org>
2019-10-08 23:30:47 +08:00
3e8129d59e executor,sessionctx: add correctness for system variables (#12311) 2019-10-08 16:20:52 +08:00
5b3df63ced executor: case refactor for point execution (#12486) 2019-09-30 16:10:08 +08:00
41ac571d7b *: remove the LightningMode from TiDB (#12466) 2019-09-29 15:12:01 +08:00
99a5432dce *: encode the returned data using the Chunk format in mocktikv (#12023) 2019-09-28 20:02:26 +08:00
ba9d1ca960 *: adjust delta schema count and add metrics (#11625) 2019-09-27 20:33:18 +08:00
a582640dc3 executor: make point updates go short path (#12243) 2019-09-27 18:36:01 +08:00
095bee9655 executor: support table reader executor read from tiflash. (#12371) 2019-09-27 15:31:04 +08:00
854e68dc69 executor: display column collate in show create table (#12327) 2019-09-27 15:11:01 +08:00
2bba5654b4 types/data: the bit data type should be treat as uint64 (#11951) 2019-09-26 19:14:31 +08:00
20bdf44d12 ddl: fix the set's default value where create table (#12267) 2019-09-26 12:18:20 +08:00
74eaf327e9 *: log each com_stmt_fetch separately (#11987) 2019-09-25 17:57:16 +08:00
e41458983c executor: record slow-log when log use error level (#12359) 2019-09-25 13:16:15 +08:00
b25b703c1d tikv: make region request can send to flash store (#11652) 2019-09-25 11:00:15 +08:00
1f922559df executor: implement disk-based hash join (#12067) 2019-09-24 23:23:05 +08:00
1fe9773726 planner: introduce an individual physical plan for indexNestedLoopHashJoin (#12139) 2019-09-24 21:18:45 +08:00
20dc99995a executor: clean up the batch checker code (#12338) 2019-09-24 19:02:45 +08:00
73e762c032 executor: testShowStatsSuite should not inherit testSuite (#12350) 2019-09-24 16:17:16 +08:00
31681b7712 executor: refactoring the 'replace' implementation, remove its dependency of batch checker (#12319) 2019-09-24 16:10:15 +08:00
8179558274 planner, executor: push limit down into IndexLookUpReader executor (#12262) 2019-09-24 14:16:16 +08:00
b53a71f15a executor: fix unordered trace events in row format (#12314) 2019-09-24 10:17:46 +08:00
06629d6ac4 *: check privilege when reusing the cached plan (#12211) 2019-09-23 20:36:45 +08:00
582076b5cc *: wrap the previous statement for performance (#12283) 2019-09-23 15:09:15 +08:00
f9724dbf3b executor: improve codes of stmt hints (#12246) 2019-09-18 23:50:25 +08:00
3173e6942f executor: fix update self-duplicate detect (#12249) 2019-09-18 23:25:17 +08:00
8261a41223 planner: make every plan explainable (#12183) 2019-09-18 22:49:07 +08:00
9064c49611 session, executor: support setting tidb_enable_stmt_summary in session scope (#12217) 2019-09-18 15:19:47 +08:00
e98a869205 executor: make sure IndexReaderExecutor/TableReaderExecutor implement the Executor interface (#12020) 2019-09-17 21:34:45 +08:00
15011b6c49 executor: new execution path for point execution within prepared plan cache (#11970) 2019-09-17 14:14:45 +08:00
e173c7f5c1 executor: add several sql hint related to session variables (#11809) 2019-09-17 13:39:16 +08:00
fa675ca3b8 executor: fix scatter region timeout issues and "show processlist" display issues (#12057) 2019-09-17 12:00:15 +08:00
d438e103be executor: load data statement, separate data preparing routine and commit routine (#11533) 2019-09-16 19:46:12 +08:00
04292a00de session: annotate the previous statement to the error when transaction commit failed (#12087) 2019-09-16 15:15:07 +08:00
e2b1f7eff8 expression: change the String() method of expression.Column (#12089) 2019-09-16 14:30:22 +08:00
0f55274760 infoschema, session: support for events_statements_summary_by_digest (#12017) 2019-09-12 19:53:16 +08:00