-
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/core: support partition pruning for partition expression floor(unix_timestamp()) #16402
Conversation
PTAL @imtbkcat |
/run-all-tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
to meet "floor(unix_timestamp()) requirement" now, but maybe we handle other functions in future - -?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Please resolve conflicts. |
/run-all-tests |
@tiancaiamao merge failed. |
Codecov Report
@@ Coverage Diff @@
## master #16402 +/- ##
===========================================
Coverage 80.5864% 80.5864%
===========================================
Files 506 506
Lines 137445 137445
===========================================
Hits 110762 110762
Misses 18129 18129
Partials 8554 8554 |
/run-integration-copr-test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/run-unit-test |
/merge |
/run-all-tests |
Signed-off-by: sre-bot <sre-bot@pingcap.com>
cherry pick to release-3.0 in PR #16521 |
Signed-off-by: sre-bot <sre-bot@pingcap.com>
cherry pick to release-3.1 in PR #16522 |
Signed-off-by: sre-bot <sre-bot@pingcap.com>
cherry pick to release-4.0 in PR #16523 |
…r(unix_timestamp()) (pingcap#16402)
What problem does this PR solve?
Issue Number: close #16354
Problem Summary:
Support partition pruning for
floor(unix_timestamp()
What is changed and how it works?
What's Changed:
Take function
floor(unix_timestamp())
as monotoneIncFuncs, special handle for this case.How it Works:
If the partition function is monotoneous, i.e.
That partition function can be used by the partition pruning algorithm.
If we view
floor(unix_timestamp())
as a single function, it basicly conform to the definition.Related changes
pingcap/docs
/pingcap/docs-cn
:pingcap/tidb-ansible
:Check List
Tests
Release note