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

refactor(optimizer): use match to replace if else #8291

Merged
merged 5 commits into from
Oct 19, 2022

Conversation

xudong963
Copy link
Member

I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/

Summary

Summary about this PR

Fixes #issue

@vercel
Copy link

vercel bot commented Oct 18, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated
databend ⬜️ Ignored (Inspect) Oct 19, 2022 at 3:41AM (UTC)

@mergify mergify bot added the pr-feature this PR introduces a new feature to the codebase label Oct 18, 2022
@xudong963 xudong963 requested a review from leiysky October 18, 2022 12:10
@xudong963
Copy link
Member Author

Emm, after thinking, I realized a=a isn't always true, such as null=null.

However, @sundy-li 's suggestion is very good, so I will only change the code style in the ticket.

@xudong963 xudong963 changed the title feat(optimizer): remove useless predicate in filter refactor(optimizer): use match to replace if else Oct 18, 2022
@mergify mergify bot added the pr-refactor this PR changes the code base without new features or bugfix label Oct 18, 2022
@xudong963
Copy link
Member Author

@mergify mergify bot merged commit 68f9b80 into databendlabs:main Oct 19, 2022
@xudong963 xudong963 deleted the remove_predicate branch October 19, 2022 04:18
@drmingdrmer
Copy link
Member

https://github.com/datafuselabs/databend/actions/runs/3278340663/jobs/5397058710 cc @drmingdrmer

Right I fount this issue too and have been fixed in 3e33b99

Thanks man!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-feature this PR introduces a new feature to the codebase pr-refactor this PR changes the code base without new features or bugfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants