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

fix(optimizer): fix filter pushdown and range fold #842

Merged
merged 1 commit into from
Apr 12, 2024

Conversation

kysshsy
Copy link
Contributor

@kysshsy kysshsy commented Mar 17, 2024

related to #794 #834 , add some new rules and change scan's default filter to true(this make it match with the "filter-scan" rule)

Copy link
Member

@wangrunji0408 wangrunji0408 left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you!

Should we get #795 merged first? @skyzh

&egraph[subst[v1]].data.constant,
&egraph[subst[v2]].data.constant,
) {
(Some(d1), Some(d2)) => f(d1, d2),
Copy link
Member

Choose a reason for hiding this comment

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

Seems like the common condition std::mem::discriminant(d1) == std::mem::discriminant(d2) can be moved to here.

@skyzh
Copy link
Member

skyzh commented Mar 21, 2024

yep i'll handle these two pull requests on the weekends :)

@skyzh
Copy link
Member

skyzh commented Apr 2, 2024

need rebasing + fix conflicts, I can help with that next weekend :)

Signed-off-by: kysshsy <kysshsy@gmail.com>
@kysshsy
Copy link
Contributor Author

kysshsy commented Apr 4, 2024

rebase the commit, help me check the sql test result, thank you 😁

Copy link
Member

@wangrunji0408 wangrunji0408 left a comment

Choose a reason for hiding this comment

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

Thank you!

@wangrunji0408 wangrunji0408 added this pull request to the merge queue Apr 12, 2024
Merged via the queue into risinglightdb:main with commit 85f50ed Apr 12, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants