Commit Graph

220 Commits

Author SHA1 Message Date
a428d472e9 *: remove the unused terminology (#19727)
* *: remove the unused terminology

* rename back

* delete more

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-09-04 17:12:01 +08:00
945f7cc4a0 ddl, tables: support the column type change between the integer types (#19059) 2020-08-26 21:30:14 +08:00
6b3964c75d add system variable to control amend on or off (#19321)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-20 20:20:51 +08:00
a50fbab55d sessionctx: Make it possible to set allow_auto_random_explicit_insert as global (#18896) 2020-07-31 16:23:14 +08:00
f6ef1c371f executor: implement parallel apply (#18044) 2020-07-27 17:49:28 +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
297acf7e82 log: add tidb_log_desensitization global variable to control whether do desensitization when log query (#18578)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-07-15 15:44:56 +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
5574e1a3ff config: enable collect execution information by default (#18415) 2020-07-13 20:35:37 +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
xhe
773b29102d charset: add missing ascii check(#18193) 2020-06-27 15:34:26 +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
c98514e751 executor: unify executor concurrency (#16999) 2020-06-22 17:39:32 +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
3adb557c97 ddl, variable: add system variable to control Clustered Index feature (#17561) 2020-06-02 10:48:28 +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
838de2ad26 executor: fix wrong behavior of set charset statement (#16984) 2020-05-19 18:09:44 +08:00
e2001329d7 *: Show edition information when mysql client login (#17170) 2020-05-14 09:49:42 +08:00
9bda71df3b infoschema, session: forbid statement summary related global v… (#16652) 2020-04-23 12:35:25 +08:00
c28a69583e support set value of tidb_opt_distinct_agg_push_down in config… (#16590) 2020-04-22 23:32:16 +08:00
f033927481 sessionctx/variable,ddl: change @@tidb_enable_table_partition default value and update the semantic (#16497)
Before:
auto means enable for implemented feature and disable for others
on means always enable, no matter the feature is implemented or not

After:
auto and on both means enable for implemented feature and disable for others
2020-04-20 16:46:25 +08:00
ff7413fedb planner, sessionctx : Add 'last_plan_from_cache' to help know whether sql's plan is from plan cache (#16321) 2020-04-17 17:15:21 +08:00
e90aac2710 executor: add config EnableCollectExecutionInfo (#15493) 2020-04-13 20:45:25 +08:00
af0a49cb7a [store/tikv] support batch coprocessor for TiFlash (#16030) 2020-04-09 13:01:09 +08:00
4eb9ca3d3f planner: push aggregation functions with distinct to cop (#15500) 2020-04-01 20:49:14 +08:00
514b180928 executor: turn off dynamic config by default and add some removed variables back (#15833)
Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com>
2020-03-30 16:07:47 +08:00
4a7d477399 session: delete global scope for isolation read (#15625) 2020-03-25 16:18:39 +08:00
6905549bf6 *: support more system variables in statement summary (#15508) 2020-03-25 16:07:10 +08:00
bbac2b2fe4 executor: Improve the performance of aggFuncSum by using sliding window (#14887) 2020-03-23 13:29:44 +08:00
df6f378267 stmtsummary: add a switch to decide whether capture internal q… (#15461) 2020-03-20 17:39:11 +08:00
9f0736ee8b errno: move the error code from the parser/mysql to tidb/errno (#15277) 2020-03-11 15:40:21 +08:00
5d4eb4c806 config: support to dynamically update some config items read from PD (#14750) 2020-02-17 19:30:27 +08:00
465af00b46 *: use new registrable terror (#14606) 2020-02-06 16:40:26 +08:00
74bc00dfa9 Improve the performance of WindowExec by using multi-thread hash grouping (#14238) 2020-01-16 21:04:16 +08:00
c48d5635f9 *: replace conf item pprof_sql_cpu with srv var tidb_pprof_sql_cpu (#14385) 2020-01-09 13:23:09 +08:00
870d4b19c8 *: support auto_increment_increment & auto_increment_offset. (#14301) 2020-01-08 10:18:39 +08:00
0bab73adf5 *: use new row-format in tidb (#12634) 2020-01-02 22:34:39 +08:00
933715f4a2 infoschema: add metric database/table to query cluster metric via SQL. (#13757) 2019-12-20 16:13:28 +08:00
c39317e890 executor: support turn on/off slow-log by variables (#14016) 2019-12-18 10:48:46 +08:00
881038ee1b session: support 'GLOBAL SCOPE' for tidb_enable_table_partition (#14062) 2019-12-17 10:10:25 +08:00
f6fc7847b1 bindinfo: unify session variables of spm (#14005) 2019-12-12 15:09:28 +08:00
5da10ffecc *: refine some error code (#14002) 2019-12-12 11:09:58 +08:00
d439a57566 infoschema, util: add table events_statements_summary_by_digest_history (#13813) 2019-12-09 16:11:49 +08:00
5b6422df58 *: support read remote TiDB memory table of cluster (#13065) 2019-12-04 13:05:36 +08:00
5a589c9994 planner: consider disk cost in hashJoin (#13246) 2019-12-03 13:43:19 +08:00
18fbe2d483 infoschema, util: refresh statement summary table periodically (#13680) 2019-11-28 15:39:22 +08:00
518692c14c bindinfo: support evolve plan (#13465) 2019-11-22 17:09:37 +08:00
b7ab604b48 Changed version comment to include "TiDB Server" (#13604) 2019-11-20 10:05:14 +08:00
4283263b13 store : add store limit to restrain bad store from occupying too much token limit. (#12779) 2019-11-13 18:49:24 +08:00
58733475da *: support capture evolve plan tasks (#13199) 2019-11-13 16:22:48 +08:00