-
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
expression: Support Sqrt, Ceil, Floor and CastIntAsReal push down to TiFlash (#25085) #25178
Conversation
[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 The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
/run-all-tests |
@chAngeZhaoZhanBo please accept the invitation then you can push to the cherry-pick pull requests. |
1c0bbe0
to
61c5e4c
Compare
ffacabb
to
fe36b13
Compare
fe36b13
to
3453c91
Compare
expression/expression.go
Outdated
case | ||
ast.LogicOr, ast.LogicAnd, ast.UnaryNot, ast.BitNeg, ast.Xor, ast.And, ast.Or, | ||
ast.GE, ast.LE, ast.EQ, ast.NE, ast.LT, ast.GT, ast.In, ast.IsNull, ast.Like, | ||
ast.Plus, ast.Minus, ast.Div, ast.Mul, /*ast.Mod,*/ | ||
ast.If, ast.Ifnull, ast.Case, | ||
ast.Month, | ||
ast.TimestampDiff, ast.DateFormat, ast.FromUnixTime, | ||
ast.Concat, ast.ConcatWS, |
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.
Concat
, ConcatWS
, Year
, Month
, Day
, DateDiff
should be introduced by #25145.
Rest LGTM.
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.
https://github.com/pingcap/tidb/pull/25085/files
Concat, ConcatWS, Year, Month, Day, DateDiff are already there in this PR
Now they are needed to be discarded, right?
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.
https://github.com/pingcap/tidb/pull/25085/files
Concat, ConcatWS, Year, Month, Day, DateDiff are already there in this PR
Now they are needed to be discarded, right?
Yes, but they are not in release-5.0 yet...
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.
done
…alarExprSupportedByFlash
@ti-srebot: PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
New feature, do not need to cherrypick |
cherry-pick #25085 to release-5.0
You can switch your code base to this Pull Request by using git-extras:
# In tidb repo: git pr https://github.com/pingcap/tidb/pull/25178
After apply modifications, you can push your change to this PR via:
What problem does this PR solve?
Related to pingcap/tiflash#1901
Issue Number: close #xxx
Problem Summary:
What is changed and how it works?
What's Changed:
Add Floor, Ceil, Sqrt and CastIntAsReal(for pushing down a sqrt for an int) into scalarExprSupportedByFlash list
How it Works:
Related changes
pingcap/docs
/pingcap/docs-cn
:Check List
Tests
Use tiflash/integrated/ops or algernon to run a tidb-server and use explain query to make sure corresponding expression is pushed down
Side effects
Release note