Closed shiyuhang0 closed 1 year ago
[REVIEW NOTIFICATION]
This pull request has not been approved.
To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer
in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer
in the comment to help you merge this pull request.
The full list of commands accepted by this bot can be found here.
What problem does this PR solve?
Support List partition pruning.
What is changed and how it works?
This pr is a draft. Things missing:
IN
expression>
,<
) when there have functions in partition expression. For example, we can not perform partition pruning when the partition expression is year(column) and the predicate is column > '2000-01-01'. because we will rewrite as year(column) > 2000, however year('2000-01-02') is also 2000. This may cause the error when choosing the partition. (TiDB also does not support)I currently don't have time to work on this any further for at least a couple of weeks. but feel free to use this pr as the basis for proper implementation.