planner: unexpected FullScan when using prepared plan cache #38533
Labels
affects-5.4
This bug affects the 5.4.x(LTS) versions.
affects-6.1
This bug affects the 6.1.x(LTS) versions.
affects-6.5
This bug affects the 6.5.x(LTS) versions.
epic/plan-cache
sig/planner
SIG: Planner
type/bug
The issue is confirmed as a bug.
Enhancement
The Plan:
The reason is to avoid invalid plans, the optimizer skips to build ranges for prepared statements in this case. (see https://github.com/pingcap/tidb/blob/master/util/ranger/detacher.go#L581)
The text was updated successfully, but these errors were encountered: