Commit Graph

12901 Commits

Author SHA1 Message Date
f70177ec72 *: unify_log_lib (#23093) 2021-03-16 18:06:55 +08:00
f7e22e1ebf planner: fix {index,hash,merge} join on range suffix condition clustered index (#23294) 2021-03-16 17:42:55 +08:00
7e067b2d3f telemetry: fix err check (#23006) 2021-03-16 16:58:55 +08:00
5bafb3203e planner: show cast type in EXPLAIN in coptask (#23123) 2021-03-16 16:16:55 +08:00
7a9b07e92b expression: fix unexpected constant fold when year compare string (#23281) 2021-03-16 14:46:55 +08:00
23227ea4a0 statistics: hide the tidb_analyze_version before it's GA (#23327) 2021-03-16 13:54:55 +08:00
dabef500fb store/tikv: move some tests into standalone directory (#23258)
Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com>
2021-03-16 11:10:54 +08:00
61075d3c5b planner: hide the switch of dynamic-pruning and global-stats (#23320) 2021-03-16 10:54:55 +08:00
cad8e15db2 store/tikv: remove kv.Snaphost from store/tikv (#23318) 2021-03-15 18:54:55 +08:00
3641cd4fe0 executor: fix split table with large integers (#21277) 2021-03-15 16:18:56 +08:00
46f5f21772 ddl: fix ddl hang over when it meets panic in cancelling path (#23204) 2021-03-13 13:50:55 +08:00
b534ec7b49 store/tikv: remove kv.Version from package store/tikv (#23282) 2021-03-13 10:38:55 +08:00
2bea06ed23 util, types: don't let SPM be affected by charset (#23161) 2021-03-12 22:39:10 +08:00
cd199b23aa planner: not push down mpp/join to TiFlash in some cases that TiFlash not supported the query (#23259) 2021-03-12 21:34:55 +08:00
fcf60e0a27 planner, table: set PrimaryPrefixColumnIds correctly (#23250) 2021-03-12 21:18:55 +08:00
088fe75b1c session: enable async commit in new clusters (#23274)
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2021-03-12 21:02:59 +08:00
689a5983e1 planner: fix the bug that wrong collation is used when try fast path for enum or set (#23217) 2021-03-12 20:00:55 +08:00
b128c3c4d0 expression: push down EXTRACT to TiFlash (#22832) 2021-03-12 19:44:55 +08:00
0b68d8a0f0 test: work around goroutine leak (#23288) 2021-03-12 19:24:55 +08:00
f77bbc4cb2 planner/core: pass the elems info to fieldtype only for exchanger (#23203)
* planner/core: pass the elems info to fieldtype only for exchange receiver.

* address comments

* address comments

Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com>
2021-03-12 18:50:53 +08:00
035c15f7da *: rename tiflash fallback switch (#22886)
Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com>
2021-03-12 18:21:48 +08:00
1d99292455 *: hide the system variables tidb_track_aggregate_memory_usage (#23184) 2021-03-12 17:59:21 +08:00
b578af494c store/tikv: fix typo (#23269) 2021-03-12 17:47:41 +08:00
6b69883410 MPP: Kill mpp queries (#23056)
* run ok

* update comments

* send cancle cmd to all tiflash stores

* updated

* log error if sending failed

* update comments

* disable send task when being killed

* update function name

* add test for kill mpp when mocking grpc hang

* update imports

* update comments

* clean go.mod

* updated

* use cancel to avoid goroutine leak, ensure cancellMppTasks being called just once

* update go.mod

* add test for avoiding goroutine leak

* update test

* update test

* remove unnecessary leak test
2021-03-12 17:27:30 +08:00
276dd0e69e util: optimize the performance of restore with db (#22910) 2021-03-12 16:46:56 +08:00
920b70d97c planner: set right null flag for constant value (#23172) 2021-03-12 16:10:55 +08:00
1e2f1c0b9d statistics: add tests for global-stats when add and delete a single partition (#23256) 2021-03-12 15:44:20 +08:00
30da0a1d09 Revert "executor: open childExec during execution for UnionExec (#21561) (#23276) 2021-03-12 14:59:30 +08:00
413ba4c30e server: add tiflash fallback testcase (#23248)
Co-authored-by: Yiding Cui <winoros@gmail.com>
2021-03-12 14:39:05 +08:00
6d258c708a statistics: delete extended stats cache item in current tidb synchronously (#23088) 2021-03-12 12:00:55 +08:00
f0ccc57755 store/tikv: remove tidb/metrics from store/tikv (#23221) 2021-03-12 11:44:54 +08:00
2258ab7267 statistics: add multi-column index test cases for global-statas (#23265) 2021-03-12 11:20:06 +08:00
7ea78e772e types: fix clustered keyword regexp (#23264) 2021-03-12 08:02:54 +08:00
22ff880fee planner: fix analyze clustered index table can't trigger index primary (#23254) 2021-03-12 07:45:35 +08:00
362883c245 expression, planner: allow pushdown count distinct when enumerate physical plans (#22867) 2021-03-11 19:22:55 +08:00
c4f398948c *: add infoschema client errors (#22382) 2021-03-11 19:06:55 +08:00
f21c7ddac8 ddl: make TestNotifyDDLJob stable (#23232) 2021-03-11 17:56:55 +08:00
07b19e0f90 config: disable prepare plan cache by default (#23240) 2021-03-11 16:26:19 +08:00
67e4528018 executor: initialize expensive query handler on domain creation (#21340) 2021-03-11 16:10:55 +08:00
bc572f3b19 types: fix clustered keyword to hint regexp (#23247) 2021-03-11 15:54:54 +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
32d54d2b78 planner: fix a panic caused by unmatched FieldNames and ColsInfo in partition pruning (#23242) 2021-03-11 14:47:25 +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
d1297376f1 planner: Fix problem that MPP query cannot work with STATEMENT_SUMMARY properly (#23229) 2021-03-10 20:24:55 +08:00
168ef8878d statistics: test the auto analyze and feedback for the global-level stats (#23181) 2021-03-10 19:36:55 +08:00
219aea4a1e executor: fix analyze prefix clustered index get wrong histogram buckets (#23194) 2021-03-10 19:19:59 +08:00
587010f8e2 planner: fix prepared execute panic when sql without clustered pk condition (#23185) 2021-03-10 19:10:29 +08:00
9fe1bded7a remote unary cop tiflash fallback (#23226)
Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com>
2021-03-10 19:01:33 +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