Skip to content
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

feat(optimizer): outer join simplify #2349

Merged
merged 6 commits into from
May 6, 2022
Merged

Conversation

st1page
Copy link
Contributor

@st1page st1page commented May 6, 2022

What's changed and what's your intention?

add outer join simplify in the filter-join rule. now it is just a naive implementation for comparison expression, we can give a more general implementation with constant folding in future

Checklist

  • I have written necessary docs and comments
  • I have added necessary unit tests and integration tests

Refer to a related PR or issue link (optional)

@codecov
Copy link

codecov bot commented May 6, 2022

Codecov Report

Merging #2349 (cf1e0e4) into main (68dc6fc) will increase coverage by 0.00%.
The diff coverage is 84.84%.

@@           Coverage Diff           @@
##             main    #2349   +/-   ##
=======================================
  Coverage   71.07%   71.08%           
=======================================
  Files         675      675           
  Lines       84619    84652   +33     
=======================================
+ Hits        60145    60172   +27     
- Misses      24474    24480    +6     
Flag Coverage Δ
rust 71.08% <84.84%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/frontend/src/optimizer/rule/filter_join.rs 93.79% <84.84%> (-1.23%) ⬇️
src/common/src/types/ordered_float.rs 24.70% <0.00%> (-0.20%) ⬇️

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@st1page st1page requested review from likg227 and xiangjinwu May 6, 2022 08:12
Copy link
Contributor

@xiangjinwu xiangjinwu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rest lgtm

for expr in &predicate.conjunctions {
if let ExprImpl::FunctionCall(func) = expr {
match func.get_expr_type() {
risingwave_pb::expr::expr_node::Type::Equal
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use crate::expr::ExprType rather than risingwave_pb

@st1page st1page enabled auto-merge (squash) May 6, 2022 09:11
Copy link
Member

@xxchan xxchan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update the rule's rustdoc?

@st1page st1page merged commit afffdec into main May 6, 2022
@st1page st1page deleted the sts/optimizer_outer_join_simplify branch May 6, 2022 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants