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

Pushdown null check filter below agg #24225

Open
kaikalur opened this issue Dec 9, 2024 · 0 comments
Open

Pushdown null check filter below agg #24225

kaikalur opened this issue Dec 9, 2024 · 0 comments

Comments

@kaikalur
Copy link
Contributor

kaikalur commented Dec 9, 2024

select * from (SELECT arbitrary(x) x, y from t group by y) where x is not null

we apply the not null after the aggregation. But if this is the only aggregation, we can actually apply the not null much sooner right after scan like:

select * from (SELECT arbitrary(x) x, y from t where x is not null group by y)

bonus: do it if there are multiple "return null on null" aggs on the same field!

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

No branches or pull requests

1 participant