Commit Graph

2930 Commits

Author SHA1 Message Date
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
6b9d6c0f5c executor: skip row comparison in steam aggregation when necessary (#17679)
Co-authored-by: Yuanjia Zhang <zhangyuanjia@pingcap.com>
Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com>
2020-06-08 11:36:45 +08:00
a4eb75a6f0 ddl: reject alter auto_random_base on a non auto_random table (#17714)
Co-authored-by: Arenatlx <ailinsilence4@gmail.com>
Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com>
2020-06-06 21:56:43 +08:00
2a2c93bc68 ddl, sessionctx: make auto_random aware of auto_increment_increment (#17575) 2020-06-05 14:27:25 +08:00
d66d5028da *: support plain insert on cluster index table (#17674) 2020-06-05 13:23:43 +08:00
09af066c54 *: fix a bug that collation does not work for enum and set (#17635) 2020-06-05 12:14:42 +08:00
9e16c59ef0 privileges: support require SAN (#17539) 2020-06-05 11:24:43 +08:00
35e2d3a081 *: add global variable tidb_slow_log_masking to control masking slow log query (#17637) 2020-06-05 09:15:41 +08:00
2c55650617 *: make QPS more realistic (#17560) 2020-06-04 20:00:43 +08:00
1379ba4678 executor: skip chunk evaluation in splitIntoGroups when unnecessary (#17077) 2020-06-04 11:08:57 +08:00
5fc4a8c96a executor: fix alter-user with hash string (#17640) 2020-06-03 21:54:27 +08:00
552e7709de *: refactor decoder to avoid useless fieldType convert (#17632) 2020-06-03 18:13:56 +08:00
6bb9b30e74 ddl: fix pre-split region timeout constraint not work when create table (#17459) 2020-06-03 11:18:27 +08:00
cfbd754653 planner,executor,infoschema: add system table table_storage_stats (#15056) 2020-06-02 23:17:46 +08:00
d53336bd4a planner: support sql_select_limit session / global variable (#17444) 2020-06-02 18:02:29 +08:00
39fe08ab58 store/mockstore: make unistore the default mockstore (#17558) 2020-06-01 18:45:15 +08:00
64f0d4d211 planner: fix wrong prepare plan after isolation read changed (#16293) 2020-06-01 18:02:48 +08:00
18a38c674e executor: fix the forever hang in index merge join when oom occurs (#17435) 2020-05-28 16:16:36 +08:00
b5bb0090e7 *: fix LIKE expressions with _ following % (#17418) 2020-05-28 15:05:10 +08:00
af7bbbe241 executor: fix failpoint race for analyze test (#17437)
Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com>
2020-05-27 20:47:11 +08:00
7ca3d9cadc bindinfo, record how bindings are created in SQL bindings. (#17254) 2020-05-27 09:56:40 +08:00
e92f15d6ec planner: Add explain info for InspectionSummaryTableExtractor (#16216) 2020-05-27 02:22:40 +08:00
55d9d6ca1e sessionctx,infoschema,executor,util: Show disk usage of a query in slow query and statement summary (#17132) 2020-05-26 22:03:40 +08:00
a3d5082094 sessionctx, executor: add session var to control explicit insertion on auto_random column (#17102) 2020-05-26 20:32:10 +08:00
f72b5984dd executor: set the DDL query string instead of execute (#17407) 2020-05-26 15:48:13 +08:00