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

filters not being folded correctly #2516

Open
joocer opened this issue Mar 19, 2025 · 0 comments
Open

filters not being folded correctly #2516

joocer opened this issue Mar 19, 2025 · 0 comments

Comments

@joocer
Copy link
Contributor

joocer commented Mar 19, 2025

SELECT name FROM $planets WHERE (name LIKE '%u%' OR name LIKE '%a%') AND (mass > 1e-24 OR diameter < 30000)

may be other filters, but noticed this testing the LIKE combining

AFTER OPTIMIZATION
└─ EXIT
   └─ FILTER (PASSTHRU(name RLIKE 'u|a'))
      └─ FILTER (mass > 1e-24 OR diameter < 30000)
         └─ FILTER (PASSTHRU(name RLIKE 'u|a') AND mass > 1e-24 OR diameter < 30000)
            └─ READ ($planets) [name, mass, diameter]

The FILTER closest to the READ is correct, the other two should have been removed.

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

No branches or pull requests

1 participant