-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
range partition pruning does not work when plan cache is enabled #16676
Comments
RCA: prepared parameters are all treated as string types now, so in We have 2 approaches to fix this problem:
I prefer the first one, the second one is pretty tricky. Quick workaround for this problem: add a explicit
|
This problem can be fixed by #16375, since it marks queries containing partition tables as un-cacheable, i.e, |
Development Task
partition
p1
should be pruned as the behavior when plan cache is disabled.The text was updated successfully, but these errors were encountered: