35534ae752
*: apply golangci-lint to the new code ( #22824 )
2021-02-24 18:24:03 +08:00
8ea5930ea8
*: separate use of kv.Storage and tikv.Storage ( #22891 )
...
* *: separate use of kv.Storage and tikv.Storage
Signed-off-by: disksing <i@disksing.com >
* fix compile
Signed-off-by: disksing <i@disksing.com >
Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com >
Co-authored-by: Shirly <wuxuelian@pingcap.com >
2021-02-24 17:54:03 +08:00
b5c6c9f548
statistics: make dump/load/show-stats be compatible with global-stats ( #22911 )
2021-02-24 17:33:40 +08:00
2d48f9573c
planner: decorrelate LogicalApply with inner join as the inner child ( #22649 )
2021-02-24 15:42: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
3edbab31db
executor: fix regression by Tracker.Consume in aggregate. ( #22883 )
...
Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com >
2021-02-23 17:44:48 +08:00
339bc46f87
brie/: add GetVersion function for tidbGlueSession ( #22731 )
...
* add GetVersion function for tidbGlueSession
* add ut
* update labeler.yml
* Apply suggestions from code review
Co-authored-by: tangenta <tangenta@126.com >
Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com >
Co-authored-by: tangenta <tangenta@126.com >
2021-02-23 11:41:09 +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
04e5137f48
*: use explain format = 'brief' for tests ( #22677 )
2021-02-22 17:50:06 +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
461cae15a7
planner, distsql: fix the behaviour of building ranges for TiFlash ( #22725 )
2021-02-21 18:29:46 +08:00
4f56ab07a2
expression: do not adjust int when it is null and compared year ( #22821 )
...
Signed-off-by: lzmhhh123 <lzmhhh123@gmail.com >
2021-02-20 14:43:16 +08:00
3ad7f40140
expression: Add warning info for exprs that can not be pushed to storage layer ( #22713 )
2021-02-20 10:41:57 +08:00
8842bbcde2
statistics: merge partition-level TopN to global-level TopN ( #22433 )
2021-02-19 19:05:58 +08:00
59ccb29508
statistics: merge the partition-level histograms to a global-level histogram ( #22603 )
2021-02-19 11:08:04 +08:00
fb84db123c
executor: make memory tracker for aggregate more accurate. ( #22463 )
2021-02-18 11:27:11 +08:00
27db39b480
*: use CLUSTERED and NONCLUSTERED to control primary key type ( #22409 )
2021-02-05 20:41:41 +08:00
20ddc19f22
server: retry executing sql without tiflash after tiflash is down ( #22459 )
2021-02-05 12:14:41 +08:00
2d717c12b3
statistics: merge the partition-level stats to global-level stats ( #22667 )
2021-02-05 11:42:41 +08:00
9a2997facb
statistics,executor: fix some unit tests that run twice ( #22705 )
2021-02-05 11:27:11 +08:00
8ddaf03db1
executor: fix load data losing connection when batch_dml_size is set ( #22724 )
2021-02-05 10:51:42 +08:00
4172f473da
*: adapt new api for the executor package ( #22644 )
...
Signed-off-by: xhe <xw897002528@gmail.com >
2021-02-04 17:32:15 +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
17b88defa4
executor: fix invalid txn when using prepare under @@tidb_snapshot ( #22697 )
...
Signed-off-by: lysu <sulifx@gmail.com >
2021-02-03 18:14:58 +08:00
7a275a77bb
store/tikv: move EtcdBackend out ( #22676 )
...
Signed-off-by: disksing <i@disksing.com >
2021-02-03 14:59:57 +08:00
44641c3282
planner: change the content of AnalyzeTableID to build global-stats ( #22554 )
2021-02-02 15:39:44 +08:00
ee876397ac
unistore/cophandler: change the logic of mpp execution in unit test. ( #22428 )
2021-02-01 19:06:42 +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
7ca1629d1a
*: refactor ExecuteInternal to return single resultset ( #22546 )
2021-02-01 14:05:27 +08:00
4c0fe88a71
store/tikv: resolve sessionctx dependency ( #22584 )
...
Signed-off-by: disksing <i@disksing.com >
2021-01-29 17:09:14 +08:00
3dff7cd348
store/tikv: resolve variable dependency ( #22609 )
...
Signed-off-by: disksing <i@disksing.com >
2021-01-29 15:52:14 +08:00
558d5610ce
executor: fix load-data result when field term be the prefix of line term ( #22585 )
...
Signed-off-by: lysu <sulifx@gmail.com >
2021-01-28 17:46:00 +08:00
871856db04
store/tikv: export failpoints ( #22539 )
...
Signed-off-by: Andy Lok <andylokandy@hotmail.com >
2021-01-27 17:13:30 +08:00
edb2741f36
executor: refine bigint unsigned primary key duplicate error ( #22153 )
2021-01-27 16:57:01 +08:00
fbcf75acc9
store/tikv: refactor: remove import tidb.config.security in store/tikv ( #22538 )
...
Signed-off-by: shirly <AndreMouche@126.com >
2021-01-27 12:08:24 +08:00
05d995d73d
statistics: add more tests about ver2-stats ( #22457 )
2021-01-26 20:59:18 +08:00
0aa476034a
go.mod, statistics, planner: replace TIDB_STATS with STATS_EXTENDED ( #22492 )
2021-01-25 21:18:07 +08:00
b24095d909
infoschema: support query partition_id from infoschema.partitions ( #22240 )
...
Signed-off-by: lysu <sulifx@gmail.com >
2021-01-22 14:22:29 +08:00
cd390bdfab
executor: skip null data in common handle during point-get ( #22483 )
2021-01-22 14:07:02 +08:00
2364fec8f0
executor: fix load data in file get wrong result #20854 ( #21895 )
2021-01-21 21:53:29 +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
ac17ae982a
util/codec: add error handling to NewCommonHandle() to avoid panic ( #22458 )
2021-01-21 16:44:59 +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
8ddd41c960
executor: fix typo ( #22385 )
2021-01-18 16:15:28 +08:00
405c6bbaba
*: make 'tidb_enable_change_column_type' available as a session variable ( #20399 )
2021-01-18 14:29:48 +08:00
ca93c7fc16
types: convert string to MySQL BIT correctly ( #21310 )
2021-01-18 12:17:58 +08:00
42edd7a29f
executor: metrics slow query is divided into internal and general ( #22350 )
2021-01-15 14:26:57 +08:00
1bb914ed9a
executor: expression index should not appear in key_column_usage ( #22358 )
...
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
2021-01-15 11:00:30 +08:00