Commit Graph

1433 Commits

Author SHA1 Message Date
c7c98d7380 ddl: add addingDefinition field for adding partition replica check (#18495) 2020-07-29 17:08:26 +08:00
c7dcf9c542 util: fix a encode bug causes the wrong result of hashJoin with set and enum (#18855)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-07-29 14:12:10 +08:00
f3554241bb planner, executor: support except and intersect set operator (#18459)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-07-27 17:56:07 +08:00
29178dfa8d planner, executor: support broadcast join for tiflash engine. (#17232)
* support batch cop for tiflash

* support batch cop

* support join push down to tiflash

* refine

* change pb

* push join

* fix

* add hint

* refine hint

* add ranges

* fix

* fix

* fix push down

* fix index

* enable distsql for join

* add a session var to disable/enable broadcast join

* fix bug

* fix bug

* tiny fix

* enable cast decimal pushdown to tiflash

* fix

* fix bc join bug

* make broadcast plan stable

* refine code

* fix bug

* basic support for multi table broadcast join

* fix bug

* basic cbo for broadcast join

* improve

* fix bug

* remote useless code

* add tests

* pass unit tests

* refine code

* support execute summary info for broadcast join

* fix bug in explain for broadcast join

* format code

* remove un-needed code

* fix make dev

* address comments

* Hanfei/join merge (#7)

* enable exec details for batch cop

* format code

* fix test

* change tidb_opt_broadcast_join to global vars

* Ban cartesian join to be pushed down to TiFlash (#8)

* merge master (#10)

* merge master

* fix bug

* fix bug

* fix ut

* check session var conflict

* Add perfer local hint for broadcast join (#12)

* update

* remove useless code

* remove useless code

* update parser

* add test for prefer local join

* use bcj_local

* update go.mod

* refine planner

* refine comments

* fix make dev

* fix make dev

* update parser

* address comments

* fix make dev

* disable broadcast join when new collation is enabled

* Update planner/core/exhaust_physical_plans.go

Co-authored-by: Zhuomin(Charming) Liu <lzmhhh123@gmail.com>

* address comments

* fix

* address comments

* fix tests

* address comments

Co-authored-by: xufei <xufeixw@mail.ustc.edu.cn>
Co-authored-by: xufei <xufei@pingcap.com>
Co-authored-by: 虎 <ichneumon.hu@foxmail.com>
Co-authored-by: Zhuomin(Charming) Liu <lzmhhh123@gmail.com>
2020-07-27 12:41:36 +08:00
b642045ff2 charset: add utf8_unicode_ci and utf8mb4_unicode_ci interface (#18678)
* add unicode_ci interface

* fix build

* fix check

* fix test

* change comments

* add test

* Update util/collate/unicode_ci.go

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

Co-authored-by: djshow832 <zhangming@pingcap.com>
Co-authored-by: Yuanjia Zhang <zhangyuanjia@pingcap.com>
Co-authored-by: djshow832 <873581766@qq.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-07-24 17:16:03 +08:00
baf6c99b95 *: fix a bug causes indexed virtual generated column return wrong value and refine admin check table (#18408) 2020-07-24 12:59:47 +08:00
0b035c850a util: oom-action waits spilling result when acting again (#18381) 2020-07-23 14:08:20 +08:00
c84aa79970 *: simplify LIKE patterns with multiple consecutive wildcards (#17490) 2020-07-21 22:43:42 +08:00
af685f511f Revert "coprocessor: Exceed action for copiterator (#17324)" (#18706) 2020-07-21 15:21:20 +08:00
292dea768e util/ranger: extract DNF as equal access conditions for composite indexes (#18315)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-07-21 00:30:19 +08:00
ace80c7411 planner: apply min-max eliminator on common handle columns (#18589)
* planner: apply min-max eliminator on common handle columns

* reuse AccessPath.IsTablePath()

* planner: apply min-max eliminator on common handle columns

* address comments

* address comment

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-07-17 18:01:47 +08:00
f0e5876353 util/execdetails: refactor execdetails information of runtime collect (#18530) 2020-07-15 20:05:29 +08:00
761a961ba0 kv: refactor MemBuffer and reduce the memory usage (#18372) 2020-07-15 15:26:25 +08:00
8a6554a21f telemetry: disable telemetry by default for non-community edition (#18524)
Signed-off-by: Zheng Xiangsheng <hundundm@gmail.com>
2020-07-15 11:37:36 +08:00
b12f94b967 executor: fix mislead inconsistent log after Context.Cancel (#18537) 2020-07-14 20:21:41 +08:00
a6971dd685 *: support 'admin check table' on clustered index table (#18346) 2020-07-14 15:59:37 +08:00
009c11254d expression: add header for tidb_decode_plan result (#18440) 2020-07-13 13:57:37 +08:00
b13fdb7bce *: make test more TestSortInDisk stable (#18424) 2020-07-13 11:51:55 +08:00
b178de06ad executor: Trace the memory usage of AggFunc in HashAggExec (#18257) 2020-07-06 20:48:41 +08:00
a9177fe846 util/memory: avoid potential deadlock for Consume in remove (#16987) 2020-07-06 19:28:12 +08:00
a5829ae5e6 coprocessor: Exceed action for copiterator (#17324) 2020-07-06 18:57:29 +08:00
906f18f7bf util: make one SortedRowContainer is spilling at the same time. (#18307)
* fix

* fix

* fix

* fix

* fix

* fix

* add comments

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-07-06 15:00:38 +08:00
cc60ac6bef tests: fix several stability issues (#18286)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-07-03 10:33:30 +08:00
daad2699dd *: support clustered index for index join (#18204) 2020-07-01 16:15:51 +08:00
9d9f330a4b executor, util: fix spilling disk when oom. (#16895) 2020-06-30 16:32:14 +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
127ad504b2 table: optimize add record used in lightning (#18102) 2020-06-24 15:18:01 +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
63c0ef8e5d planner: save explain result of plan in session for `explai ... (#17687) 2020-06-19 14:07:53 +08:00
c2c02cde4b *: support record kv/pd time for a SQL statement (#17591) 2020-06-18 21:17:48 +08:00
7c4904903d planner: fix plan cache statistic result. (#18067) 2020-06-18 14:08:17 +08:00
ad598e431a executor: add the cache for apply executor (#17039) 2020-06-17 21:24:12 +08:00
b59cb1a94d planner, session, util: support Insert hint (#16966) 2020-06-17 15:56:01 +08:00
fa551115e6 *: fix update bug in cluster index (#18045) 2020-06-16 17:06:26 +08:00
6c305e2a49 ddl: apply common handle to index reorganization (#17906) 2020-06-16 09:52:39 +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
a689df0416 planner, util: new unfixed mutrow for TypeNull (#17893)
Co-authored-by: Yuanjia Zhang <zhangyuanjia@pingcap.com>
2020-06-11 10:50:48 +08:00
f12cdc4201 config: remove allow-auto-random config option (#16596) 2020-06-10 14:09:12 +08:00
f82bd008d4 ddl: correct the usage of json.Unmarshal in job.DecodeArgs (#17857)
* ddl: correct the usage of json.Unmarshal in job.DecodeArgs

* update parser

Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com>
2020-06-10 11:00:54 +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
36ea109b83 *: record execute runtime information in slow log (#17573) 2020-06-09 12:16:47 +08:00
f9189cfa93 util/chunk: Remove outdated comment about Time (#17822) 2020-06-07 22:56:13 +08:00
d66d5028da *: support plain insert on cluster index table (#17674) 2020-06-05 13:23:43 +08:00
9e16c59ef0 privileges: support require SAN (#17539) 2020-06-05 11:24:43 +08:00
3a4e733af6 test: fix testleak in TestIntegration (#17667)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-06-04 17:34:49 +08:00
1758f86de6 util: support clustered index for table scan (#17616) 2020-06-03 20:17:13 +08:00
552e7709de *: refactor decoder to avoid useless fieldType convert (#17632) 2020-06-03 18:13:56 +08:00
f030db5111 plancodec: add test for plan id to avoid change the plan id. (#17385) 2020-06-02 18:56:57 +08:00
709691607d expensivequery: fix the issue that max_exec_time hint doesn't work if it exceeds the expensive-threshold (#17359) 2020-05-29 19:07:34 +08:00
777907bcee planner: push agg below partition union all by default (#17262) 2020-05-28 18:11:13 +08:00