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

Feature Request: PARTITION BY #11446

Open
LtMost opened this issue May 7, 2024 · 1 comment
Open

Feature Request: PARTITION BY #11446

LtMost opened this issue May 7, 2024 · 1 comment

Comments

@LtMost
Copy link

LtMost commented May 7, 2024

Feature Request

Q A
New Feature yes
RFC no
BC Break no

Summary

Being able to use "PARTITION BY" in $this->createQueryBuilder()->select().

it would help to take away the need to build a workaround for a query that is using this:

SELECT 
    customer_id,
    COUNT(*) OVER (PARTITION BY customer_id) AS order_count_per_customer
FROM 
    Orders;
@garak
Copy link

garak commented May 7, 2024

I support that, but I think it should be more general and include broader support for window functions.
I see that this was already proposed and rejected in #6175 but maybe it should be reconsidered now.

By the way, all the DBMSs supported by doctrine/dbal have now support for window functions, which are not "vendor-specific" (like mentioned in the issue above)

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

2 participants