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

FILTER() in windowing function #20345

Open
devprofile98 opened this issue Jan 30, 2025 · 0 comments
Open

FILTER() in windowing function #20345

devprofile98 opened this issue Jan 30, 2025 · 0 comments

Comments

@devprofile98
Copy link

Is your feature request related to a problem? Please describe.

The absence of the FILTER clause in window functions makes certain queries unnecessarily cumbersome. While alternative methods (e.g., CASE statements, subqueries, or CTEs) can achieve the same results, these workarounds often lead to more complex, longer, and harder-to-maintain SQL code. For example, queries that could be simplified with SUM(column) FILTER (WHERE ...) require multiple steps or nested logic, increasing the likelihood of errors and reducing readability.

Describe the solution you'd like

No response

Describe alternatives you've considered

using CTE's or subqueries or CASE

Additional context

No response

@github-actions github-actions bot added this to the release-2.3 milestone Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant