-
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
enhance partition pruning for table partition #7516
Comments
This is also the limitation the non-partitioned table have when calculating range. |
In #7523 I have a small feature request which complements test-cases for partition pruning. |
I have already make partition info visible in this PR: There is a lot of room for improvement, any suggestion is welcome. @morgo |
PR #7643 has been merged. |
Awesome |
There are two known issues for current partition pruning implementation:
Both of them are not reasonable.
@coocood advised in #6642 to ignore the selection node above datasoure node, so filter conditions that can't be push down to datasource won't be considered by partition pruning function, that's why limitation 1 exists.
Suppose we haven't implement timestamp type in TiKV yet, the filter condition will not be pushed down to datasource, then partition pruning can't work on this example:
Limitation 2 comes from the fact that we currently use range calculation to implement partition pruning.
to_days
is a function, we can't calculate range for it, so partition pruning can't work.The text was updated successfully, but these errors were encountered: