Commit Graph

3612 Commits

Author SHA1 Message Date
22ff880fee planner: fix analyze clustered index table can't trigger index primary (#23254) 2021-03-12 07:45:35 +08:00
c4f398948c *: add infoschema client errors (#22382) 2021-03-11 19:06:55 +08:00
b298b86ba1 executor: group_concat aggr panic when session.group_concat_max_len is small (#23131) 2021-03-11 15:30:55 +08:00
c1b8347425 statistics: add a test case which builds global-stats on different versions of partition-stats (#23231) 2021-03-11 14:14:58 +08:00
168ef8878d statistics: test the auto analyze and feedback for the global-level stats (#23181) 2021-03-10 19:36:55 +08:00
c22cbc0d10 executor: truncate column values from index KV during admin check (#23218) 2021-03-10 18:35:40 +08:00
f6a61bc915 plan/core: support mpp group by expressions. (#23133)
* planner/core: make mpp support grouping by expressions

* add tests

* fix typo

* fix

* fix test

Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com>
2021-03-10 17:06:15 +08:00
f8da635f5a *: refactor and fix the usages of DecodeIndexKV for clustered index (#23096) 2021-03-10 16:46:55 +08:00
610ac87e0b config: deprecate tikv-client.copr-cache.enable and invisible some copr-cache configs (#22786) 2021-03-10 15:37:51 +08:00
c382b9b01e executor: hash join out of index panic when enum column value is zero (#23162) 2021-03-10 12:18:54 +08:00
bdfcaf883e executor: skip lock key if lock key is empty (#23188) 2021-03-09 22:46:54 +08:00
284da110b2 executor: fix cast function will ignore tht error for point-get key construction (#22869) 2021-03-09 18:14:55 +08:00
5720831962 parser: update parser to fix sql restore bug used in create view (#22974) 2021-03-09 17:28:55 +08:00
b8f6ac0dd3 *: fix wrong replace or insert-on-dup behavior on prefixed clustered index (#23091) 2021-03-09 16:54:55 +08:00
83e70f74f0 executor: inject random panic to AggExec (#23139) 2021-03-09 16:38:55 +08:00
aa82a038f1 types: fix the bug about the wrong query result for decimal type (#22507) 2021-03-09 15:54:55 +08:00
7c552f52fa executor: track memory usage of map in agg partial result. (#23072) 2021-03-09 12:44:55 +08:00
b3d4458b28 planner: refine explain info for batch cop (#20360) 2021-03-08 15:30:54 +08:00
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