-
Notifications
You must be signed in to change notification settings - Fork 706
feat(optimizer): condition && join predicate #367
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #367 +/- ##
============================================
+ Coverage 74.23% 74.41% +0.17%
Complexity 2681 2681
============================================
Files 863 868 +5
Lines 48830 49269 +439
Branches 1591 1591
============================================
+ Hits 36250 36664 +414
- Misses 11767 11792 +25
Partials 813 813
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
|
Please write a proper PR description, following the pull_request_template |
fuyufjh
left a comment
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.
BowenXiao1999
left a comment
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.
Rest LGTM
| /// ``` | ||
| /// will call the `create` function with left_colsnum = 2 and on_clause is (supposed input_ref | ||
| /// count start from 0) | ||
| /// ```sql |
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.
sql?
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 is just pass the doc test
| use crate::utils::Condition; | ||
| #[derive(Debug, Clone)] | ||
| /// the join predicate used in optimizer | ||
| pub struct EqJoinPredicate { |
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.
Why this is called EqJoinPredicate? So at least it contains one equal preidcate?
Do we have NeqJoinPredicate? etc.
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.
this is just for equal join which has equal join and used for hashjoin and sortMergeJoin to easily get the eq and noneq condition. for the non eq join, the condition is enough.
What's changed and what's your intention?
Checklist
Refer to a related PR or issue link (optional)
#106