Commit Graph

545 Commits

Author SHA1 Message Date
eae64e40fe executor: support exact staleness begin statement (#21897) 2020-12-31 22:08:14 +08:00
f8bef9b952 session, distsql: make local transaction error msg user-friendly (#22052) 2020-12-31 16:28:33 +08:00
8144e1395d *:Adapt ScanDetailV2 in KvGet and KvBatchGet Response (#21562) 2020-12-30 17:02:44 +08:00
b1bd2856ca config: disable list partition by default since it's an experimental feature (#22045) 2020-12-29 09:56:18 +08:00
5e67a597cc planner, store/tikv, executor:Support shuffled hash join and refine codes (#20894) 2020-12-28 15:14:15 +08:00
38792204f9 executor, session, sessionctx: make last_plan_from_cache and last_plan_from_binding read-only (#21953) 2020-12-24 16:09:30 +08:00
5aebcee5cf executor, session, sessionctx: fix the error message of read-only variable is corrupted (#21948) 2020-12-23 20:09:00 +08:00
9ef7246d29 executor: fix data race in extractTxnScope (#21929) 2020-12-23 15:34:30 +08:00
f6c8de385e session: check character set value valid when set global variable (#21609) 2020-12-18 15:59:24 +08:00
6e2bc8fe01 ddl: filter the feature switches in show variables (#21873) 2020-12-18 15:29:50 +08:00
fd587c3552 session: add a switch for index merge join (#21830)
Signed-off-by: lzmhhh123 <lzmhhh123@gmail.com>
2020-12-18 11:05:05 +08:00
b74e8b5cb8 ddl: add a switch for alter partition alter placement (#21833)
Signed-off-by: AilinKid <314806019@qq.com>
2020-12-18 10:22:35 +08:00
91ec971961 session: Support getting last query info for test purpose (#21557)
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
2020-12-17 19:29:35 +08:00
9f095242b5 exeutor: add a switch for memory tracker in aggregate (#21597) 2020-12-16 15:01:35 +08:00
291d0b8ee6 txn: disable amend by default on master (#21829) 2020-12-16 13:34:04 +08:00
3cbfec31d9 *: add a switch for extended stats to disable the feature by default (#21716) 2020-12-15 18:27:23 +08:00
25daaee0c0 add switch for point get cache (#21669) 2020-12-15 17:00:15 +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
5acff8de7a *: Revert "#19008" and "#18788" (#21599) 2020-12-14 15:06:35 +08:00
21bf3b6202 ddl: add a switch for multi schema change & make it compatible with old test cases (#21533) 2020-12-10 16:26:00 +08:00
e87d9d75d8 session: set default connect collation to utf8mb4_bin (#21179) 2020-12-10 15:33:22 +08:00
28c9e9290b *: gocritic fixes for commentFormatting (#21578) 2020-12-09 12:03:17 +08:00
b269ef89d9 sessionctx: add variable tidb_analyze_version (#21515) 2020-12-08 16:04:48 +08:00
91a9d3065a ddl: make reorg session aware of the new row format (#21412) 2020-12-04 15:29:49 +08:00
43cccbb72f *: dispatch the local and global transactions (#21353)
Signed-off-by: JmPotato <ghzpotato@gmail.com>
2020-12-04 10:34:48 +08:00
0e2f18d8f9 store, config, session: Use system variables to enable async commit and 1PC (#21365)
* add a system variable for enabling async commit

Signed-off-by: ekexium <ekexium@gmail.com>

* remove async commit enable config item

Signed-off-by: ekexium <ekexium@gmail.com>

* add a system variable for enabling 1PC

Signed-off-by: ekexium <ekexium@gmail.com>

* try to fix test

Signed-off-by: ekexium <ekexium@gmail.com>

* remove 1pc item in config

Signed-off-by: ekexium <ekexium@gmail.com>

* try to fix test

Signed-off-by: ekexium <ekexium@gmail.com>

* correct the condition to enable 1pc

Signed-off-by: ekexium <ekexium@gmail.com>

* do not enable 1pc/async commit on bootstrap if store is not tikv

Signed-off-by: ekexium <ekexium@gmail.com>

* refactor checkAsyncCommit

Signed-off-by: ekexium <ekexium@gmail.com>

* fix test: enable async commit or 1PC by setting txn options

Signed-off-by: ekexium <ekexium@gmail.com>

* add a system variable for external consistency

Signed-off-by: ekexium <ekexium@gmail.com>

* remove external consistency config item

Signed-off-by: ekexium <ekexium@gmail.com>

* refactor: checkXXX does not need parameters

Signed-off-by: ekexium <ekexium@gmail.com>

* refactor: add a helper function to pessimistic_test

Signed-off-by: ekexium <ekexium@gmail.com>

* change allowed scope to global or session

Signed-off-by: ekexium <ekexium@gmail.com>

* fix external consistency test

Signed-off-by: ekexium <ekexium@gmail.com>

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-12-02 11:49:57 +08:00
e2e707e5e7 sessionctx/variable: fix a DATA RACE to make CI more stable (#21415) 2020-12-02 11:16:19 +08:00
cc0e1d46e6 planner/core, session, sessionctx/variable: add session variable to control the concurrency of shuffle merge join (#21332) 2020-11-27 14:09:04 +08:00
e01f5e41c2 store, session: Introduce system variable to control ratelimit action (#21259) 2020-11-25 20:27:38 +08:00
ab2c337db7 variable: cleanup code (#21252)
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
2020-11-25 08:15:24 +08:00
2c66371d8b planner, sessionctx : Add 'last_plan_from_binding' to help know whether sql's plan is matched with the hints in the binding (#18017) 2020-11-20 20:43:23 +08:00
aa9f7584f8 server: remove prepare stmt if no retry in stmt close() (#20867)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-11-19 16:20:33 +08:00
2b363fb80d *: support to modify config server-memory-quota-ratio dynamically (#20927) 2020-11-19 13:40:31 +08:00
e6e894dcc4 executor: add missing update table delta for TxnCtx (#20982) 2020-11-19 10:58:45 +08:00
de75e604ff *: differentiate types for user variables (#18973)
Co-authored-by: lzmhhh123 <lzmhhh123@gmail.com>
2020-11-17 17:03:41 +08:00
863117ba05 session: Check the partition placement constraint of local transactions (#21039)
Signed-off-by: Song Gao <disxiaofei@163.com>
2020-11-17 14:28:27 +08:00
e136429d8d *: refactor parser initialize method and add tidb_enable_strict_double_type_check variable (#20967) 2020-11-16 19:58:27 +08:00
7c88ca7974 ddl, session: set charset and coordinate collation (#21034) 2020-11-16 19:03:26 +08:00
83ceede82d session, variables: Stream agg concurrency variable (#20960) 2020-11-16 10:30:24 +08:00
160cb9b814 *: fix set tidb_general_log not work (#20993)
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
2020-11-12 13:54:23 +08:00
269494e3de *: Move sysvar validation to struct (3 of 3) (#20521) 2020-11-12 13:22:42 +08:00
8eaccd41a9 variable: add txn_scope sys var (#20721) 2020-11-12 11:09:54 +08:00
522275783e executor: fix auto-id allocation during statements retry (#20659) 2020-11-09 16:37:12 +08:00
b2e6df07c8 session: Support Variable-Setting Hint SET_VAR (#20232) 2020-10-28 14:27:13 +08:00
272f964031 executor: support global kill (#17649) 2020-10-27 19:39:20 +08:00
6c278101a4 planner: support variable to prefer index scan (#18996) 2020-10-26 23:12:42 +08:00
0d613a2dfa [executor, store/tikv]: implement a prototype for MPP framework. (#19954) 2020-10-26 14:46:47 +08:00
2f067c0542 *: redact arguments for Error (#20436) 2020-10-21 14:44:08 +08:00
106b04ddab *: Fix sysvars to native type in @@ context (#20394) 2020-10-19 14:13:43 +08:00
c808997d25 store, util: adapt scandetailv2 in coprocessor response (#20391) 2020-10-16 14:25:57 +08:00