Support SQL window functions

Open
#12,747 60 comments 111 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Active
Tech stack
csharp, sql
Domain
backend, database

Research direction

Start with the up-to-date LINQ design proposal in the linked comment, then compare the SQL Server and PostgreSQL window-function references in the issue. Define what LINQ expression should represent the operation and what successful translation support would cover; the issue does not name implementation files or tests.

Written by the indexing model from the issue text.

Description

area-groupby area-query customer-reported

Both SQL Server and PostgreSQL seem to support window functions in a similar way - in at least some cases the syntax even seems to be identical. It could be nice to add support for this to EF Core.

A main question is how this would be expressed in LINQ, AFAIK there's no way to do these kinds of operations in memory.

NOTE: For an up-to-date design proposal for expressing window functions with LINQ, see https://github.com/dotnet/efcore/issues/12747#issuecomment-3152575891.

Dominant language
C#
Stars
14.8k
Forks
3.4k
Avg merge
2d 5h
Merged PRs (30d)
134

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dotnet/efcore

All issues in dotnet/efcore

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.