planner: log the reason why the sample-rate is chosen when analyzing table #45936
Labels
affects-7.1
This bug affects the 7.1.x(LTS) versions.
sig/planner
SIG: Planner
type/enhancement
The issue or PR belongs to an enhancement.
Enhancement
The optimizer chose the wrong sample rate to analyze a big table and then caused TiDB OOM, but now we cannot know why this wrong sample rate is chosen from the log.
It's better to log the reason why the sample rate is chosen for this table when analyzing:
The text was updated successfully, but these errors were encountered: