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

🪲 constant folding doesn't resolve correctly. #1967

Closed
joocer opened this issue Aug 31, 2024 · 0 comments · Fixed by #1968
Closed

🪲 constant folding doesn't resolve correctly. #1967

joocer opened this issue Aug 31, 2024 · 0 comments · Fixed by #1968
Labels
Bug 🪲 Something isn't working

Comments

@joocer
Copy link
Contributor

joocer commented Aug 31, 2024

SELECT count(*) FROM $planets WHERE 'membership' = ANY(@@user_memberships)

@@user_memberships is resolved to a literal before the optimizer runs, so the filter is only handling literals.

@joocer joocer added the Bug 🪲 Something isn't working label Aug 31, 2024
joocer added a commit that referenced this issue Aug 31, 2024
@joocer joocer mentioned this issue Aug 31, 2024
4 tasks
joocer added a commit that referenced this issue Aug 31, 2024
joocer added a commit that referenced this issue Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🪲 Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant