Commit Graph

3594 Commits

Author SHA1 Message Date
3750320899 executor: add close recordSet in executor (#22714) 2021-03-07 17:54:55 +08:00
280d07c4a0 sessionctx, executor: make the upper limit of tidb_ddl_reorg_worker_cnt work (#23064) 2021-03-05 18:58:55 +08:00
29908c67e7 store, executor: support stale read for tikv RPCContext (#22176) 2021-03-05 18:12:55 +08:00
8ae01abfd9 ddl, executor: fix creating unique index without partition column error when enable-global-index is true (#22471) 2021-03-05 16:10:54 +08:00
505955ad0b planner: fix bug of mpp wrongly set schema of exchanger (#22845)
* planner: fix bug of mpp wrongly set schema of exchanger

* support outer join in mock engine

* add unit test

Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com>
2021-03-05 15:54:52 +08:00
a1712a037f statistics: add more test cases about global-stats and fix some issues (#23099) 2021-03-05 14:34:31 +08:00
f33d02bdbf statistics: forbid getting global-stats through fast analyze and incremental analyze (#23066) 2021-03-05 11:24:54 +08:00
bafa0cc49d planner/core: let mpp support partition tables (#22662) 2021-03-04 20:56:54 +08:00
5f73c822ca kv/union_store:remove tableinfo from union_store (#22976)
Co-authored-by: disksing <i@disksing.com>
2021-03-04 16:30:42 +08:00
db62e341fd executor: fix wrong key range of index scan when filter is comparing year column with NULL (#23079) 2021-03-04 16:04:54 +08:00
51e561187c executor: fix correlated column range in table reader for the clustered index table (#23087) 2021-03-04 15:34:54 +08:00
9768e45476 session: add a test case for issue 19127 (#21010) 2021-03-04 11:50:54 +08:00
8761adc59f executor: make the memory tracker of Jsonobjectagg more accurate (#23024) 2021-03-04 11:34:54 +08:00
bee6d37c8b executor: make the memory tracker of groupConcat more accurate. (#23034) 2021-03-04 10:50:54 +08:00
b5a9076aea *: new secondary index value format (#20220) 2021-03-03 21:16:54 +08:00
93c1779f2d *: support show stats_extended to inspect extended stats cache (#23052) 2021-03-03 20:06:58 +08:00
b81e547e66 executor: fix err check (#22991) 2021-03-03 19:26:56 +08:00
3f7a573caa planner: fix range partition prune bug for IN expr (#22894) (#22938) 2021-03-03 16:22:55 +08:00
d3fe2187a9 statistics: introduce a new kind of syntax to drop global-stats (#23061) 2021-03-03 14:50:54 +08:00
622f702aae store/mockstore/unistore: refine and add more mpp tests (#22803)
* refine and add more tests

* fix make dev and address comments

* fix make dev
2021-03-03 14:31:05 +08:00
a64d8860f1 statistics: forbid global-stats in stats-ver1 and make analyze options take effect in global-stats (#23050) 2021-03-03 11:58:54 +08:00
5b12f9224e *: check tidb_enable_extended_stats in analyze and row count estimation (#23029) 2021-03-03 02:54:53 +08:00
602bcd2e40 *: fix some structcheck lint warnings (#22983) 2021-03-02 23:12:54 +08:00
17eca20f18 executor, privilege: fix failure on grant USAGE privilege operation (#22748) 2021-03-02 22:30:54 +08:00
24c9df147d *: refactor table.Table interface, clean up unnecessay methods (#22430) 2021-03-02 19:48:54 +08:00
d94920e4a9 statistics: support dropping partition/global level statistics (#23023) 2021-03-02 16:52:48 +08:00
3fcfefd267 executor: track partialResultMap in unparalleled aggreagte. (#22962) 2021-03-02 14:50:55 +08:00
10e5a34be8 execution: fix index's duplicate error message (#22858) 2021-03-02 10:56:53 +08:00
8230f4162b *: optimize analyze cluster index table (#21381) 2021-03-01 22:14:54 +08:00
3d4def7eef planner, statistics: allow (auto) analyze single partition in dynamic-only mode (#22625) 2021-03-01 17:23:31 +08:00
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