-
Notifications
You must be signed in to change notification settings - Fork 409
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
Feature Implementation NullEq
function push down
#6057
base: master
Are you sure you want to change the base?
Feature Implementation NullEq
function push down
#6057
Conversation
Signed-off-by: Jigao Luo <luojigao@outlook.com>
[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. |
Signed-off-by: Jigao Luo <luojigao@outlook.com>
Signed-off-by: Jigao Luo <luojigao@outlook.com>
Signed-off-by: Jigao Luo <luojigao@outlook.com>
Having a question right now #6065 |
26d91a1
to
38732fa
Compare
Signed-off-by: Jigao Luo <luojigao@outlook.com>
NullEq
function push downNullEq
function push down
/run-all-tests |
Coverage for changed files
Coverage summary
full coverage report (for internal network access only) |
Coverage for changed files
Coverage summary
full coverage report (for internal network access only) |
3add343
to
69e1ee9
Compare
Coverage for changed files
Coverage summary
full coverage report (for internal network access only) |
Signed-off-by: Jigao Luo <luojigao@outlook.com>
/run-all-tests |
Coverage for changed files
Coverage summary
full coverage report (for internal network access only) |
const tipb::Expr & expr, | ||
const ExpressionActionsPtr & actions) | ||
{ | ||
/// nullEq(col1, col2) == isNull(col1) AND isNull(col2) OR coalesce(Equal(col1, col2), 0) |
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.
It seems that isNull(col1) AND isNull(col2) OR coalesce(Equal(col1, col2), 0)
can be reduced to Equal(col1, col2)
when col1 and col2 is not null.
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.
You can use actions->getSampleBlock().getByName(col).type->isNullable()
to determine if col is nullable
What problem does this PR solve?
Issue Number: close #5102
Related TiDB Issue: pingcap/tidb#38098
Problem Summary:
Implementation of NullEq function push down
What is changed and how it works?
Check List
Tests
Side effects
Documentation
Release note