Commit Graph

2954 Commits

Author SHA1 Message Date
d0f44dfbac executor: stop using the deprecated Filter field in BRIE statements (#18172)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-06-29 15:50:01 +08:00
4eb9d83eae *: allow different shard_row_id prefixes in one transaction (#18181)
* *: allow different shard_row_id prefixes in one transaction

* Apply suggestions from code review

Co-authored-by: tangenta <tangenta@126.com>

* Update sessionctx/variable/session.go

Co-authored-by: tangenta <tangenta@126.com>

* add comments

* add unit test

* add var validation

* update builtinGlobalVariable

Co-authored-by: tangenta <tangenta@126.com>
2020-06-29 14:38:06 +08:00
33f4b82166 ddl: fix issue pre_split_regions table option doesn't work in the partition table. #18144
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-06-29 14:04:46 +08:00
e0be394f0b planner: correct ResolveIndices on common handles for index lookup reader (#18239)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-06-29 10:07:04 +08:00
3f6f36f742 *: refactor table.IterRecord and extract some methods (#18214)
* *: refactor table.IterRecord and extract some methods

* fix ci test

* fix ci test

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-06-29 09:24:34 +08:00
28cc5e6ff7 ddl: save and restore auto_random id when rename table (#18212) 2020-06-28 22:01:49 +08:00
6e7994a850 ddl: limit the range of auto_random_base (#18188)
* ddl: limit the range of auto_random_base

* sort import

* make fmt

* Apply suggestions from code review

Co-authored-by: djshow832 <zhangming@pingcap.com>

Co-authored-by: djshow832 <zhangming@pingcap.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-06-28 19:19:05 +08:00
xhe
773b29102d charset: add missing ascii check(#18193) 2020-06-27 15:34:26 +08:00
6fa2badf38 util: move codec logic into tablecodec package (#18173)
* move codec logic into tablecodec package

* add key generation using physical table id

* remove using prefix

* change comment

* fix conclict

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-06-24 17:43:10 +08:00
127ad504b2 table: optimize add record used in lightning (#18102) 2020-06-24 15:18:01 +08:00
3b63270909 telemetry: Add telemetry initial implementation (#18180)
Signed-off-by: Breezewish <me@breeswish.org>

Co-authored-by: crazycs <crazycs520@gmail.com>
Co-authored-by: Lynn <zimu_xia@126.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-06-24 14:41:46 +08:00
06e73a56cc *: compatible with Go 1.14's checkptr (#18189) 2020-06-24 13:04:47 +08:00
5250f7f53f *: support clustered index in double read (#18127) 2020-06-23 15:33:38 +08:00
9b16427628 server: prefetch point-get keys for multi-statement queries. (#18155) 2020-06-23 13:13:18 +08:00
c98514e751 executor: unify executor concurrency (#16999) 2020-06-22 17:39:32 +08:00
5405fcc4c3 add conn id into ctx (#18158)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-06-22 13:57:51 +08:00
7daa4a7f88 *: fix bugs that creating index on clustered index table or table with the virtual generated column (#18114) 2020-06-19 19:58:37 +08:00
dfca52cb0b executor: remove sensitive information in slow-log and statement (#18107) 2020-06-19 16:30:17 +08:00
63c0ef8e5d planner: save explain result of plan in session for `explai ... (#17687) 2020-06-19 14:07:53 +08:00
978370f7cb executor: add new agg function APPROX_COUNT_DISTINCT (#17175) 2020-06-18 22:00:14 +08:00
c2c02cde4b *: support record kv/pd time for a SQL statement (#17591) 2020-06-18 21:17:48 +08:00
ffc1bcaaa7 unistore: fix clustered index point range check. (#18106) 2020-06-18 21:11:31 +08:00
ad68349bd2 tikv: pre-index stores in region-cache for different access pattern (#18040) 2020-06-18 11:22:50 +08:00
a142759dee executor/planner: fix wrong point-get plan on cluster table (#18078) 2020-06-17 21:41:26 +08:00
ad598e431a executor: add the cache for apply executor (#17039) 2020-06-17 21:24:12 +08:00
a19405a2a7 executor: make index merge join close gracefully when tasks not finish (#18069) 2020-06-17 19:03:06 +08:00
463d085342 planner: check clustered index don't need double read (#18054) 2020-06-17 14:37:21 +08:00
9135d1d0d8 executor: subtract the old txn size when track the mem usage (#18000) 2020-06-17 11:29:47 +08:00
fa551115e6 *: fix update bug in cluster index (#18045) 2020-06-16 17:06:26 +08:00
7f1cd1a60d planner: support build clustered index range for table scan (#18018) 2020-06-16 11:49:01 +08:00
b8fb4b0965 metrics: distinguish transactions by mode (#17912) 2020-06-15 16:20:38 +08:00
8943b1edc4 *: fix analyze on clustered index miss some handle columns (#18004) 2020-06-15 15:43:13 +08:00
7c3e9d2427 *: support analyze on cluster index (#17895) 2020-06-15 10:51:33 +08:00
389561922e executor: optimize the get snapshot table meta for tiflash/replica HTTP API (#17969)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-06-12 16:35:19 +08:00
d445e55fc4 planner,executor: fix select big number on hash partition table panic (#17881) 2020-06-12 15:32:52 +08:00
a8da23c254 test: fix data race caused by update global config (#17964)
Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com>
2020-06-12 13:05:27 +08:00
f139821c82 session,executor: tiny clean up the runStmt function (#17911)
Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com>
2020-06-11 22:11:58 +08:00
b2922a7098 executor: remove unused code (#17923)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-06-11 02:16:42 +08:00
af5d15ef6e infoschema: fix cluster_info display the tombstone tikv/tiflash (#17877) 2020-06-10 22:54:29 +08:00
3ab8f34110 table: fix a bug that replaces into a table with generated column fail (#17838)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-06-10 15:19:30 +08:00
e053ce02ab *: Fix HTTP api get TiFlash replica failed cause by concurrent DDL. (#17872) 2020-06-10 14:27:12 +08:00
f12cdc4201 config: remove allow-auto-random config option (#16596) 2020-06-10 14:09:12 +08:00
62d251afb2 *: support index scan for clustered index. (#17853) 2020-06-10 11:13:28 +08:00
405a5d009d sessionctx: add optimization-time and wait-TS-time into the slow log (#17869) 2020-06-10 10:41:50 +08:00
c9c9f873e9 planner: do correlated column's datum match in physical optimize phase (#17578) 2020-06-09 14:56:38 +08:00
05b2e2bdcc *: refactor Execute() and clean up code (#17678)
- implement Execute using ExecuteStmt
- Execute is only for internal usage and accept only one statement
- clean up the old execute function
2020-06-09 13:58:39 +08:00
0ec197fae0 sessionctx: add some information about the rewriting phase into the slow log (#17569) 2020-06-09 13:49:42 +08:00
88dfb22dc5 executor: support batch-get cluster index & add test case (#17858) 2020-06-09 13:40:47 +08:00
73c4673f30 *: support update/delete/insert ignore/duplicate update in single cluster index table (#17721) 2020-06-08 20:55:31 +08:00
b05327509c session/statistics: discard feedbacks from delete / update (#17452) 2020-06-08 14:34:58 +08:00