Commit Graph

697 Commits

Author SHA1 Message Date
a64d8860f1 statistics: forbid global-stats in stats-ver1 and make analyze options take effect in global-stats (#23050) 2021-03-03 11:58:54 +08:00
8230f4162b *: optimize analyze cluster index table (#21381) 2021-03-01 22:14:54 +08:00
6bd6df7d1e planner: let tikv know primary prefix columns info (#22829) 2021-03-01 16:20:54 +08:00
8357f809ff *: remove some useless codes and do tiny update (#22972) 2021-02-26 19:14:53 +08:00
35534ae752 *: apply golangci-lint to the new code (#22824) 2021-02-24 18:24:03 +08:00
8ddaf03db1 executor: fix load data losing connection when batch_dml_size is set (#22724) 2021-02-05 10:51:42 +08:00
343c412531 planner, executor, statistics: add tests for version 2 and fix bugs (#22461)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2021-02-04 15:52:30 +08:00
44641c3282 planner: change the content of AnalyzeTableID to build global-stats (#22554) 2021-02-02 15:39:44 +08:00
843e03996b *: do not report error for prepared stmt execution if tidb_snapshot is set (#22568) 2021-02-01 14:44:17 +08:00
cd390bdfab executor: skip null data in common handle during point-get (#22483) 2021-01-22 14:07:02 +08:00
c7165bc518 executor, planner: ON DUPLICATE UPDATE can refer to un-project col (#14412)
Co-authored-by: Kenan Yao <cauchy1992@gmail.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2021-01-06 19:03:51 +08:00
536dfdfe2f executor: always decode the value first and then the handle (#22073) 2021-01-04 16:37:15 +08:00
5e67a597cc planner, store/tikv, executor:Support shuffled hash join and refine codes (#20894) 2020-12-28 15:14:15 +08:00
092a01a0a4 statistics, executor: refactor statistics on columns (#21817) 2020-12-24 13:56:30 +08:00
9ef7246d29 executor: fix data race in extractTxnScope (#21929) 2020-12-23 15:34:30 +08:00
ce5ce53fa9 ddl, distsql: Support forbiding cross txnScope query all *Reader Executor (#21650) 2020-12-21 15:30:30 +08:00
d878fe193b executor: introduce new variables to control Apply's behaviors and add more tests for it (#20844) 2020-12-15 14:31:25 +08:00
f5a3a38bfe *: fix bug that broadcast join/MPP not compatible with clustered index (#21663) 2020-12-15 11:42:55 +08:00
b4eee287af *: extract topn out of histogram correctly (#21007)
Co-authored-by: Yuanjia Zhang <zhangyuanjia@pingcap.com>
2020-12-10 17:05:39 +08:00
39d8fcc71b executor: fix value swapping and multi-updates in UPDATE statement (#20493) 2020-12-10 15:48:02 +08:00
c218c58218 *: support select from tablesample (#20883) 2020-12-03 16:46:18 +08:00
0c0e29d363 executor, planner: add partitionRangeSplitter for shuffle (#21306) 2020-11-29 16:39:16 +08:00
f9cd7ed69d planner, executor: parallelize stream aggregation with shuffle. (#21095) 2020-11-25 15:37:51 +08:00
d12eb1b174 executor: Fix IndexMergeReader works incorrectly under RC isolation level (#21208)
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
2020-11-24 17:39:54 +08:00
115c7f88e8 executor: set the inner join keys' field length to unspecified (#21233) 2020-11-24 17:00:53 +08:00
ceddc106f0 executor,planner/core,util/plancodec: extend executor.ShuffleExec and planner.core.PhysicalShuffle to support multiple data sources (#20942) 2020-11-24 10:59:03 +08:00
41786cb976 *: seperate hash keys from join keys in IndexJoin (#20761) 2020-11-16 16:24:51 +08:00
4e1cbca5c2 executor: fix panic when set partition handle for index join (#20551) 2020-11-05 14:21:35 +08:00
272f964031 executor: support global kill (#17649) 2020-10-27 19:39:20 +08:00
9660283d2d infoschema: Provide a system table to query placement rules (#20616) 2020-10-27 14:35:38 +08:00
0d613a2dfa [executor, store/tikv]: implement a prototype for MPP framework. (#19954) 2020-10-26 14:46:47 +08:00
5738191a23 *: clean some stuff related to dirtyTable (#20554)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-10-21 12:19:26 +08:00
4501f6d7ab planner, executor: enable inline projection for Limit (#20288) 2020-10-19 10:55:13 +08:00
50f5ddc70e executor,distsql: support multiple physical tables in one table reader (#20404) 2020-10-14 20:05:26 +08:00
dcefa58035 *: use global stats & make ddl/feedback/show/export works(part III) (#20271) 2020-10-14 16:11:33 +08:00
170e2fec92 *: collect multiple partitions and store in tidb (part II) (#19899) 2020-09-29 21:25:56 +08:00
132d9817d7 executor: support partition pruning for IndexJoin inner table (#19990) 2020-09-29 11:08:53 +08:00
0b7c7167d1 planner,executor: support global index for IndexScan and IndexLookUpReader (#19821) 2020-09-24 20:50:28 +08:00
640cb42f54 executor: do not reorder handles when building requests for IndexMergeJoin (#20138) 2020-09-22 15:11:59 +08:00
2a3a5ab076 *: disable new partition prune in master distribution (#19911) 2020-09-14 16:26:54 +08:00
2836011470 executor, planner: refactor analyze tableID to analyzeTableID & add CanRuntimePrune (#19846)
* executor, planner:  refactor analyze tableID to analyzeTableID

* *: add util to help decide whether use new runtime prune partition executor

* address comments

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-09-08 23:49:39 +08:00
354f3997c0 executor: add concurrency limit on union executor (#19827) 2020-09-08 19:16:23 +08:00
a961a70c53 executor: fix fast analyze race condition on session ctx (#19716)
* executor:  fix fast analyze race condition on session

* unify return error

* make lint happy

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-09-07 14:35:21 +08:00
ce849c3e19 *: remove DirtyDB and DirtyTable to reduce memory usage (#19042) 2020-09-04 16:50:36 +08:00
6fdd609c00 privilege: fix user change after show grants and add user existed check for show grants (#19568)
* fix show grant change user object and add check

* fix lint

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-28 20:54:21 +08:00
127c3aa61d executor: support admin cleanup for clustered index table (#19522)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-28 11:46:52 +08:00
933c0667bf executor: reduce parameter count for detach ranges methods (#19486)
* executor:  add merge flag

* use fields to pass more params

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-27 10:28:52 +08:00
ce1ad327d7 executor: fix wrong results when index join on union scan partition table (#19436)
* executor: fix wrong results when index join on union scan new parition table

* move partitionTableReader inner buildUnionScanFromReader

* fix conflicts

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-26 15:51:22 +08:00
c8f436cbc6 executor : refine partition table read for tiflash table read (#19406)
* executor : refine partition table read for tiflash table read

* refine code

* address comments

* fix ci

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-26 14:29:51 +08:00
eff7837795 executor: support 'recover index' in clustered index tables (#19284)
* support 'recover index' in clustered index table

* ddl: add truncate to buildCommonHandleFromChunkRow

* executor: truncate the updated handle

* executor: set core.HandleCols in the initialization of RecoverIndexExec

* refine code

* remove unused code

* fix integration test

* fix integration test

* address comment

* early return when recovering clustered pk

* remove panic

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-26 11:51:52 +08:00