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

Simple cost based rearrangement of logial operators can help a lot #17137

Open
kaikalur opened this issue Dec 24, 2021 · 4 comments
Open

Simple cost based rearrangement of logial operators can help a lot #17137

kaikalur opened this issue Dec 24, 2021 · 4 comments

Comments

@kaikalur
Copy link
Contributor

I have seen some queries that do a ton of REGEXP_LIKE(..) AND v >= 0.9. And we generally maintain the order of the subexpressions. But in this case the trivial v >= 0.9 comparison is a lot cheaper. So rearranging them so all function calls are towards the latter part of the eval like v >= 0.9 AND REGEXP_LIKE(..), it could be more efficient.

@sguo35
Copy link

sguo35 commented Feb 15, 2022

@kaikalur Can I take a stab at this?

@tsafacjo
Copy link

tsafacjo commented Nov 1, 2023

can I take this isssue ?

@kaikalur
Copy link
Contributor Author

kaikalur commented Nov 1, 2023

can I take this isssue ?

Please feel free!

@tsafacjo
Copy link

tsafacjo commented Nov 4, 2023

ok, thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🆕 Unprioritized
Development

No branches or pull requests

4 participants