-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
planner: unexpected FullScan when using prepared plan cache #38533
Labels
affects-5.4
This bug affects 5.4.x versions.
affects-6.1
affects-6.5
epic/plan-cache
sig/planner
SIG: Planner
type/bug
The issue is confirmed as a bug.
Comments
qw4990
added
type/enhancement
The issue or PR belongs to an enhancement.
sig/planner
SIG: Planner
epic/plan-cache
labels
Oct 18, 2022
Compared with skipping the optimization and then caching a bad plan, maybe we should process this optimization to generate an optimal plan and not cache it. |
A relevant but different issue: #34561 |
This was referenced Dec 28, 2022
12 tasks
qw4990
added
affects-5.4
This bug affects 5.4.x versions.
affects-6.1
type/bug
The issue is confirmed as a bug.
and removed
type/enhancement
The issue or PR belongs to an enhancement.
labels
Mar 28, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
affects-5.4
This bug affects 5.4.x versions.
affects-6.1
affects-6.5
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: