550ca8eaeb
statistics: enables global-level stats to be generated in fast analyze mode ( #22931 )
2021-03-01 16:40:50 +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
bc37f088ba
*: fix some varcheck lint warnings ( #23011 )
2021-03-01 15:10: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
8357f809ff
*: remove some useless codes and do tiny update ( #22972 )
2021-02-26 19:14:53 +08:00
ec788ac154
executor: reduce useless memory allocation in min/max aggregate ( #22912 )
2021-02-26 18:04:53 +08:00
8a490e96b5
parser: quote identifier with backquote when getting SQL digest ( #22893 )
2021-02-26 14:54:54 +08:00
f89ab46437
infoschema, executor: Resolve bug where show index from perf_schema had no results ( #22772 )
2021-02-26 13:58:53 +08:00
df01fcc1ff
planner, executor: reset NotNullFlag when merge schema for join ( #22955 )
2021-02-25 23:17:55 +08:00
7151b4f3b5
config: use tidb_enable_list_partition to enable list table partition feature ( #22864 )
2021-02-25 22:11:04 +08:00
745d20aa64
store/tikv_driver:move MemManager from KVStore to tikvStore ( #22728 )
2021-02-25 15:53:11 +08:00
daf3337a43
oracle: make @@txn_scope only support local and global ( #22784 )
2021-02-25 15:26:03 +08:00
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