642527d740
planner: choose non-prefix column when both index key and handle have the same one ( #22980 )
2021-03-01 20:48:54 +08:00
6bd6df7d1e
planner: let tikv know primary prefix columns info ( #22829 )
2021-03-01 16:20:54 +08:00
e2fdb00e62
config: fix data race caused by config.Labels ( #22977 )
2021-03-01 16:02:54 +08:00
e1004a2ccb
*: modify the switch to control global stats ( #22866 )
2021-03-01 14:18:30 +08:00
febac515b1
store/tikv: move coprocessor out ( #22922 )
2021-03-01 11:42:54 +08:00
03109adaad
*: remove useless FIXME tip in code ( #22970 )
2021-02-26 16:18:53 +08:00
8a490e96b5
parser: quote identifier with backquote when getting SQL digest ( #22893 )
2021-02-26 14:54:54 +08:00
7151b4f3b5
config: use tidb_enable_list_partition to enable list table partition feature ( #22864 )
2021-02-25 22:11:04 +08:00
5e832ed80a
store/*: mv tikv_driver to dir store/driver ( #22942 )
2021-02-25 18:49:18 +08:00
daf3337a43
oracle: make @@txn_scope only support local and global ( #22784 )
2021-02-25 15:26:03 +08:00
1970a917c1
store/tikv: fix unstable tests in snapshot_fail_test.go ( #22916 )
2021-02-24 21:04:03 +08:00
e360454b2d
util: fix Host column of show processlist to host_name:client_port format ( #22707 )
2021-02-24 18:54:03 +08:00
b226130926
session: fix linearizability for non-autocommit async-commit txn ( #22879 )
...
* fix linearizability for non-autocommit async-commit txntxn
Signed-off-by: Yilin Chen <sticnarf@gmail.com >
* add IsExplicit flag
Signed-off-by: Yilin Chen <sticnarf@gmail.com >
* set missing cases
Signed-off-by: Yilin Chen <sticnarf@gmail.com >
* remove redundant assignment
Signed-off-by: Yilin Chen <sticnarf@gmail.com >
* revert go sum change
Signed-off-by: Yilin Chen <sticnarf@gmail.com >
* fmt
Signed-off-by: Yilin Chen <sticnarf@gmail.com >
* clarify comment
Signed-off-by: Yilin Chen <sticnarf@gmail.com >
Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com >
2021-02-24 13:32:48 +08:00
f3fe4895cb
statistics: support to store FMSketch and add FMSketch to column stats ( #22841 )
...
* add FMSketch to mysql.stats_histograms
* statistics: support store FMSketch and add FMSketch to histogram
* FIX UT
* Create Stats_FM_Sketch Table
* fix UT
* add some tests
* FIX ut
* move fmSketch from histogram to column.stats
* remove unused code and comments
* fix ut
* fix ut
* fix ut
* fix ut
* fix ut
* fix ut
* finish the FMSketch.MemoryUsage function
* add some comments for FMSketch.MemoryUsage function
* fix typo
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com >
2021-02-23 10:39:09 +08:00
b74dfaf810
mockstore: move mockstore/cluster to tikv/mockstore/cluster ( #22856 )
...
Signed-off-by: disksing <i@disksing.com >
2021-02-22 15:42:16 +08:00
99d0b22f04
session, util: update session to use new APIs ( #22652 )
2021-02-19 13:10:30 +08:00
9cb9b69b61
session: ignore linearizability setting for auto-commit transactions ( #22746 )
...
Signed-off-by: Yilin Chen <sticnarf@gmail.com >
2021-02-18 15:02:32 +08:00
4031706e32
gcworker: remove handler interface ( #22779 )
...
Signed-off-by: disksing <i@disksing.com >
2021-02-18 12:09:31 +08:00
20ddc19f22
server: retry executing sql without tiflash after tiflash is down ( #22459 )
2021-02-05 12:14:41 +08:00
2fc1703a9c
session, exectutor: Guarantee external consistency by default; Add an explicit begin statement to disable it ( #22597 )
...
Signed-off-by: ekexium <ekexium@gmail.com >
2021-02-04 16:09:46 +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
93d3d04092
executor: support checking schemaVer before staleness transaction begins ( #22679 )
2021-02-04 11:48:45 +08:00
9e3c0649e4
ddl, session: add tidb_enable_exchange_partition variable ( #22638 )
2021-02-03 20:36:57 +08:00
7a275a77bb
store/tikv: move EtcdBackend out ( #22676 )
...
Signed-off-by: disksing <i@disksing.com >
2021-02-03 14:59:57 +08:00
6c1a6dd631
store/tikv: move tikv driver out ( #22651 )
...
Co-authored-by: Shirly <wuxuelian@pingcap.com >
2021-02-02 16:28:54 +08:00
7ca1629d1a
*: refactor ExecuteInternal to return single resultset ( #22546 )
2021-02-01 14:05:27 +08:00
4e471d7cb1
*: move new api out of session package ( #22591 )
...
Signed-off-by: xhe <xw897002528@gmail.com >
2021-01-30 07:24:44 +08:00
4c0fe88a71
store/tikv: resolve sessionctx dependency ( #22584 )
...
Signed-off-by: disksing <i@disksing.com >
2021-01-29 17:09:14 +08:00
ea6ccf82e9
*: refactor the RestrictedSQLExecutor interface ( #22579 )
2021-01-29 12:56:44 +08:00
871856db04
store/tikv: export failpoints ( #22539 )
...
Signed-off-by: Andy Lok <andylokandy@hotmail.com >
2021-01-27 17:13:30 +08:00
ae0057da71
*: preventing SQL injection ( #22499 )
...
Signed-off-by: xhe <xw897002528@gmail.com >
2021-01-26 18:52:08 +08:00
e1e4ad14e5
session: fix the bug that may cause upgrading from v4.0.10 fail ( #22448 )
2021-01-26 14:46:36 +08:00
a6b2cbe051
ddl: fix GetLeaderDCByBundle error ( #22517 )
2021-01-25 21:00:19 +08:00
dd8fd16145
session: add testcases for staleness transaction ( #22438 )
...
Signed-off-by: Song Gao <disxiaofei@163.com >
2021-01-21 20:47:59 +08:00
57eef1333b
server, sessionctx: add multi statement workaround ( #22351 )
2021-01-21 15:14:58 +08:00
8d6ddedfb1
session,executor: fix point get under @@tidb_snapshot ( #22460 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2021-01-21 14:43:19 +08:00
030a00e55d
store/tikv: Add more failpoints ( #22362 )
...
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com >
2021-01-21 13:40:29 +08:00
3dd842f50a
statistics: add bucket ndv for index histogram ( #20580 )
...
Co-authored-by: Yuanjia Zhang <zhangyuanjia@pingcap.com >
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2021-01-13 18:24:21 +08:00
68aaa2fa7e
*: fix auto-id allocate tracing ( #22371 )
2021-01-13 12:19:58 +08:00
289bc7e79c
ddl: concurrent safe api for using rule bundles cache ( #22035 )
...
Signed-off-by: xhe <xw897002528@gmail.com >
2021-01-13 10:58:58 +08:00
dd234b7e32
session: fix the duplicate binding case when updating bind info ( #22367 )
2021-01-12 16:30:59 +08:00
4088c2011b
planner: check index valid while forUpdateRead ( #22152 )
...
Signed-off-by: you06 <you1474600@gmail.com >
2021-01-12 15:09:59 +08:00
78529e86eb
session: fix two cases when updating bind info ( #22338 )
2021-01-11 15:55:58 +08:00
390eeeb570
session: support validating read-only statement during read-only staleness transaction ( #22048 )
2021-01-08 16:50:58 +08:00
cec1a92658
session, sessionctx: remove unused GetAllSysVars ( #22284 )
2021-01-08 14:58:58 +08:00
fd7da4fbe6
test: stabilize test case ( #22276 )
2021-01-07 22:11:57 +08:00
ec73315dce
*: Move tikv gc configuration to sysvars ( #21988 )
2021-01-07 13:59:44 +08:00
51794e9d30
*: rewrite origin SQL with default DB for SQL bindings ( #21275 )
2021-01-06 16:28:29 +08:00
67da69b122
txn: change check logic for column type change for amend ( #22150 )
2021-01-06 14:01:11 +08:00
76054200b6
statistics: redesign the schema for mysql.stats_extended ( #22033 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2021-01-04 17:57:24 +08:00